]> git.sur5r.net Git - cc65/blobdiff - src/ca65/token.h
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / src / ca65 / token.h
index eba24cdfaac062c7c70959c088302c678289ea5c..5214771fd9d9cab259e5753160e320f4572a81fa 100644 (file)
 
 
 /*****************************************************************************/
-/*                                          Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
 
 /* Tokens */
 typedef enum token_t {
-    TOK_NONE,          /* Start value, invalid */
-    TOK_EOF,                   /* End of input file */
-    TOK_SEP,           /* Separator (usually newline) */
-    TOK_IDENT,         /* An identifier */
+    TOK_NONE,           /* Start value, invalid */
+    TOK_EOF,            /* End of input file */
+    TOK_SEP,            /* Separator (usually newline) */
+    TOK_IDENT,          /* An identifier */
     TOK_LOCAL_IDENT,    /* A cheap local identifier */
 
-    TOK_INTCON,        /* Integer constant */
-    TOK_CHARCON,       /* Character constant */
-    TOK_STRCON,                /* String constant */
+    TOK_INTCON,         /* Integer constant */
+    TOK_CHARCON,        /* Character constant */
+    TOK_STRCON,         /* String constant */
 
-    TOK_A,             /* A)ccumulator */
-    TOK_X,             /* X register */
-    TOK_Y,             /* Y register */
-    TOK_S,             /* S register */
+    TOK_A,              /* A)ccumulator */
+    TOK_X,              /* X register */
+    TOK_Y,              /* Y register */
+    TOK_S,              /* S register */
     TOK_REG,            /* Sweet16 R.. register (in sweet16 mode) */
 
     TOK_ASSIGN,         /* := */
-    TOK_ULABEL,                /* :++ or :-- */
-
-    TOK_EQ,            /* = */
-    TOK_NE,            /* <> */
-    TOK_LT,            /* < */
-    TOK_GT,            /* > */
-    TOK_LE,            /* <= */
-    TOK_GE,            /* >= */
-
-    TOK_BOOLAND,               /* .and */
-    TOK_BOOLOR,                /* .or */
-    TOK_BOOLXOR,       /* .xor */
-    TOK_BOOLNOT,       /* .not */
-
-    TOK_PLUS,          /* + */
-    TOK_MINUS,         /* - */
-    TOK_MUL,           /* * */
-    TOK_STAR = TOK_MUL,        /* Alias */
-    TOK_DIV,           /* / */
-    TOK_MOD,           /* ! */
-    TOK_OR,            /* | */
-    TOK_XOR,           /* ^ */
-    TOK_AND,           /* & */
-    TOK_SHL,           /* << */
-    TOK_SHR,           /* >> */
-    TOK_NOT,           /* ~ */
-
-    TOK_PC,            /* $ if enabled */
-    TOK_NAMESPACE,     /* :: */
-    TOK_DOT,           /* . */
-    TOK_COMMA,         /* , */
-    TOK_HASH,          /* # */
-    TOK_COLON,                 /* : */
-    TOK_LPAREN,                /* ( */
-    TOK_RPAREN,                /* ) */
-    TOK_LBRACK,                /* [ */
-    TOK_RBRACK,                /* ] */
+    TOK_ULABEL,         /* :++ or :-- */
+
+    TOK_EQ,             /* = */
+    TOK_NE,             /* <> */
+    TOK_LT,             /* < */
+    TOK_GT,             /* > */
+    TOK_LE,             /* <= */
+    TOK_GE,             /* >= */
+
+    TOK_BOOLAND,        /* .and */
+    TOK_BOOLOR,         /* .or */
+    TOK_BOOLXOR,        /* .xor */
+    TOK_BOOLNOT,        /* .not */
+
+    TOK_PLUS,           /* + */
+    TOK_MINUS,          /* - */
+    TOK_MUL,            /* * */
+    TOK_STAR = TOK_MUL, /* Alias */
+    TOK_DIV,            /* / */
+    TOK_MOD,            /* ! */
+    TOK_OR,             /* | */
+    TOK_XOR,            /* ^ */
+    TOK_AND,            /* & */
+    TOK_SHL,            /* << */
+    TOK_SHR,            /* >> */
+    TOK_NOT,            /* ~ */
+
+    TOK_PC,             /* $ if enabled */
+    TOK_NAMESPACE,      /* :: */
+    TOK_DOT,            /* . */
+    TOK_COMMA,          /* , */
+    TOK_HASH,           /* # */
+    TOK_COLON,          /* : */
+    TOK_LPAREN,         /* ( */
+    TOK_RPAREN,         /* ) */
+    TOK_LBRACK,         /* [ */
+    TOK_RBRACK,         /* ] */
     TOK_LCURLY,         /* { */
     TOK_RCURLY,         /* } */
     TOK_AT,             /* @ - in Sweet16 mode */
@@ -115,12 +115,12 @@ typedef enum token_t {
     TOK_OVERRIDE_ABS,   /* a: */
     TOK_OVERRIDE_FAR,   /* f: */
 
-    TOK_MACPARAM,      /* Macro parameter, not generated by scanner */
-    TOK_REPCOUNTER,    /* Repeat counter, not generated by scanner */
+    TOK_MACPARAM,       /* Macro parameter, not generated by scanner */
+    TOK_REPCOUNTER,     /* Repeat counter, not generated by scanner */
 
     /* The next ones are tokens for the pseudo instructions. Keep together! */
     TOK_FIRSTPSEUDO,
-    TOK_A16            = TOK_FIRSTPSEUDO,
+    TOK_A16             = TOK_FIRSTPSEUDO,
     TOK_A8,
     TOK_ADDR,
     TOK_ALIGN,
@@ -255,9 +255,9 @@ typedef enum token_t {
     TOK_WORD,
     TOK_XMATCH,
     TOK_ZEROPAGE,
-    TOK_LASTPSEUDO     = TOK_ZEROPAGE,
+    TOK_LASTPSEUDO      = TOK_ZEROPAGE,
 
-    TOK_COUNT                  /* Count of tokens */
+    TOK_COUNT           /* Count of tokens */
 } token_t;
 
 
@@ -284,7 +284,7 @@ struct Token {
 
 
 /*****************************************************************************/
-/*                                          Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/