[antlr-interest] Re: suggested ANTLR projects?

Terence Parr parrt at cs.usfca.edu
Tue Aug 12 22:58:49 PDT 2003

On Tuesday, August 12, 2003, at 07:57  PM, Brian Smith wrote:

> tbrandonau wrote:
>> Ensemble section). In fact the Netbeans support could be improved
>> upon, incremental lexing gains from having a way to in effect return
>> multiple tokens at a time, to tell the incremental lexer not to try
>> an resume in the middle of a token (e.g. in Antlr you want to
>> return "options {" as two tokens: LITERAL_options and LCURLY but you
>> want to lex it in a single rule) so either non-restartable tokens or
> Please explain why "options {" is better lexed as a single rule? I
> noticed this kind of thing in ANTLR's antlr.g grammar and I simply 
> could
> not understand why the grammar was written like that. I feel I must be
> overlooking something.

I can't remember why anymore but I remember it being a good reason at 
the time ;)

Professor Comp. Sci., University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Co-founder, http://www.jguru.com
Co-founder, http://www.knowspam.net enjoy email again!
Co-founder, http://www.peerscope.com link sharing, pure-n-simple


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

More information about the antlr-interest mailing list