[antlr-interest] Re: Possible bug in subrule invertion
micheal_jor
open.zone at virgin.net
Fri Apr 9 10:56:40 PDT 2004
--- In antlr-interest at yahoogroups.com, "Tom Zagotta" <tzagotta1 at s...>
wrote:
>
> > If this is in the lexer, you cannot invert "rules" such as
> > LINE_FEED.
> > Done on purpose, I'm afraid. ;)
>
> In this case, LINE_FEED would be best defined as a macro, which
> unfortunately is not supported by ANTLR. Macros (or something
functionally
> equivalent or better) would be a nice addition for helping to build up
> lexers from smaller parts.
I hope ANTLR's input doesn't get so weak that it requires macro
preprocessing ;-)
Tom, can you give a small example of how you might use this macro to
do what you intended?
Cheers,
Micheal
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