forked from jasder/antlr
Qualify references to the ATN class to avoid symbol conflicts with tokens named ATN (fixes #561)
This commit is contained in:
parent
e0937a6322
commit
938a39c057
|
@ -534,7 +534,7 @@ StarBlock(choice, alts, sync, iteration) ::= <<
|
|||
setState(<choice.stateNumber>);
|
||||
_errHandler.sync(this);
|
||||
_alt = getInterpreter().adaptivePredict(_input,<choice.decision>,_ctx);
|
||||
while ( _alt!=<choice.exitAlt> && _alt!=ATN.INVALID_ALT_NUMBER ) {
|
||||
while ( _alt!=<choice.exitAlt> && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
|
||||
if ( _alt==1<if(!choice.ast.greedy)>+1<endif> ) {
|
||||
<iteration>
|
||||
<alts> <! should only be one !>
|
||||
|
@ -561,7 +561,7 @@ case <i><if(!choice.ast.greedy)>+1<endif>:
|
|||
setState(<choice.loopBackStateNumber>); <! loopback/exit decision !>
|
||||
_errHandler.sync(this);
|
||||
_alt = getInterpreter().adaptivePredict(_input,<choice.decision>,_ctx);
|
||||
} while ( _alt!=<choice.exitAlt> && _alt!=ATN.INVALID_ALT_NUMBER );
|
||||
} while ( _alt!=<choice.exitAlt> && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER );
|
||||
>>
|
||||
|
||||
Sync(s) ::= "sync(<s.expecting.name>);"
|
||||
|
|
Loading…
Reference in New Issue