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