diff options
| author | 0x221e | 2026-06-22 13:17:53 +0300 |
|---|---|---|
| committer | 0x221e | 2026-06-22 13:17:53 +0300 |
| commit | 45f4a6afd2a5683fa53f9d6787e3c5b0f70229fd (patch) | |
| tree | 9ef79b753cd8132d0bbe90f19674ecfc987bb733 | |
| parent | 8a77b4096d9f61b6b6eaefb4c8c8abe7f4793b73 (diff) | |
update TODO
| -rw-r--r-- | TODO | 4 | ||||
| -rw-r--r-- | platform/elf/main.c | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -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; |
