diff --git a/runtime/Java/src/org/antlr/v4/runtime/atn/ParserATNSimulator.java b/runtime/Java/src/org/antlr/v4/runtime/atn/ParserATNSimulator.java index 8cd5e6454..24780f731 100755 --- a/runtime/Java/src/org/antlr/v4/runtime/atn/ParserATNSimulator.java +++ b/runtime/Java/src/org/antlr/v4/runtime/atn/ParserATNSimulator.java @@ -239,7 +239,7 @@ import java.util.Set; * holds the decision were evaluating */ public class ParserATNSimulator extends ATNSimulator { - public static boolean debug = false; + public static boolean debug = false public static boolean dfa_debug = false; public static boolean retry_debug = false; @@ -535,8 +535,7 @@ public class ParserATNSimulator extends ATNSimulator { int k = input.index() - startIndex + 1; // how much input we used // System.out.println("used k="+k); if ( outerContext == ParserRuleContext.EMPTY || // in grammar start rule - !D.configset.dipsIntoOuterContext || - k == 1 ) // SLL(1) == LL(1) + !D.configset.dipsIntoOuterContext ) { if ( reportAmbiguities && !D.configset.hasSemanticContext ) { reportAmbiguity(dfa, D, startIndex, input.index(), D.configset.conflictingAlts, D.configset); diff --git a/tool/playground/T.g b/tool/playground/T.g index af669d4f7..eebbe9ddd 100644 --- a/tool/playground/T.g +++ b/tool/playground/T.g @@ -1,9 +1,6 @@ grammar T; -s : a a a; -a : {false}? ID - | {true}? ID - | INT - ; -ID : 'a'..'z'+ ; +s : f f EOF; +f : | x; +x : 'a' 'b'; INT : '0'..'9'+; WS : (' '|'\n') {skip();} ;