Kayon-Marie / SMPL_Interpreter

1 stars 2 forks source link

12 Add Procedures! please #18

Closed RowAtk closed 4 years ago

RowAtk commented 4 years ago

Add procedures to SMPL.

Operations:

Procedure Calls: Function calls are denoted by the function expression followed immediately by a sequence of comma-separated argument expressions enclosed in parentheses. The following expressions are all legal function calls: f(a, b), g(), (foo(3))(a, b, c, d), (proc(n) n * 4)(2). Functions may be declared with a variable number of arguments, but in all cases, it is an error to call a function with fewer or more arguments than is permitted by the function’s declaration.

This does not include built-in procedure functionality.