32 lines
590 B
Go
32 lines
590 B
Go
// Copyright (c) 2024 Celestino Amoroso (celestino.amoroso@gmail.com).
|
|
// All rights reserved.
|
|
|
|
// operator-ctrl.go
|
|
package expr
|
|
|
|
import (
|
|
"git.portale-stac.it/go-pkg/expr/kern"
|
|
)
|
|
|
|
//-------- export all term
|
|
|
|
func newExportAllTerm(tk *Token) (inst *term) {
|
|
return &term{
|
|
tk: *tk,
|
|
children: nil,
|
|
position: posLeaf,
|
|
priority: priValue,
|
|
evalFunc: evalExportAll,
|
|
}
|
|
}
|
|
|
|
func evalExportAll(ctx kern.ExprContext, opTerm *term) (v any, err error) {
|
|
CtrlEnable(ctx, kern.ControlExportAll)
|
|
return
|
|
}
|
|
|
|
// init
|
|
func init() {
|
|
registerTermConstructor(SymDoubleAt, newExportAllTerm)
|
|
}
|