[antlr-interest] Determining context in lexer?
Don Caton
dcaton at shorelinesoftware.com
Thu Nov 11 08:19:55 PST 2004
Monty:
Thanks - your's was the simplest suggestion and it works great. Thanks to
the others who also offered suggestions.
Regards,
Don Caton
Shoreline Software, Inc.
> You can override makeToken() to store the token type of the
> last token
> returned (maybe you want to not set it if it was whitespace? will
> depend on your application.
>
> So keep that as an instance variable and then check with your
> semantic
> predicate.
>
> Monty
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