diff options
Diffstat (limited to 'sloth/src/main.rs')
| -rw-r--r-- | sloth/src/main.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sloth/src/main.rs b/sloth/src/main.rs index ec9eb7e..bdcb4cb 100644 --- a/sloth/src/main.rs +++ b/sloth/src/main.rs @@ -8,6 +8,7 @@ )] pub mod analysis; +pub mod codegen; pub mod lexer; pub mod parser; pub mod sloth_std; @@ -15,6 +16,8 @@ pub mod symtable; use std::{env, fs}; +use codegen::Compiler; +use inkwell::context::Context; use itertools::Itertools; use lexer::Lexer; use parser::AstParser; @@ -55,9 +58,11 @@ fn main() { return; } - println!("Suces"); - // println!("{ast:#?}"); + // println!("Suces"); + + let context = Context::create(); + Compiler::codegen(&context, "hi", &ast); // let graph = GraphBuilder::generate(Some(&source), &ast).unwrap(); // println!("{graph}"); |
