Show More
@@ -62,7 +62,7 b' class parser(object):' | |||
|
62 | 62 | token, value, pos = self._advance() |
|
63 | 63 | # handle infix rules, take as suffix if unambiguous |
|
64 | 64 | infix, suffix = self._elements[token][3:] |
|
65 | if suffix and not self._hasnewterm(): | |
|
65 | if suffix and not (infix and self._hasnewterm()): | |
|
66 | 66 | expr = (suffix[0], expr) |
|
67 | 67 | elif infix: |
|
68 | 68 | expr = (infix[0], expr, self._parseoperand(*infix[1:])) |
General Comments 0
You need to be logged in to leave comments.
Login now