diff --git a/operator-default.go b/operator-default.go index 905f9bd..607eda3 100644 --- a/operator-default.go +++ b/operator-default.go @@ -11,7 +11,7 @@ func newDefaultTerm(tk *Token) (inst *term) { tk: *tk, children: make([]*term, 0, 2), position: posInfix, - priority: priCoalesce, + priority: priDefault, evalFunc: evalDefault, } } @@ -45,7 +45,7 @@ func newAlternateTerm(tk *Token) (inst *term) { tk: *tk, children: make([]*term, 0, 2), position: posInfix, - priority: priCoalesce, + priority: priDefault, evalFunc: evalAlternate, } } @@ -81,7 +81,7 @@ func newDefaultAssignTerm(tk *Token) (inst *term) { tk: *tk, children: make([]*term, 0, 2), position: posInfix, - priority: priCoalesce, + priority: priDefault, evalFunc: evalAssignDefault, } } diff --git a/term.go b/term.go index eb4e8fc..5e869da 100644 --- a/term.go +++ b/term.go @@ -26,7 +26,7 @@ const ( priSign priFact priIterValue - priCoalesce + priDefault priIncDec priDot priValue