diff options
Diffstat (limited to 'token.c')
-rw-r--r-- | token.c | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -12,11 +12,15 @@ struct token tok; const char *tokstr[] = { /* keyword */ + [TALIGNAS] = "alignas", + [TALIGNOF] = "alignof", [TAUTO] = "auto", + [TBOOL] = "bool", [TBREAK] = "break", [TCASE] = "case", [TCHAR] = "char", [TCONST] = "const", + [TCONSTEXPR] = "constexpr", [TCONTINUE] = "continue", [TDEFAULT] = "default", [TDO] = "do", @@ -24,6 +28,7 @@ const char *tokstr[] = { [TELSE] = "else", [TENUM] = "enum", [TEXTERN] = "extern", + [TFALSE] = "false", [TFLOAT] = "float", [TFOR] = "for", [TGOTO] = "goto", @@ -31,6 +36,7 @@ const char *tokstr[] = { [TINLINE] = "inline", [TINT] = "int", [TLONG] = "long", + [TNULLPTR] = "nullptr", [TREGISTER] = "register", [TRESTRICT] = "restrict", [TRETURN] = "return", @@ -38,27 +44,30 @@ const char *tokstr[] = { [TSIGNED] = "signed", [TSIZEOF] = "sizeof", [TSTATIC] = "static", + [TSTATIC_ASSERT] = "static_assert", [TSTRUCT] = "struct", [TSWITCH] = "switch", + [TTHREAD_LOCAL] = "thread_local", + [TTRUE] = "true", [TTYPEDEF] = "typedef", + [TTYPEOF] = "typeof", + [TTYPEOF_UNQUAL] = "typeof_unqual", [TUNION] = "union", [TUNSIGNED] = "unsigned", [TVOID] = "void", [TVOLATILE] = "volatile", [TWHILE] = "while", - [T_ALIGNAS] = "_Alignas", - [T_ALIGNOF] = "_Alignof", [T_ATOMIC] = "_Atomic", - [T_BOOL] = "_Bool", + [T_BITINT] = "_BitInt", [T_COMPLEX] = "_Complex", + [T_DECIMAL128] = "_Decimal128", + [T_DECIMAL32] = "_Decimal32", + [T_DECIMAL64] = "_Decimal64", [T_GENERIC] = "_Generic", [T_IMAGINARY] = "_Imaginary", [T_NORETURN] = "_Noreturn", - [T_STATIC_ASSERT] = "_Static_assert", - [T_THREAD_LOCAL] = "_Thread_local", [T__ASM__] = "__asm__", [T__ATTRIBUTE__] = "__attribute__", - [T__TYPEOF__] = "__typeof__", /* punctuator */ [TLBRACK] = "[", |