Documentation
¶
Overview ¶
Package evaluator contains the core of our interpreter, which walks the AST produced by the parser and evaluates the user-submitted program.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NULL = &object.Null{} TRUE = &object.Boolean{Value: true} FALSE = &object.Boolean{Value: false} PRAGMAS = make(map[string]int) )
pre-defined object including Null, True and False
Functions ¶
func EvalContext ¶
EvalContext is our core function for evaluating nodes. The context.Context provided can be used to cancel a running script instance.
func RegisterBuiltin ¶
func RegisterBuiltin(name string, fun object.BuiltinFunction)
RegisterBuiltin registers a built-in function. This is used to register our "standard library" functions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.