Finalize type checker for now
This commit is contained in:
parent
ca2eeb9e50
commit
f059870e81
3 changed files with 56 additions and 36 deletions
src
|
@ -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() {
|
||||
|
|
Reference in a new issue