fix boolean operators

- remove Logical expressions
 - add basic token return type to LLVMTypeRef converter
 - add codegen for Bool literals
 - fix "and" and "or" being identified as identifiers
This commit is contained in:
Luna 2019-09-24 13:23:23 -03:00
parent f08d613198
commit e25621350a
6 changed files with 41 additions and 37 deletions

View file

@ -1,7 +1,11 @@
// import std;
fn add() i32 {
return 1 + 1;
return 69 + 69;
}
fn and_fn() bool {
return true and false;
}
// type is void by default