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:
parent
14f05bbcc6
commit
7562bb3b45
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue