moved scanner sources to package 'scan'
This commit is contained in:
+10
-9
@@ -6,26 +6,27 @@ package expr
|
||||
|
||||
import (
|
||||
"git.portale-stac.it/go-pkg/expr/kern"
|
||||
"git.portale-stac.it/go-pkg/expr/scan"
|
||||
)
|
||||
|
||||
//-------- export all term
|
||||
|
||||
func newExportAllTerm(tk *Token) (inst *term) {
|
||||
return &term{
|
||||
tk: *tk,
|
||||
children: nil,
|
||||
position: posLeaf,
|
||||
priority: priValue,
|
||||
evalFunc: evalExportAll,
|
||||
func newExportAllTerm(tk *scan.Token) (inst *scan.Term) {
|
||||
return &scan.Term{
|
||||
Tk: *tk,
|
||||
Children: nil,
|
||||
Position: scan.PosLeaf,
|
||||
Priority: scan.PriValue,
|
||||
EvalFunc: evalExportAll,
|
||||
}
|
||||
}
|
||||
|
||||
func evalExportAll(ctx kern.ExprContext, opTerm *term) (v any, err error) {
|
||||
func evalExportAll(ctx kern.ExprContext, opTerm *scan.Term) (v any, err error) {
|
||||
CtrlEnable(ctx, kern.ControlExportAll)
|
||||
return
|
||||
}
|
||||
|
||||
// init
|
||||
func init() {
|
||||
registerTermConstructor(SymDoubleAt, newExportAllTerm)
|
||||
scan.RegisterTermConstructor(scan.SymDoubleAt, newExportAllTerm)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user