Remove incorrectly generated call to adaptivePredict

This particular call to adaptivePredict did not correctly match the decision number to the preceding setState() call. In addition, since this code is generated only for a positive closure, the only possible alternative is the one that enters the loop; error handling is deferred to the alternative(s) within the body of the closure.
This commit is contained in:
Sam Harwell 2014-04-01 21:09:36 -05:00
parent 6de95c15e7
commit 8c8d4d754e
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ while ( _alt!=<choice.exitAlt> && _alt!=-1 ) {
PlusBlock(choice, alts, error) ::= <<
setState(<choice.blockStartStateNumber>); <! alt block decision !>
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,<choice.decision>,_ctx);
_alt = 1<if(!choice.ast.greedy)>+1<endif>;
do {
switch (_alt) {
<alts:{alt|