Show More
@@ -62,13 +62,13 b' class parser(object):' | |||
|
62 | 62 | expr = (suffix[0], expr) |
|
63 | 63 | else: |
|
64 | 64 | # handle infix rules |
|
65 |
i |
|
|
65 | if len(e) < 3 or not e[2]: | |
|
66 | raise error.ParseError("not an infix: %s" % token, pos) | |
|
67 | infix = e[2] | |
|
66 | 68 | if len(infix) == 3 and infix[2] == self.current[0]: |
|
67 | 69 | self._match(infix[2], pos) |
|
68 | 70 | expr = (infix[0], expr, (None)) |
|
69 | 71 | else: |
|
70 | if not infix[0]: | |
|
71 | raise error.ParseError("not an infix: %s" % token, pos) | |
|
72 | 72 | expr = (infix[0], expr, self._parse(infix[1])) |
|
73 | 73 | if len(infix) == 3: |
|
74 | 74 | self._match(infix[2], pos) |
General Comments 0
You need to be logged in to leave comments.
Login now