Fix code generation for LL1OptionalBlock bypass alternative

See #1545
This commit is contained in:
Sam Harwell 2016-12-23 16:12:43 -06:00
parent 33613657a5
commit 7a83cd4910
8 changed files with 7 additions and 10 deletions

View File

@ -566,7 +566,7 @@ switch (TokenStream.LA(1)) {
<alt>
break;}; separator="\n">
default:
<error>
break;
}
>>

View File

@ -644,7 +644,7 @@ switch (_input->LA(1)) {
\}
}; separator="\n">
default:
<error>
break;
}
>>

View File

@ -563,9 +563,6 @@ switch p.GetTokenStream().LA(1) {
<endif>
default:
<if(error)>
<error>
<endif>
}
>>

View File

@ -489,7 +489,7 @@ switch (_input.LA(1)) {
<alt>
break;}; separator="\n">
default:
<error>
break;
}
>>

View File

@ -360,7 +360,7 @@ switch (this._input.LA(1)) {
<alt>
break;}; separator="\n">
default:
<error>
break;
}
>>

View File

@ -334,7 +334,7 @@ token = self._input.LA(1)
<alt>
pass}; separator="\nel">
else:
<error>
pass
>>
LL1OptionalBlockSingleAlt(choice, expr, alts, preamble, error, followExpr) ::= <<

View File

@ -342,7 +342,7 @@ token = self._input.LA(1)
<alt>
pass}; separator="\nel">
else:
<error>
pass
>>
LL1OptionalBlockSingleAlt(choice, expr, alts, preamble, error, followExpr) ::= <<

View File

@ -510,7 +510,7 @@ switch (<parser.name>.Tokens(rawValue: try _input.LA(1))!) {
<alt>
break}; separator="\n">
default:
<error>
break
}
>>