[antlr-interest] '.dot' files of rules' diagrams

Jim Idle jimi at temporal-wave.com
Wed Dec 8 08:34:43 PST 2010


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: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Jean-Claude Durand
> Sent: Wednesday, December 08, 2010 7:05 AM
> To: antlr-interest at antlr.org
> 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: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> >> bounces at antlr.org] On Behalf Of Jean-Claude Durand
> >> Sent: Tuesday, December 07, 2010 1:00 AM
> >> To: antlr-interest at antlr.org
> >> 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



More information about the antlr-interest mailing list