add emitting of integer and float literals

- remove panics
 - add emitting for return statements
 - remove default emitting of return a+b;
This commit is contained in:
Luna 2019-09-23 22:07:19 -03:00
parent 4c1bdb5f91
commit 013aafa8a4
2 changed files with 53 additions and 27 deletions

View file

@ -1,7 +1,7 @@
// import std;
fn add(a: i32, b: i32) i32 {
return a + b;
fn add() i32 {
return 1 + 1;
}
// type is void by default