You can hijack ANTLRWorks to do that. We did a hack change for JavaFX to do the same. Check the command line options for ANTLRWorks and I think you will be able to work it out.
Jim > -----Original Message----- > From: [email protected] [mailto:antlr-interest- > [email protected]] On Behalf Of Jean-Claude Durand > Sent: Wednesday, December 08, 2010 7:05 AM > To: [email protected] > Subject: Re: [antlr-interest] '.dot' files of rules' diagrams > > Thanks, it works well for an AST, but my question was about the > diagrams of a grammar's rules as we can see in ANTLRWORKS. > It would be nice to have such diagrams for documentation purposes. > JC. > > Le 7 déc. 2010 à 19:19, Jim Idle a écrit : > > > There is a method that does this for you on a tree. Look for the > class > > DOTTreeGenerator in package org.antlr.runtime.tree > > > > Jim > > > >> -----Original Message----- > >> From: [email protected] [mailto:antlr-interest- > >> [email protected]] On Behalf Of Jean-Claude Durand > >> Sent: Tuesday, December 07, 2010 1:00 AM > >> To: [email protected] > >> Subject: [antlr-interest] '.dot' files of rules' diagrams > >> > >> To achieve the documentation of my grammars, I would like to > retrieve > >> the '.dot' files generated by ANTLRWorks for rules diagrams. Is it > >> possible ? > >> > >> Thanks a lot for your answer. > >> > >> Jean-Claude Durand > >> > >> LIG, équipe GETALP > >> 385, rue de la Bibliothèque > >> BP 53 > >> 38041 Grenoble cedex 9 > >> France > >> > >> > >> List: http://www.antlr.org/mailman/listinfo/antlr-interest > >> Unsubscribe: > >> http://www.antlr.org/mailman/options/antlr-interest/your- > >> email-address > > > > > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > > Unsubscribe: > > http://www.antlr.org/mailman/options/antlr-interest/your-email- > address > > > > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your- > email-address List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
