5 TS(IDENTIFIER, "identifier", = 256)
6 TS(INTEGER, "integer number",)
7 TS(FLOATINGPOINT, "floatingpoint number",)
8 TS(STRING_LITERAL, "string literal",)
9 TS(WIDE_STRING_LITERAL, "wide string literal",)
11 #define S(mode,x) T(mode,x,#x,)
44 S(_C99|_GNUC, _Complex)
45 S(_C99|_GNUC, _Imaginary)
47 S(_GNUC, __extension__)
48 S(_GNUC, __builtin_classify_type)
49 S(_GNUC, __builtin_va_list)
50 S(_GNUC, __builtin_expect)
51 S(_GNUC, __builtin_offsetof)
52 S(_GNUC, __builtin_va_arg)
53 S(_GNUC, __builtin_va_end)
54 S(_GNUC, __builtin_alloca)
55 S(_GNUC, __builtin_nanf)
56 S(_GNUC, __builtin_nan)
57 S(_GNUC, __builtin_nand)
58 S(_GNUC, __builtin_isgreater)
59 S(_GNUC, __builtin_isgreaterequal)
60 S(_GNUC, __builtin_isless)
61 S(_GNUC, __builtin_islessequal)
62 S(_GNUC, __builtin_islessgreater)
63 S(_GNUC, __builtin_isunordered)
64 S(_GNUC, __builtin_constant_p)
65 S(_GNUC, __builtin_prefetch)
66 S(_C99, __PRETTY_FUNCTION__)
71 T(_GNUC, real, "__real__",)
72 T(_GNUC, _real, "__real", = T_real)
73 T(_GNUC, imag, "__imag__",)
74 T(_GNUC, _imag, "__imag", = T_imag)
75 T(_GNUC|_MS, __alignof__, "__alignof__",)
76 T(_GNUC|_MS, __alignof, "__alignof", = T___alignof__)
77 T(_MS, _alignof, "_alignof", = T___alignof__)
78 T(_ANSI|_C99, const, "const",)
79 T(_GNUC, _const, "__const", = T_const)
80 T(_GNUC|_MS, restrict, "__restrict",)
81 T(_GNUC, _restrict_, "__restrict__", = T_restrict)
82 T(_C99, _restrict, "restrict", = T_restrict)
84 T(_GNUC, __asm__, "__asm__", = T_asm)
85 T(_MS, _asm, "_asm", = T_asm)
86 T(_GNUC|_MS, __asm, "__asm", = T_asm)
87 T(_ANSI|_C99, volatile, "volatile",)
88 T(_GNUC, __volatile__, "__volatile__", = T_volatile)
89 T(_C99, inline, "inline",)
90 T(_GNUC|_MS, __inline, "__inline", = T_inline)
91 T(_GNUC, __inline__, "__inline__", = T_inline)
92 T(_GNUC, typeof, "typeof",)
93 T(_GNUC, __typeof, "__typeof", = T_typeof)
94 T(_GNUC, __typeof__, "__typeof__", = T_typeof)
95 T(_GNUC, attribute, "__attribute",)
96 T(_GNUC, __attribute__, "__attribute__", = T_attribute)
98 T(_GNUC, __builtin_va_start, "__builtin_va_start",)
99 T(_GNUC, __builtin_stdarg_start, "__builtin_stdarg_start", = T___builtin_va_start)
101 T(_MS, near, "_near",)
102 T(_MS, _near, "__near", = T_near)
104 T(_MS, _far, "__far", = T_far)
105 T(_MS, cdecl, "cdecl",)
106 T(_MS, _cdecl, "_cdecl", = T_cdecl)
107 T(_MS, __cdecl, "__cdecl", = T_cdecl)
108 T(_MS, stdcall, "_stdcall",)
109 T(_MS, __stdcall, "__stdcall", = T_stdcall)
110 T(_MS, fastcall, "_fastcall",)
111 T(_MS, __fastcall, "__fastcall", = T_fastcall)
112 T(_MS, thiscall, "_thiscall",)
113 T(_MS, __thiscall, "__thiscall", = T_thiscall)
114 T(_MS, forceinline, "_forceinline",)
115 T(_MS, __forceinline, "__forceinline", = T_forceinline)
116 T(_MS, unaligned, "_unaligned",)
117 T(_MS, __unaligned, "__unaligned", = T_unaligned)
118 T(_MS, assume, "_assume",)
119 T(_MS, __assume, "__assume", = T_assume)
121 T(_MS, __try, "__try", = T_try)
122 T(_MS, finally, "_finally",)
123 T(_MS, __finally, "__finally", = T_finally)
124 T(_MS, leave, "_leave",)
125 T(_MS, __leave, "__leave", = T_leave)
126 T(_MS, except, "_except",)
127 T(_MS, __except, "__except", = T_except)
128 T(_MS, declspec, "_declspec",)
129 T(_MS, __declspec, "__declspec", = T_declspec)
130 T(_MS, based, "_based",)
131 T(_MS, __based, "__based", = T_based)
133 T(_MS, int8, "_int8",)
134 T(_MS, __int8, "__int8", = T_int8)
135 T(_MS, int16, "_int16",)
136 T(_MS, __int16, "__int16", = T_int16)
137 T(_MS, int32, "_int32",)
138 T(_MS, __int32, "__int32", = T_int32)
139 T(_MS, int64, "_int64",)
140 T(_MS, __int64, "__int64", = T_int64)
142 #define _T(x,str,val) T(_ALL,x,str,val)
144 _T(MINUSGREATER, "->",)
146 _T(MINUSMINUS, "--",)
148 _T(GREATERGREATER, ">>",)
150 _T(GREATEREQUAL, ">=",)
151 _T(EQUALEQUAL, "==",)
152 _T(EXCLAMATIONMARKEQUAL, "!=",)
155 _T(DOTDOTDOT, "...",)
156 _T(ASTERISKEQUAL, "*=",)
157 _T(SLASHEQUAL, "/=",)
158 _T(PERCENTEQUAL, "%=",)
160 _T(MINUSEQUAL, "-=",)
161 _T(LESSLESSEQUAL, "<<=",)
162 _T(GREATERGREATEREQUAL, ">>=",)
164 _T(CARETEQUAL, "^=",)
168 #define T_LAST_TOKEN (T_HASHHASH+1)
170 _T(LESSCOLON, "<:", = '[')
171 _T(COLONGREATER, ":>", = ']')
172 _T(LESSPERCENT, "<%", = '{')
173 _T(PERCENTGREATER, "%>", = '}')
174 _T(PERCENTCOLON, "%:", = '#')
175 _T(PERCENTCOLONPERCENTCOLON, "%:%:", = T_HASHHASH)
177 _T(RBRACK, "[", = '[')
178 _T(LBRACK, "]", = ']')
179 _T(LBRACE, "(", = '(')
180 _T(RBRACE, ")", = ')')
181 _T(RCURLY, "{", = '{')
182 _T(LCURLY, "}", = '}')
185 _T(ASTERISK, "*", = '*')
187 _T(MINUS, "-", = '-')
188 _T(TILDE, "~", = '~')
189 _T(EXCLAMATIONMARK, "!", = '!')
190 _T(SLASH, "/", = '/')
191 _T(PERCENT, "%", = '%')
193 _T(GREATER, ">", = '>')
194 _T(CARET, "^", = '^')
196 _T(QUESTIONMARK, "?", = '?')
197 _T(COLON, ":", = ':')
198 _T(SEMICOLON, ";", = ';')
199 _T(EQUAL, "=", = '=')
200 _T(COMMA, ",", = ',')
205 TS(NEWLINE, "newline", = '\n')