mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-07 08:08:48 +00:00
flesh out values in the toy language
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user