forked from jasder/antlr
removed method call
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9762]
This commit is contained in:
parent
3b51bb478d
commit
52396d8f5f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue