Luna
e25621350a
- remove Logical expressions - add basic token return type to LLVMTypeRef converter - add codegen for Bool literals - fix "and" and "or" being identified as identifiers
15 lines
214 B
Text
15 lines
214 B
Text
// import std;
|
|
|
|
fn add() i32 {
|
|
return 69 + 69;
|
|
}
|
|
|
|
fn and_fn() bool {
|
|
return true and false;
|
|
}
|
|
|
|
// type is void by default
|
|
//fn main() {
|
|
// print("piss\n");
|
|
// // print("2 + 2 = %d\n", add(1, 2));
|
|
//}
|