From 0072e6aad2f9969348d5315a692f1f5e2ebc075d Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Wed, 19 Apr 2023 12:59:22 +0100 Subject: Adds product/and operator --- subex/parse.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'subex/parse.go') diff --git a/subex/parse.go b/subex/parse.go index 2389c3b..f73d060 100644 --- a/subex/parse.go +++ b/subex/parse.go @@ -236,6 +236,8 @@ func parseSubex(l *RuneReader, minPower int) SubexAST { } case r == '+' && minPower <= 8: lhs = SubexASTSum {lhs} + case r == '*' && minPower <= 8: + lhs = SubexASTProduct {lhs} case r == '$' && minPower <= 8: slot := l.next() if slot == eof { -- cgit v1.2.3