Fixed a problem with {} enclosed token lists and implemented them for

.blank and .tcount.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3014 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2004-05-09 20:24:51 +00:00
parent fdb685b874
commit b10b7cd3e8
5 changed files with 70 additions and 74 deletions

View File

@@ -71,22 +71,15 @@ static TokList* CollectTokens (unsigned Start, unsigned Count)
* return this token list.
*/
{
enum Token Term;
unsigned Current;
/* Create the token list */
TokList* List = NewTokList ();
/* Determine if the list is enclosed in curly braces. */
if (Tok == TOK_LCURLY) {
NextTok ();
Term = TOK_RCURLY;
} else {
Term = TOK_LCURLY;
}
enum Token Term = GetTokListTerm (TOK_RPAREN);
/* Read the token list */
Current = 0;
unsigned Current = 0;
while (Tok != Term) {
/* Check for end of line or end of input */