1
0
Fork 0

Finalize type checker for now

This commit is contained in:
Vili Sinervä 2025-02-04 19:06:19 +02:00
parent ca2eeb9e50
commit f059870e81
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
3 changed files with 56 additions and 36 deletions

View file

@ -17,8 +17,8 @@ mod variable;
pub fn compile(code: &str) {
let tokens = tokenize(code);
let ast = parse(&tokens);
type_check(&ast, &mut SymTab::new_type_table());
let mut ast = parse(&tokens);
type_check(&mut ast, &mut SymTab::new_type_table());
}
pub fn start_interpreter() {