support up to 6 args, euler

This commit is contained in:
2025-06-01 16:12:47 +02:00
parent 7fa08d8b37
commit 8a0fbac739
12 changed files with 213 additions and 24 deletions

View File

@@ -22,11 +22,10 @@ fn compile_file(path: String) -> Result<(), Box<dyn Error>> {
let statements = parser.parse()?;
let mut codegen = codegen_x86_64::CodegenX86_64::new();
let mut env = codegen_x86_64::Env::new();
codegen.emit_prologue()?;
for stmt in statements {
codegen.compile_stmt(&mut env, stmt)?;
codegen.compile_stmt(&mut codegen_x86_64::Env::new(), stmt)?;
}
codegen.emit_epilogue()?;