[英]How to show a JDialog of a parser tree in antlr4.5.1?
I want the system to pop up a dialog to show the parser tree. 我希望系统弹出一个对话框以显示解析器树。 I want to know if there is a function to invoke in Java so I can do the thing above and I know at version 4.3 antlr got a function in class RuleContext named inspect to pop up a JDialog. 我想知道是否有在Java中调用的函数,因此我可以执行上述操作,并且我知道在4.3版中,antlr在RuleContext类中有一个名为inspect的函数来弹出JDialog。
I had the same problem when updating to the latest Antlr 4 version. 更新到最新的Antlr 4版本时,我遇到了同样的问题。 The inspect
method can now be found in the Trees
class, as of this commit . 从commit开始 ,现在可以在Trees
类中找到inspect
方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.