change symbol table to use pointers to heap allocated symbols

This commit is contained in:
Luna 2019-09-28 13:17:11 -03:00
parent 93811c986d
commit a136a377ce
6 changed files with 53 additions and 38 deletions

View file

@ -31,6 +31,10 @@ fn test_function() B {
return B.b;
}
fn func_refer_param(b: i32) i32 {
return b * 231 + b;
}
fn multwo(num: i32, double_flag: bool) i32 {
if (double_flag) {
var truthy = true;
@ -41,10 +45,6 @@ fn multwo(num: i32, double_flag: bool) i32 {
}
}
fn func_refer_param(b: i32) i32 {
return b * 231 + b;
}
fn add(a: i32, b: i32) i32 {
return a + b;
}