[antlr-interest] AntLR Grammar for structured text

Bharath S payasam79 at yahoo.com
Wed Mar 10 14:12:57 PST 2004


Hi Terence,

I played around a bit with AntLR by adding my own
grammar and the syntax is cool so far. I'm dabbling
with a CC for the first time and hence the concern.

The Python grammar conversion is actually pretty
useful. Have you ever worked with Structured Text(a
PLC programming language)? I have the grammar for the
language and I need to translate it to AntLR format.

Thanks for your prompt reply!

B.

--- Terence Parr <parrt at cs.usfca.edu> wrote:
> 
> On Mar 10, 2004, at 1:03 PM, Bharath wrote:
> 
> > Hi antlers,
> >
> > I am planning to use AntLR to generate a parser
> for a programming
> > language. I have the grammar (production rules)
> and the token
> > definitions already. To convert the good ol'
> grammar into a format
> > that AntLR can understand, how much effort does it
> take? I am
> > specifially asking this question because I read on
> several sites
> > that AntLR grammar is tedious in a way (no
> offense) and I do not
> > have too much time.
> >
> > Are there many users of Eclipse AntLR plugin here?
> 
> Howdy :)
> 
> I built a lab for my students at USF where, in 1hr
> 45minutes, they 
> converted the Python grammar that comes with
> Python's distribution to 
> ANTLR format:
> 
>
http://www.cs.usfca.edu/~parrt/course/652/labs/python.html
> 
> This might help indirectly :)
> 
> For the record, the syntax of antlr is good, it's
> just that converting 
> from an LR-based tool like yacc can cause trouble
> like left-recursion 
> and such.
> 
> Ter
> --
> Professor Comp. Sci., University of San Francisco
> Creator, ANTLR Parser Generator,
> http://www.antlr.org
> Cofounder, http://www.jguru.com
> Cofounder, http://www.knowspam.net enjoy email
> again!
> Cofounder, http://www.peerscope.com pure link
> sharing
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
>      antlr-interest-unsubscribe at yahoogroups.com
> 
>  
> 


=====
Bharath Sundararaman
Graduate Assistant, CAHS.
(312)-5606532 (M)
http://www.cs.uic.edu/~bsundara

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

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



More information about the antlr-interest mailing list