[antlr-interest] "protected" lexer rules
Terence Parr
parrt at cs.usfca.edu
Sun Nov 7 15:43:01 PST 2004
On Nov 7, 2004, at 3:17 PM, John D. Mitchell wrote:
>> Ick. So, should it be an option or keyword?
>
> Since the concept is fundamental to the nature of those types of
> rules, I
> think it has to be a keyword.
Makes sense.
>> What would the name be? I can't even describe it exactly even in two
>> words. :(
>
>> "non token"? "method"? "macro"? "internal"?
>
> Their only purpose for existence is to provide a single definition of a
> (sub-)structure of (perhaps many) token(s), right? So, they are really
> just "shorthand" (rules).
Yes, common substructure with optional actions; e.g., DIGIT might
compute a value from the char.
So, "shared", "isolated", "common", "sub"?
perhaps there is a different "section"; one for regular rules and then
one for these shared rules?
Ter
--
CS Professor & Grad Director, 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!
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