diff options
| author | Baitinq <[email protected]> | 2025-06-03 22:53:03 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-06-03 22:57:40 +0200 |
| commit | 08abe6f88042d3f734453e47e4a410391fd4e9f9 (patch) | |
| tree | f1f2f7fad6368eb26cde09ac5d712cf536fde28f /src/bootstrap/main.src | |
| parent | Bootstrap: Parser: Add enough implementation to parse example -2 (diff) | |
| download | pry-lang-08abe6f88042d3f734453e47e4a410391fd4e9f9.tar.gz pry-lang-08abe6f88042d3f734453e47e4a410391fd4e9f9.tar.bz2 pry-lang-08abe6f88042d3f734453e47e4a410391fd4e9f9.zip | |
Bootstrap: Codegen: Start implementation
Diffstat (limited to 'src/bootstrap/main.src')
| -rw-r--r-- | src/bootstrap/main.src | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/main.src b/src/bootstrap/main.src index 3ff89b3..23defd1 100644 --- a/src/bootstrap/main.src +++ b/src/bootstrap/main.src @@ -16,6 +16,7 @@ let slice = struct { import "tokenizer.src"; import "parser.src"; +import "codegen.src"; let read_file = (filename: *i8, alloc: *arena) => slice { let file = fopen(filename, "r"); @@ -57,6 +58,11 @@ let main = (argc: i64, argv: **i8) => i64 { let p = parser_init(cast(*token, ts.data), ts.data_len, alloc); let ns = parse(p); + let c = codegen_init(alloc); + let res = codegen_generate(c); + let res = codegen_compile(c); + codegen_deinit(c); + arena_free(alloc); return 0; |