WIP top-level parsing and keyword tokens

This commit is contained in:
Krzosa Karol
2026-05-23 15:39:04 +02:00
parent fc04ee5c3e
commit b1b79abfd4
7 changed files with 431 additions and 155 deletions

11
main.c
View File

@@ -1,3 +1,13 @@
/*
- [ ] Compile simple int main program
- [x] Lex identifiers, keywords
- [ ] Add parsing of this
- [ ] Emit it
- [ ] Print error tokens location properly in lexer / parser and make it easy (not from source code)
- [ ] New line splicing, first source preprocessing stage. In order to properly handle '\\' backslash new line, we most likely need to preprocess the source in a initial pass. So at some point we need to introduce a stage that will create a buffer without wrong characters with a line / column mapping data structure.
*/
#include <assert.h>
#include <stdio.h>
#include <string.h>
@@ -9,6 +19,7 @@
#include "base.c"
#include "meta_gen.c"
#include "lex.c"
#include "ast.c"
#include "parser.c"
#include "emit_asm_x64.c"