made some interfaces exportable and fixed/enhaaced some selector operator versions

This commit is contained in:
2024-04-08 23:17:56 +02:00
parent aa195b9a68
commit 9ac88bf446
29 changed files with 99 additions and 98 deletions
+7 -7
View File
@@ -20,7 +20,7 @@ func newNotTerm(tk *Token) (inst *term) {
}
}
func evalNot(ctx exprContext, self *term) (v any, err error) {
func evalNot(ctx ExprContext, self *term) (v any, err error) {
var rightValue any
if rightValue, err = self.evalPrefix(ctx); err != nil {
@@ -49,7 +49,7 @@ func newAndTerm(tk *Token) (inst *term) {
}
}
func evalAnd(ctx exprContext, self *term) (v any, err error) {
func evalAnd(ctx ExprContext, self *term) (v any, err error) {
if isEnabled(ctx, control_bool_shortcut) {
v, err = evalAndWithShortcut(ctx, self)
} else {
@@ -58,7 +58,7 @@ func evalAnd(ctx exprContext, self *term) (v any, err error) {
return
}
func evalAndWithoutShortcut(ctx exprContext, self *term) (v any, err error) {
func evalAndWithoutShortcut(ctx ExprContext, self *term) (v any, err error) {
var leftValue, rightValue any
var leftBool, rightBool bool
var lok, rok bool
@@ -78,7 +78,7 @@ func evalAndWithoutShortcut(ctx exprContext, self *term) (v any, err error) {
return
}
func evalAndWithShortcut(ctx exprContext, self *term) (v any, err error) {
func evalAndWithShortcut(ctx ExprContext, self *term) (v any, err error) {
var leftValue, rightValue any
if err = self.checkOperands(); err != nil {
@@ -118,7 +118,7 @@ func newOrTerm(tk *Token) (inst *term) {
}
}
func evalOr(ctx exprContext, self *term) (v any, err error) {
func evalOr(ctx ExprContext, self *term) (v any, err error) {
if isEnabled(ctx, control_bool_shortcut) {
v, err = evalOrWithShortcut(ctx, self)
} else {
@@ -127,7 +127,7 @@ func evalOr(ctx exprContext, self *term) (v any, err error) {
return
}
func evalOrWithoutShortcut(ctx exprContext, self *term) (v any, err error) {
func evalOrWithoutShortcut(ctx ExprContext, self *term) (v any, err error) {
var leftValue, rightValue any
var leftBool, rightBool bool
var lok, rok bool
@@ -147,7 +147,7 @@ func evalOrWithoutShortcut(ctx exprContext, self *term) (v any, err error) {
return
}
func evalOrWithShortcut(ctx exprContext, self *term) (v any, err error) {
func evalOrWithShortcut(ctx ExprContext, self *term) (v any, err error) {
var leftValue, rightValue any
if err = self.checkOperands(); err != nil {