basic parser and interpreter from example
This commit is contained in:
commit
a587f1be24
6 changed files with 531 additions and 0 deletions
6
test.jang
Normal file
6
test.jang
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
let five = 5;
|
||||
let five = five + 3;
|
||||
fn sum x y = x + y;
|
||||
fn mul x y = x*y;
|
||||
let six = sum(1,sum(mul(2,2),3));
|
||||
five * 3 + six
|
||||
Loading…
Add table
Add a link
Reference in a new issue