summaryrefslogtreecommitdiff
path: root/parser/expr.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/expr.go')
-rw-r--r--parser/expr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/expr.go b/parser/expr.go
index 207f38b..806fd75 100644
--- a/parser/expr.go
+++ b/parser/expr.go
@@ -42,7 +42,7 @@ func (p *Parser) ParseExpr(in Tokens) (out Tokens, err error) {
case lang.Int, lang.String:
out = append(out, t)
vl++
- case lang.Define, lang.Add, lang.Sub, lang.Assign, lang.Equal, lang.Greater, lang.Less, lang.Mul, lang.Land, lang.Lor, lang.Shl, lang.Shr, lang.Not:
+ case lang.Define, lang.Add, lang.Sub, lang.Assign, lang.Equal, lang.Greater, lang.Less, lang.Mul, lang.Land, lang.Lor, lang.Shl, lang.Shr, lang.Not, lang.And:
if i == 0 || in[i-1].Id.IsOperator() {
// An operator preceded by an operator or no token is unary.
t.Id = lang.UnaryOp[t.Id]