What else would any sane ANTLRophile write a translator in?  BNF translators 
seem to be the simplest useful example for working with ANTLR.

--Loring




----- Original Message ----
> From: Jim Idle <[email protected]>
> To: "[email protected]" <[email protected]>
> Sent: Wed, November 4, 2009 11:07:18 AM
> Subject: Re: [antlr-interest] BNF to ANTLR
> 
> Yeah - the thing is though, that you then don't really learn anything about 
> what 
> you are doing. Unless of course you write the translator in ANTLR first ;-)
> 
> Jim
> 
> > -----Original Message-----
> > From: Loring Craymer [mailto:[email protected]]
> > Sent: Wednesday, November 04, 2009 11:05 AM
> > To: Jim Idle; [email protected]
> > Subject: Re: [antlr-interest] BNF to ANTLR
> > 
> > Actually, this is easier to do automatically.  Any BNF dialect takes
> > about 2 pages for parser + lexer description of the BNF in ANTLR; it is
> > very easy to write a translator from one BNF dialect to another
> > (ANTLR).  You will still have to rework the resulting grammar.
> > 
> > --Loring
> > 
> > 
> > 
> > ----- Original Message ----
> > > From: Jim Idle 
> > > To: "[email protected]" 
> > > Sent: Wed, November 4, 2009 8:05:12 AM
> > > Subject: Re: [antlr-interest] BNF to ANTLR
> > >
> > > Much better to do it by hand. ANTLRs EBNF notation is close, but
> > remember that
> > > ANTLR is LL() and not LALR, which most bnf definitions from normative
> > specs are
> > > aimed at. Use ANTLRWorks and build slowly and you should pick it up
> > quite
> > > quickly if you understand BNF well.
> > >
> > > Jim
> > >
> > > > -----Original Message-----
> > > > From: [email protected] [mailto:antlr-interest-
> > > > [email protected]] On Behalf Of Stefan Frey
> > > > Sent: Wednesday, November 04, 2009 6:33 AM
> > > > To: [email protected]
> > > > Subject: [antlr-interest] BNF to ANTLR
> > > >
> > > > Hi im quite new to ANTLR and compiler generation.
> > > > I have a grammer written in BNF and need to convert it
> > > > to the Format ANTLR supports. So ist there a better/quicker
> > > > solution than by doing it by hand?
> > > >
> > > > Cheers Stefan
> > > >
> > > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to