Create scaffolding for custom functions
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user