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

@@ -1,5 +1,7 @@
package io.smnp.environment
import io.smnp.callable.function.Function
import io.smnp.callable.method.Method
import io.smnp.type.model.Value
interface Environment {
@@ -8,4 +10,6 @@ interface Environment {
fun invokeFunction(name: String, arguments: List<Value>): Value
fun invokeMethod(obj: Value, name: String, arguments: List<Value>): Value
fun printCallStack()
fun defineFunction(function: Function)
fun defineMethod(method: Method)
}