add basics of if statement emitting

- add util mkLLVMBool
 - add left/right paren to if statements
 - lowkey fix for statements' semicolon
This commit is contained in:
Luna 2019-09-24 14:12:37 -03:00
parent 1ac63cdbef
commit 1bb1fb813d
3 changed files with 36 additions and 9 deletions

View file

@ -1,5 +1,14 @@
// import std;
fn multwo(num: i32, double_flag: bool) i32 {
// TODO resolve expr variables
if (true) {
return 1 * 2;
} else {
return 1;
}
}
fn add(a: i32, b: i32) i32 {
return 69 + 69;
}