问题描述
我可能会问这里无法实现的事情.也许有人可以指出其中一个
I may well be asking something not achievable here.. Maybe someone can point out either
(a)要从((较复杂)的)反语法中至少部分实现bnf图的创建,将需要一些步骤(/工具?)
(a) What would be some steps (/tools?) to at least partially achieve creation of bnf diagrams from a (rather complex) antlr grammar
(b)为什么(如果是这样)根本无法实现.例如.也许因为antlr是扩展的BNF,并且其递归结构与bnf要求不同.
(b) why (if it were the case) this simply can not be achieved. E.g. maybe since antlr is extended BNF and its recursive structure differs from bnf requirements.. Along those lines.
推荐答案
ANTLRWorks 1可以一次生成一个规则图.
ANTLRWorks 1 works for generating diagrams, one at a time, for rule.
对于v4,ANTLRWorks 2也会生成它们,尽管我不确定它是否可以将它们保存到磁盘.
for v4, ANTLRWorks 2 also generates them though I'm not sure it can save them to disk.
Ter
这篇关于从antlr语法生成BNF图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!