WIP top-level parsing and keyword tokens
This commit is contained in:
11
main.c
11
main.c
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user