void report_lexer_error(Lexer *lx, const char *error_type, const char *file, const char *msg, const char *line_text, int line, int col, int tk_length)
Reports a lexer error by adding an error to the global error list.
Definition lexer.c:117
void init_lexer(Lexer *lexer, const char *source, ArenaAllocator *arena)
Initializes the lexer with source code and memory arena.
Definition lexer.c:228
Maps keyword text to token type for quick lookup.
Definition lexer.h:173
Maps symbol text to token type for quick lookup.
Definition lexer.h:164