<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'subex/parse.go')
-rw-r--r--subex/parse.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/subex/parse.go b/subex/parse.go
index 8635186..f5316c9 100644
--- a/subex/parse.go
+++ b/subex/parse.go
@@ -240,6 +240,8 @@ func parseSubex(l *RuneReader, minPower int) SubexAST {
lhs = SubexASTProduct {lhs}
case r == '-' && minPower <= 8:
lhs = SubexASTNegate {lhs}
+ case r == '/' && minPower <= 8:
+ lhs = SubexASTReciprocal {lhs}
case r == '$' && minPower <= 8:
slot := l.next()
if slot == eof {