문제

I may well be asking something not achievable here.. Maybe someone can point out either

(a) What would be some steps (/tools?) to at least partially achieve creation of bnf diagrams from a (rather complex) antlr grammar

(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 works for generating diagrams, one at a time, for rule.

for v4, ANTLRWorks 2 also generates them though I'm not sure it can save them to disk.

Ter

다른 팁

If it is an ANTLR 3 grammar, you could

Grako has an ANTLR3-to-EBNF translator in its examples. You can customize it to the BNF style you require (or to ANTLR4).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top