diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-19 12:59:22 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-19 12:59:22 +0100 |
commit | 0072e6aad2f9969348d5315a692f1f5e2ebc075d (patch) | |
tree | 0c75e9466a688694383279f56d69a46f014e3680 /subex/parse.go | |
parent | 053a403a77e5b4c46e82932e94d5fb7a4117ce43 (diff) | |
download | stred-go-0072e6aad2f9969348d5315a692f1f5e2ebc075d.tar |
Adds product/and operator
Diffstat (limited to 'subex/parse.go')
-rw-r--r-- | subex/parse.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |