From ce7bc08b1db6011a82b27dbccf4e5502b948a820 Mon Sep 17 00:00:00 2001 From: Ákos Kőrösi Date: Tue, 12 May 2026 14:50:55 +0200 Subject: mostly finish writing the parser, split its defs into header --- lex.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lex.c') diff --git a/lex.c b/lex.c index d7641a4..3689432 100644 --- a/lex.c +++ b/lex.c @@ -275,5 +275,6 @@ LexResult lex(char* input) { RawLine line = {.str = input, .pos = 0}; RegionVec reg_arena = make_RegionVec(256); TokenVec toks = lex_level(&line, '\0', ®_arena); + push_to_TokenVec(&toks, (Token){.kind = TOK_SPECIAL, .as.spec = EOL}); return (LexResult){.top_tokens = toks, .reg_arena = reg_arena}; } -- cgit v1.2.3