ast: now supports espression forest (multi expressions)

This commit is contained in:
2024-03-31 05:57:02 +02:00
parent aa705e68bf
commit 4e361f938e
4 changed files with 41 additions and 8 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ func (self *term) compute(ctx exprContext) (v any, err error) {
func (self *term) errIncompatibleTypes(leftValue, rightValue any) error {
return fmt.Errorf(
"left operand '%v' [%T] is not compatible with right operand '%v' [%T] with respect to operator %q",
"left operand '%v' [%T] and right operand '%v' [%T] are not compatible with operator %q",
leftValue, leftValue,
rightValue, rightValue,
self.source())