From 4e333d90d4838f630bd84470b557154b6d32d0d3 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Mon, 27 Oct 2025 23:33:50 -0400 Subject: move lex_tok_str to lex.c --- lex.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- cgit v1.2.3