diff options
| -rw-r--r-- | lex.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -5,6 +5,12 @@ #include "arena.h" #include "strio.h" +static const char *lex_tok_str[TOK_MAX] = { +#define X(n, s) s, + LEX_TOK_LIST +#undef X +}; + void lex_start(Lexer *l, const char *path) { l->ofs = 0; l->filename = str_dup(str_from_cstr(path), &l->arena); |
