Create scaffolding for custom functions

This commit is contained in:
2020-03-11 19:59:29 +01:00
parent eb4fb1e980
commit e7bf085f58
10 changed files with 101 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ abstract class Function(val name: String) {
.firstOrNull { (_, args) -> args.signatureMatched }
?: throw FunctionInvocationException(this, arguments)
return definition.body(environment, arguments.toList())
return definition.body(environment, args.arguments)
}
val signature: String