]> git.sur5r.net Git - cc65/blobdiff - src/cc65/scanner.h
Changed TgtTranslateBuf
[cc65] / src / cc65 / scanner.h
index b7cd10ac58ee1efa32aba00b9af8bd6173be8136..216c007c93bd768af87b62ec2e6aa9f678b12f4b 100644 (file)
@@ -89,6 +89,7 @@ typedef enum token_t {
     TOK_MINUS,
     TOK_MUL_ASSIGN,
     TOK_STAR,
+    TOK_MUL = TOK_STAR,                /* Alias */
     TOK_DIV_ASSIGN,
     TOK_DIV,
     TOK_BOOL_AND,
@@ -101,8 +102,6 @@ typedef enum token_t {
     TOK_OR,
     TOK_EQ,
     TOK_ASSIGN,
-    TOK_SHL_ASSIGN,
-    TOK_SHL,
 
     /* Inequalities */
     TOK_LE,
@@ -110,6 +109,8 @@ typedef enum token_t {
     TOK_GE,
     TOK_GT,
 
+    TOK_SHL_ASSIGN,
+    TOK_SHL,
     TOK_SHR_ASSIGN,
     TOK_SHR,
     TOK_XOR_ASSIGN,
@@ -148,7 +149,7 @@ typedef enum token_t {
 typedef struct Token_ Token;
 struct Token_ {
     token_t    Tok;            /* The token itself */
-    long       IVal;           /* The integer attribute */ 
+    long       IVal;           /* The integer attribute */
     double     FVal;           /* The float attribute */
     ident      Ident;          /* Identifier if IDENT */
     unsigned   Pos;            /* Source line where the token comes from */
@@ -186,7 +187,7 @@ int IsSym (char* s);
 void NextToken (void);
 /* Get next token from input stream */
 
-void Consume (token_t Token, unsigned ErrNum);
+void Consume (token_t Token, const char* ErrorMsg);
 /* Eat token if it is the next in the input stream, otherwise print an error
  * message.
  */
@@ -197,6 +198,9 @@ void ConsumeColon (void);
 void ConsumeSemi (void);
 /* Check for a semicolon and skip it. */
 
+void ConsumeComma (void);
+/* Check for a comma and skip it. */
+
 void ConsumeLParen (void);
 /* Check for a left parenthesis and skip it */