[antlr-interest] Quick Starter on Parser Grammars

Anthony W. Youngman antlr at thewolery.demon.co.uk
Sat Apr 14 11:42:57 PDT 2007


In message <B9C3F201-DA83-4D1F-B7BD-F6465001B2E1 at cs.usfca.edu>, Terence 
Parr <parrt at cs.usfca.edu> writes
>
>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. ;)
>
I know it's normal practice, but it sucks.

Are you expecting much on royalties? If you're not expecting much, Baen 
is a good publisher - and you might even get more via them than a normal 
publisher!

Cheers,
Wol
-- 
Anthony W. Youngman - anthony at thewolery.demon.co.uk



More information about the antlr-interest mailing list