java类org.antlr.v4.runtime.misc.TestRig的实例源码

RunAntlrTestRig.java 文件源码 项目:digraph-parser 阅读 16 收藏 0 点赞 0 评论 0
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);
}
AbstractPQLAPI.java 文件源码 项目:PQL 阅读 17 收藏 0 点赞 0 评论 0
@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();
}


问题


面经


文章

微信
公众号

扫码关注公众号