Documentation ¶
Index ¶
- func Evaluate(astNode ast.Stmt, env interpreter_env.Environment) (interpreter_env.RuntimeValue, error)
- func EvaluateBodyStmt(body []ast.Stmt, env interpreter_env.Environment) (interpreter_env.RuntimeValue, error)
- func GetFunctionName(caller ast.CallExpr, env interpreter_env.Environment) (string, error)
- func IsNativeFunction(name string) (nativeFns.NativeFunction, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Evaluate ¶
func Evaluate(astNode ast.Stmt, env interpreter_env.Environment) (interpreter_env.RuntimeValue, error)
func EvaluateBodyStmt ¶
func EvaluateBodyStmt(body []ast.Stmt, env interpreter_env.Environment) (interpreter_env.RuntimeValue, error)
func GetFunctionName ¶ added in v0.5.2
func GetFunctionName(caller ast.CallExpr, env interpreter_env.Environment) (string, error)
func IsNativeFunction ¶ added in v0.5.5
func IsNativeFunction(name string) (nativeFns.NativeFunction, bool)
* First return value is the function itself. * Second return value is true if the function exists.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.