[antlr-interest] Re: translations wanted?

lgcraymer lgc at mail1.jpl.nasa.gov
Mon Sep 8 11:59:54 PDT 2003


Paul's post reminds me--it would be nice to have a generic EBNF->ANTLR 
translator, including separating lexer rules from parser rules.  
That's a relatively simple project, but it could be enhanced by 
automatic generation of synpreds where there is ambiguity.  EBNF 
notations all have the same syntax, just with different keyword 
symbols (= or := or ::= for the lefthand/righthand separator, for 
example).  If you provide a translator for one EBNF dialect, then it 
can probably be used for any other one after a few changes to the 

Come to think of it, your new analysis code might take the synpred 
generation down to a small enough problem that this can easily be done 
as a one-student term project.


--- In antlr-interest at yahoogroups.com, paul taney <paultaney at y...> 
> --- mzukowski at y... wrote:
> > I've had a few requests for a C preprocessor to work
> > with the GCC toolkit.  
> > 
> > I think it would be more fun to do a Python grammar
> > though :)
> > 
> Monty,
> Wouldn't this translate rather easily to an antlr
> grammar?
> http://www.python.org/dev/doc/devel/ref/grammar.txt
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com


Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

More information about the antlr-interest mailing list