Add missing default pass statements to Python targets.

The default pass statements were missing from the LL1AltBlock's
template in case of Python targets, which generated conditional statements
without body in some cases and ended in syntax error. The patch fixes this.
This commit is contained in:
Renata Hodovan 2016-04-13 17:52:17 +02:00
parent 14f05bbcc6
commit 7562bb3b45
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ self.state = <choice.stateNumber>
token = self._input.LA(1)
<choice.altLook,alts:{look,alt| <cases(ttypes=look)>
<alt>
}; separator="\nel">
pass}; separator="\nel">
else:
<error>

View File

@ -327,7 +327,7 @@ self.state = <choice.stateNumber>
token = self._input.LA(1)
<choice.altLook,alts:{look,alt| <cases(ttypes=look)>
<alt>
}; separator="\nel">
pass}; separator="\nel">
else:
<error>