moved a subset of source file to the kern package
This commit is contained in:
+5
-1
@@ -4,6 +4,10 @@
|
||||
// operand-literal.go
|
||||
package expr
|
||||
|
||||
import (
|
||||
"git.portale-stac.it/go-pkg/expr/kern"
|
||||
)
|
||||
|
||||
// -------- literal term
|
||||
func newLiteralTerm(tk *Token) *term {
|
||||
return &term{
|
||||
@@ -17,7 +21,7 @@ func newLiteralTerm(tk *Token) *term {
|
||||
}
|
||||
|
||||
// -------- eval func
|
||||
func evalLiteral(ctx ExprContext, opTerm *term) (v any, err error) {
|
||||
func evalLiteral(ctx kern.ExprContext, opTerm *term) (v any, err error) {
|
||||
v = opTerm.tk.Value
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user