[antlr-interest] Variants of a grammar
Marcel Schaible
marcel at schaible-consulting.de
Tue May 18 08:56:02 PDT 2010
Jim and Kirby, thanks for your help . I'll try it out and will give some feedback here.
Marcel
----- original Nachricht --------
Betreff: Re: [antlr-interest] Variants of a grammar
Gesendet: Di, 18. Mai 2010
Von: Jim Idle<jimi at temporal-wave.com>
> Use the import feature to include grammars in more than one file.
>
> Jim
>
> > -----Original Message-----
> > From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> > bounces at antlr.org] On Behalf Of Marcel Schaible
> > Sent: Monday, May 17, 2010 2:14 PM
> > To: antlr-interest at antlr.org
> > Subject: [antlr-interest] Variants of a grammar
> >
> > Hi,
> >
> > I am currently reworking some old big YACC grammar files. Each of them
> > (about 15 different YACC files with 5kB to 80Kb size) are describing a
> > command language for a specific hardware device and share a lot of
> > common rules. Now I was wondering if it is feasable to do some kind of
> > object-oriented approach like put all shared rules in some kind of a
> > base class and all the special command and command derivations in a
> > derived class. Another idea I am thinking of is using StringTemplate
> > to
> > generate the YACC grammar files.
> >
> > Maybe one of you stumbled over a similar problem and has a nice
> > solution
> > and could push me in the rigth direction?
> >
> > Thanks for sharing your thoughts in advance!
> >
> > Marcel
> >
> > 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
>
--- original Nachricht Ende ----
More information about the antlr-interest
mailing list