Add base support for invoking custom functions (arguments' evaluating is still not supported)

This commit is contained in:
2020-03-11 21:20:06 +01:00
parent 6264be6573
commit 7d61756273
9 changed files with 49 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ import io.smnp.type.model.Value
class DebugFunction : Function("debug") {
override fun define(new: FunctionDefinitionTool) {
new function simple() define { env, _ ->
new function simple() body { env, _ ->
env.printCallStack()
Value.void()
}