simple-func-store.go: now imports 'builtins' module on creation
This commit is contained in:
parent
c27e487fc3
commit
3c0307524b
@ -35,10 +35,12 @@ func (info *funcInfo) Functor() Functor {
|
||||
}
|
||||
|
||||
func NewSimpleFuncStore() *SimpleFuncStore {
|
||||
return &SimpleFuncStore{
|
||||
ctx := &SimpleFuncStore{
|
||||
SimpleVarStore: SimpleVarStore{varStore: make(map[string]any)},
|
||||
funcStore: make(map[string]*funcInfo),
|
||||
}
|
||||
ImportBuiltinsFuncs(ctx)
|
||||
return ctx
|
||||
}
|
||||
|
||||
func (ctx *SimpleFuncStore) Clone() ExprContext {
|
||||
|
Loading…
Reference in New Issue
Block a user