##// END OF EJS Templates
parser: take suffix action if no infix action is defined...
Yuya Nishihara -
r25818:455190fb default
parent child Browse files
Show More
@@ -62,7 +62,7 b' class parser(object):'
62 token, value, pos = self._advance()
62 token, value, pos = self._advance()
63 # handle infix rules, take as suffix if unambiguous
63 # handle infix rules, take as suffix if unambiguous
64 infix, suffix = self._elements[token][3:]
64 infix, suffix = self._elements[token][3:]
65 if suffix and not self._hasnewterm():
65 if suffix and not (infix and self._hasnewterm()):
66 expr = (suffix[0], expr)
66 expr = (suffix[0], expr)
67 elif infix:
67 elif infix:
68 expr = (infix[0], expr, self._parseoperand(*infix[1:]))
68 expr = (infix[0], expr, self._parseoperand(*infix[1:]))
General Comments 0
You need to be logged in to leave comments. Login now