2024-04-06 03:06:07 +02:00
|
|
|
// Copyright (c) 2024 Celestino Amoroso (celestino.amoroso@gmail.com).
|
|
|
|
// All rights reserved.
|
|
|
|
|
|
|
|
// operator-ctrl.go
|
|
|
|
package expr
|
|
|
|
|
|
|
|
//-------- export all term
|
|
|
|
|
|
|
|
func newExportAllTerm(tk *Token) (inst *term) {
|
|
|
|
return &term{
|
|
|
|
tk: *tk,
|
|
|
|
children: nil,
|
|
|
|
position: posLeaf,
|
|
|
|
priority: priValue,
|
|
|
|
evalFunc: evalExportAll,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-08 23:17:56 +02:00
|
|
|
func evalExportAll(ctx ExprContext, self *term) (v any, err error) {
|
2024-06-07 09:45:02 +02:00
|
|
|
CtrlEnable(ctx, control_export_all)
|
2024-04-06 03:06:07 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// init
|
|
|
|
func init() {
|
|
|
|
registerTermConstructor(SymDoubleAt, newExportAllTerm)
|
|
|
|
}
|