add type resolving for structs and fn params

- add a printer for the symbol table
 - add error contexts to type pass
This commit is contained in:
Luna 2019-09-25 00:26:30 -03:00
parent 8afab8e4ed
commit e2cca03d52
6 changed files with 266 additions and 22 deletions

View file

@ -1,5 +1,18 @@
// import std;
struct B {
field i32
}
struct Awoo {
b B
other_field i32
}
fn test_function() Awoo {
return 1;
}
fn multwo(num: i32, double_flag: bool) i32 {
// TODO resolve expr variables
if (true) {