change variable declarations to statements

doing them as expressions was a hack since no 'var' keyword,
also, yeet the := operator from the parser.
This commit is contained in:
Luna 2019-09-25 22:22:13 -03:00
parent e69451cdd9
commit 45275d73db
7 changed files with 44 additions and 47 deletions

View file

@ -1,6 +1,7 @@
// import std;
fn f() i32 {
var a = 2;
return 2;
}