java类org.antlr.v4.runtime.tree.Trees的实例源码

RuleContext.java 文件源码 项目:Scratch-ApuC 阅读 26 收藏 0 点赞 0 评论 0
/** Print out a whole tree, not just a node, in LISP format
 *  (root child1 .. childN). Print just a node if this is a leaf.
 *  We have to know the recognizer so we can get rule names.
 */
@Override
public String toStringTree(@Nullable Parser recog) {
    return Trees.toStringTree(this, recog);
}
RuleContext.java 文件源码 项目:Scratch-ApuC 阅读 24 收藏 0 点赞 0 评论 0
/** Print out a whole tree, not just a node, in LISP format
 *  (root child1 .. childN). Print just a node if this is a leaf.
 */
public String toStringTree(@Nullable List<String> ruleNames) {
    return Trees.toStringTree(this, ruleNames);
}


问题


面经


文章

微信
公众号

扫码关注公众号