diff options
| -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; |
