summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lex.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lex.c b/lex.c
index 733fb52..cfdb552 100644
--- a/lex.c
+++ b/lex.c
@@ -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);