diff options
Diffstat (limited to 'lexer.c')
| -rw-r--r-- | lexer.c | 53 |
1 files changed, 53 insertions, 0 deletions
@@ -4,6 +4,59 @@ #include <string.h> #include <stdckdint.h> +const char* token_labels[] = { + "not found", + "identifier", + "integer literal", + "floating point literal", + "character literal", + "string literal", + "#", + "(", + ")", + "{", + "}", + "[", + "]", + ":", + ";", + ",", + ".", + "?", + "!", + "!=", + "^", + "^=", + "&", + "&&", + "&=", + "*", + "*=", + "-", + "-=", + "->", + "=", + "==", + "+", + "+=", + "\\", + "|", + "||", + "|=", + "/", + "/=", + "%", + "%=", + "<", + ">", + "<=", + ">=", + ">>", + ">>=", + "<<", + "<<=", +}; + static FILE* file = NULL; static int lookahead; static const char* PATH; |
