[antlr-interest] Quick Starter on Parser Grammars

Terence Parr parrt at cs.usfca.edu
Fri Apr 13 15:08:57 PDT 2007


On Apr 13, 2007, at 1:16 PM, Johannes Luber wrote:

> Alexandre Porcelli wrote:
>> I think this initiative very nice! Another think that I would like to
>> suggest is to add to the wiki  some "common extensions" (ex: how-to
>> emit more than a token per lex rule) and "patterns"  (ex:
>> expressions).
>
> I'm not familiar with common extensions in general - for this I am too
> new to ANTLR. The same for those patterns with the exception of
> expressions, if you mean, how one does change the precedence of
> operators and left- and right-association. There is already a  
> treatment
> about this in the ANTLR book so I wouldn't know if it is okay with
> Terence if I practically publish this part of the book (even if I  
> write
> the accompanying text myself). I'd say, it would be simpler if Terence
> simply used the book text as starting point for a tutorial himself.

Yeah, the publisher actually owns the copyright so I can't post  
examples even w/o their permission.  I'll have to do something else. ;)

Ter



More information about the antlr-interest mailing list