From 45f4a6afd2a5683fa53f9d6787e3c5b0f70229fd Mon Sep 17 00:00:00 2001 From: 0x221e Date: Mon, 22 Jun 2026 13:17:53 +0300 Subject: update TODO --- TODO | 4 ++-- platform/elf/main.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 87f77e2..b5405f6 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,5 @@ TODO -- Abstract lexer error messages. +- Add recursion depth limit - Cleanup lexer, reduce LoCs. - Tokenizer should not malloc() for each token, use arena alloc and reserve instead. -- Add the same error-logic to hex and binary values in lex_number() in lex/lex.c +- Build a debug backend for the compiler to print the entirety of the state of the AST. \ No newline at end of file diff --git a/platform/elf/main.c b/platform/elf/main.c index 7dba99a..9c4bbd8 100644 --- a/platform/elf/main.c +++ b/platform/elf/main.c @@ -25,8 +25,9 @@ int main(int argc, char **argv) } struct lex lex = {0}; - lex.line = 0; + lex.line = 1; lex.buffer = fl.buffer; + lex.filepath = fl.path; lex.size = fl.size; lex.pos = 0; -- cgit v1.2.3