[antlr-interest] Re: second lexical pass - yeah
Terence Parr
parrt at cs.usfca.edu
Mon Apr 12 12:11:52 PDT 2004
On Apr 12, 2004, at 11:50 AM, FranklinChen at cmu.edu wrote:
> Is there a reason not to just do this:
>
> protected DATE: ...
> protected STRING_LITERAL: ...
>
> DATE_OR_STRING_LITERAL
> : (DATE) => DATE { $setType(DATE); }
> | STRING_LITERAL { $setType(STRING_LITERAL); }
> ;
This will be much slower due to the predicate for large input, but
might work.
> By the way, has anyone been seeing my messages to this list? I've
> posted three or four separate messages on different questions I've had
> (one related to lexer issues).
I'm behind in email as usual...sorry.
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
<*> 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