flesh out values in the toy language

This commit is contained in:
Ryan Fleury
2021-04-24 19:48:25 -06:00
parent 5f3528bea5
commit 25a80c1def
2 changed files with 98 additions and 52 deletions
+7 -5
View File
@@ -1,8 +1,10 @@
add: (x, y) { x + y }
main:()
@proc foo:(x, y, z)
{
a: 1;
b: 2;
add(a, b);
(x + y) * z
}
@proc main:()
{
foo(10, 20, 30);
}