1 #ifndef TokenLexerTokens_HPP
2 #define TokenLexerTokens_HPP
3
4
5
6 #include <sngcm/cmlexer/CmajorLexerApi.hpp>
7 #include <string>
8
9 namespace TokenLexerTokens
10 {
11 const int END = 0;
12 const int ASSERT = 1;
13 const int ELIF = 2;
14 const int ENDIF = 3;
15 const int BOOL = 4;
16 const int TRUE = 5;
17 const int FALSE = 6;
18 const int SBYTE = 7;
19 const int BYTE = 8;
20 const int SHORT = 9;
21 const int USHORT = 10;
22 const int INT = 11;
23 const int UINT = 12;
24 const int LONG = 13;
25 const int ULONG = 14;
26 const int FLOAT = 15;
27 const int DOUBLE = 16;
28 const int CHAR = 17;
29 const int WCHAR = 18;
30 const int UCHAR = 19;
31 const int VOID = 20;
32 const int ENUM = 21;
33 const int CAST = 22;
34 const int INTERFACE = 23;
35 const int NAMESPACE = 24;
36 const int USING = 25;
37 const int STATIC = 26;
38 const int EXTERN = 27;
39 const int AS = 28;
40 const int IS = 29;
41 const int EXPLICIT = 30;
42 const int DELEGATE = 31;
43 const int INLINE = 32;
44 const int CDECL = 33;
45 const int NOTHROW = 34;
46 const int PUBLIC = 35;
47 const int PROTECTED = 36;
48 const int PRIVATE = 37;
49 const int INTERNAL = 38;
50 const int VIRTUAL = 39;
51 const int ABSTRACT = 40;
52 const int OVERRIDE = 41;
53 const int SUPPRESS = 42;
54 const int OPERATOR = 43;
55 const int CLASS = 44;
56 const int RETURN = 45;
57 const int IF = 46;
58 const int ELSE = 47;
59 const int SWITCH = 48;
60 const int CASE = 49;
61 const int DEFAULT = 50;
62 const int WHILE = 51;
63 const int DO = 52;
64 const int FOR = 53;
65 const int BREAK = 54;
66 const int CONTINUE = 55;
67 const int GOTO = 56;
68 const int TYPEDEF = 57;
69 const int TYPENAME = 58;
70 const int TYPEID = 59;
71 const int CONST = 60;
72 const int CONSTEXPR = 61;
73 const int NULLLIT = 62;
74 const int THIS = 63;
75 const int BASE = 64;
76 const int CONSTRUCT = 65;
77 const int DESTROY = 66;
78 const int NEW = 67;
79 const int DELETE = 68;
80 const int SIZEOF = 69;
81 const int TRY = 70;
82 const int CATCH = 71;
83 const int THROW = 72;
84 const int CONCEPT = 73;
85 const int WHERE = 74;
86 const int AXIOM = 75;
87 const int AND = 76;
88 const int OR = 77;
89 const int EXCLAMATION = 78;
90 const int UNIT_TEST = 79;
91 const int FLOATINGLIT = 80;
92 const int INTLIT = 81;
93 const int CHARLIT = 82;
94 const int STRINGLIT = 83;
95 const int EQUIVALENCE = 84;
96 const int IMPLICATION = 85;
97 const int DISJUNCTION = 86;
98 const int AMPAMP = 87;
99 const int BITOR = 88;
100 const int BITXOR = 89;
101 const int AMP = 90;
102 const int EQ = 91;
103 const int NEQ = 92;
104 const int LEQ = 93;
105 const int GEQ = 94;
106 const int SHIFTLEFT = 95;
107 const int SHIFTRIGHT = 96;
108 const int PLUS = 97;
109 const int MINUS = 98;
110 const int STAR = 99;
111 const int DIV = 100;
112 const int REM = 101;
113 const int PLUSPLUS = 102;
114 const int MINUSMINUS = 103;
115 const int CPL = 104;
116 const int DOT = 105;
117 const int ARROW = 106;
118 const int LBRACKET = 107;
119 const int RBRACKET = 108;
120 const int LPAREN = 109;
121 const int RPAREN = 110;
122 const int LANGLE = 111;
123 const int RANGLE = 112;
124 const int LBRACE = 113;
125 const int RBRACE = 114;
126 const int COMMA = 115;
127 const int ASSIGN = 116;
128 const int COLON = 117;
129 const int SEMICOLON = 118;
130 const int HASH = 119;
131 const int WS = 120;
132 const int LINECOMMENT = 121;
133 const int BLOCKCOMMENT = 122;
134 const int BLOCKCOMMENTLINE = 123;
135 const int KEYWORD = 124;
136 const int ID = 125;
137 const int NUMBER = 126;
138 const int OTHER = 127;
139 const int MAX = 128;
140
141 void InitTokenIdMap();
142 int GetTokenId(const std::u32string& tokenName);
143 const char* GetTokenName(int tokenId);
144 const char* GetTokenInfo(int tokenId);
145 }
146 #endif