summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
authorÁkos Kőrösi <korakos99@gmail.com>2026-05-12 14:50:55 +0200
committerÁkos Kőrösi <korakos99@gmail.com>2026-05-12 14:50:55 +0200
commitce7bc08b1db6011a82b27dbccf4e5502b948a820 (patch)
tree073bd967923541e35b5a0a43a0b9ea0b080025ee /lex.c
parent7519eafc6787cc71dcdc252584fdfd081f4698ad (diff)
mostly finish writing the parser, split its defs into header
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c1
1 files changed, 1 insertions, 0 deletions
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', &reg_arena);
+ push_to_TokenVec(&toks, (Token){.kind = TOK_SPECIAL, .as.spec = EOL});
return (LexResult){.top_tokens = toks, .reg_arena = reg_arena};
}