diff options
| 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 |
| commit | ce7bc08b1db6011a82b27dbccf4e5502b948a820 (patch) | |
| tree | 073bd967923541e35b5a0a43a0b9ea0b080025ee /lex.c | |
| parent | 7519eafc6787cc71dcdc252584fdfd081f4698ad (diff) | |
mostly finish writing the parser, split its defs into header
Diffstat (limited to 'lex.c')
| -rw-r--r-- | lex.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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}; } |
