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:
@@ -42,6 +42,7 @@
|
||||
/* ca65 */
|
||||
#include "error.h"
|
||||
#include "istack.h"
|
||||
#include "nexttok.h"
|
||||
#include "scanner.h"
|
||||
#include "toklist.h"
|
||||
|
||||
@@ -174,6 +175,22 @@ void FreeTokList (TokList* List)
|
||||
|
||||
|
||||
|
||||
enum Token GetTokListTerm (enum Token Term)
|
||||
/* Determine if the following token list is enclosed in curly braces. This is
|
||||
* the case if the next token is the opening brace. If so, skip it and return
|
||||
* a closing brace, otherwise return Term.
|
||||
*/
|
||||
{
|
||||
if (Tok == TOK_LCURLY) {
|
||||
NextTok ();
|
||||
return TOK_RCURLY;
|
||||
} else {
|
||||
return Term;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void AddCurTok (TokList* List)
|
||||
/* Add the current token to the token list */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user