broken commit, started working on scopes

This commit is contained in:
2026-02-10 16:33:32 +00:00
parent 5e575e2cd8
commit 8361833b1c
4 changed files with 129 additions and 3 deletions
+3
View File
@@ -1,7 +1,10 @@
use crate::model::{CompilerError, Program};
mod codegen;
mod instruction;
mod registers;
mod scope;
mod variable;
pub fn generate_code(ast: &Program) -> Result<String, CompilerError> {
let mut codegen = codegen::CodeGenerator::new(ast.clone());