public static void main(String[] args) throws Exception { String grammarName = "com.paypal.digraph.parser.antlr.DOT"; String startRuleName = "graph"; String[] testArgs1 = {grammarName, startRuleName, "-tree", "src/test/resources/test3.dg"}; TestRig.main(testArgs1); String[] testArgs2 = {grammarName, startRuleName, "-gui", "src/test/resources/test3.dg"}; TestRig.main(testArgs2); }
@Override public void parsePQLQuery(String pqlPath) throws Exception { String[] input = new String[4]; input[0] = "PQL"; input[1] = "query"; input[2] = "-gui"; input[3] = pqlPath; TestRig testRig = new TestRig(input); testRig.process(); }