removed method call

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9762]
This commit is contained in:
parrt 2011-12-27 16:31:09 -08:00
parent 3b51bb478d
commit 52396d8f5f
2 changed files with 0 additions and 2 deletions

View File

@ -136,7 +136,6 @@ class TestJavaLR {
if ( parser==null ) { if ( parser==null ) {
parser = new JavaLRParser(null); parser = new JavaLRParser(null);
if ( showTree ) parser.setBuildParseTree(true); if ( showTree ) parser.setBuildParseTree(true);
parser.getInterpreter().setContextSensitive(false);
// parser.setErrorHandler(new BailErrorStrategy<Token>()); // parser.setErrorHandler(new BailErrorStrategy<Token>());
// parser.getInterpreter().setContextSensitive(true); // parser.getInterpreter().setContextSensitive(true);
} }

View File

@ -7,7 +7,6 @@ public class TestU {
ULexer t = new ULexer(new ANTLRFileStream(args[0])); ULexer t = new ULexer(new ANTLRFileStream(args[0]));
CommonTokenStream tokens = new CommonTokenStream(t); CommonTokenStream tokens = new CommonTokenStream(t);
UParser p = new UParser(tokens); UParser p = new UParser(tokens);
p.getInterpreter().setContextSensitive(true);
p.setBuildParseTree(true); p.setBuildParseTree(true);
ParserRuleContext r = p.s(); ParserRuleContext r = p.s();
System.out.println(r.toStringTree(p)); System.out.println(r.toStringTree(p));