tweak to compile

This commit is contained in:
Terence Parr 2012-07-24 12:20:56 -07:00
parent 320868d661
commit 9627652b67
1 changed files with 1 additions and 1 deletions

View File

@ -1033,7 +1033,7 @@ public class ParserATNSimulator<Symbol extends Token> extends ATNSimulator {
ATNState p = config.state; ATNState p = config.state;
// optimization // optimization
if ( !p.onlyHasEpsilonTransitions() ) { if ( !p.onlyHasEpsilonTransitions() ) {
configs.add(config, this); configs.add(config);
if ( config.semanticContext!=null && config.semanticContext!= SemanticContext.NONE ) { if ( config.semanticContext!=null && config.semanticContext!= SemanticContext.NONE ) {
configs.hasSemanticContext = true; configs.hasSemanticContext = true;
} }