Versions in this module Expand all Collapse all v0 v0.2.0 Dec 17, 2021 v0.1.0 Nov 26, 2021 Changes in this version + const GoExclusiveMethodSuffix + var Debug = false + var ScalarFunction_t = reflect.TypeOf(dummy_f).In(0) + var ScalarIf_t = reflect.TypeOf(dummy_scalarif).In(0) + var VectorFunction_t = reflect.TypeOf(dummy_f3).In(0) + var VectorIf_t = reflect.TypeOf(dummy_vectorif).In(0) + func Contains(tree, search Expr) bool + func Format(n ast.Node) string + type BlockStmt struct + Children []Expr + Node []ast.Node + func (b *BlockStmt) Child() []Expr + func (b *BlockStmt) Eval() interface{} + func (b *BlockStmt) Fix() Expr + func (b *BlockStmt) Format() string + func (b *BlockStmt) Type() reflect.Type + type Const struct + func NewConst(e Expr) *Const + func (c *Const) Child() []Expr + func (c *Const) Eval() interface{} + func (c *Const) Fix() Expr + func (c *Const) Type() reflect.Type + type Expr interface + Child func() []Expr + Eval func() interface{} + Fix func() Expr + Type func() reflect.Type + type LValue interface + SetValue func(interface{}) + type ScalarFunction interface + Float func() float64 + type ScalarIf interface + Get func() float64 + type TVar struct + func (t *TVar) Fix() Expr + type VectorFunction interface + Float3 func() data.Vector + type VectorIf interface + Get func() data.Vector + type World struct + func NewWorld() *World + func (w *World) Compile(src string) (code *BlockStmt, e error) + func (w *World) CompileExpr(src string) (code Expr, e error) + func (w *World) EnterScope() + func (w *World) Eval(src string) (ret interface{}, err error) + func (w *World) Exec(src string) error + func (w *World) ExitScope() + func (w *World) LoadStdlib() + func (w *World) MustCompile(src string) Expr + func (w *World) MustCompileExpr(src string) Expr + func (w *World) MustEval(src string) interface{} + func (w *World) MustExec(src string) + func (w *World) Resolve(identifier string) (e Expr) + func (w World) Const(name string, val interface{}, doc ...string) + func (w World) Func(name string, f interface{}, doc ...string) + func (w World) LValue(name string, v LValue, doc ...string) + func (w World) ROnly(name string, addr interface{}, doc ...string) + func (w World) TVar(name string, addr interface{}, doc ...string) + func (w World) Var(name string, addr interface{}, doc ...string)