1 #ifndef LexerFileTokens_HPP
2 #define LexerFileTokens_HPP
3
4
5
6 #include <string>
7
8 namespace LexerFileTokens
9 {
10 const int END = 0;
11 const int CLASSMAP = 1;
12 const int PREFIX = 2;
13 const int TOKENS = 3;
14 const int KEYWORDS = 4;
15 const int EXPRESSIONS = 5;
16 const int LEXER = 6;
17 const int VARIABLES = 7;
18 const int ACTIONS = 8;
19 const int API = 9;
20 const int INCLUDE = 10;
21 const int FILEPATH = 11;
22 const int DOLLAR = 12;
23 const int EXCLAMATION = 13;
24 const int AUTO = 14;
25 const int REGISTER = 15;
26 const int STATIC = 16;
27 const int EXTERN = 17;
28 const int MUTABLE = 18;
29 const int CHAR = 19;
30 const int WCHART = 20;
31 const int BOOL = 21;
32 const int SHORT = 22;
33 const int INT = 23;
34 const int LONG = 24;
35 const int SIGNED = 25;
36 const int UNSIGNED = 26;
37 const int FLOAT = 27;
38 const int DOUBLE = 28;
39 const int VOID = 29;
40 const int TYPEDEF = 30;
41 const int CONST = 31;
42 const int VOLATILE = 32;
43 const int USING = 33;
44 const int NAMESPACE = 34;
45 const int THROW = 35;
46 const int SIZEOF = 36;
47 const int OPERATOR = 37;
48 const int DYNAMICCAST = 38;
49 const int STATICCAST = 39;
50 const int REINTERPRETCAST = 40;
51 const int CONSTCAST = 41;
52 const int TYPEID = 42;
53 const int THIS = 43;
54 const int NEW = 44;
55 const int DELETE = 45;
56 const int TRUE = 46;
57 const int FALSE = 47;
58 const int NULLPTR = 48;
59 const int CASE = 49;
60 const int DEFAULT = 50;
61 const int IF = 51;
62 const int ELSE = 52;
63 const int SWITCH = 53;
64 const int WHILE = 54;
65 const int DO = 55;
66 const int FOR = 56;
67 const int BREAK = 57;
68 const int CONTINUE = 58;
69 const int RETURN = 59;
70 const int GOTO = 60;
71 const int TRY = 61;
72 const int CATCH = 62;
73 const int ID = 63;
74 const int INTLIT = 64;
75 const int FLOATINGLIT = 65;
76 const int CHARLIT = 66;
77 const int STRINGLIT = 67;
78 const int DISJUNCTION = 68;
79 const int AMPAMP = 69;
80 const int DOTSTAR = 70;
81 const int ARROWSTAR = 71;
82 const int BITOR = 72;
83 const int BITXOR = 73;
84 const int AMP = 74;
85 const int EQ = 75;
86 const int NEQ = 76;
87 const int LEQ = 77;
88 const int GEQ = 78;
89 const int SHIFTLEFT = 79;
90 const int SHIFTRIGHT = 80;
91 const int PLUS = 81;
92 const int MINUS = 82;
93 const int STAR = 83;
94 const int DIV = 84;
95 const int REM = 85;
96 const int PLUSPLUS = 86;
97 const int MINUSMINUS = 87;
98 const int CPL = 88;
99 const int DOT = 89;
100 const int ARROW = 90;
101 const int QUEST = 91;
102 const int LPAREN = 92;
103 const int RPAREN = 93;
104 const int LBRACE = 94;
105 const int RBRACE = 95;
106 const int LBRACKET = 96;
107 const int RBRACKET = 97;
108 const int LANGLE = 98;
109 const int RANGLE = 99;
110 const int ELLIPSIS = 100;
111 const int COLONCOLON = 101;
112 const int COLON = 102;
113 const int SEMICOLON = 103;
114 const int HASH = 104;
115 const int COMMA = 105;
116 const int ASSIGN = 106;
117 const int MULASSIGN = 107;
118 const int DIVASSIGN = 108;
119 const int REMASSIGN = 109;
120 const int PLUSASSIGN = 110;
121 const int MINUSASSIGN = 111;
122 const int SHIFTLEFTASSIGN = 112;
123 const int SHIFTRIGHTASSIGN = 113;
124 const int ANDASSIGN = 114;
125 const int XORASSIGN = 115;
126 const int ORASSIGN = 116;
127
128 void InitTokenIdMap();
129 int GetTokenId(const std::u32string& tokenName);
130 const char* GetTokenName(int tokenId);
131 const char* GetTokenInfo(int tokenId);
132 }
133 #endif