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:
parent
f08d613198
commit
e25621350a
6 changed files with 41 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue