[antlr-interest] Re: suggested ANTLR projects?
Brian Smith
brian-l-smith at uiowa.edu
Tue Aug 12 19:57:23 PDT 2003
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.
Thanks,
Brian
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list