[antlr-interest] Popping a lexer upon EOF
Paul J. Lucas
dude at darkfigure.org
Tue Mar 9 21:04:02 PST 2004
According to the FAQ, "How do I handle #include files or other nested input streams?", it
says in part:
When you see an #include, create a new lexer just like you've been doing (no parser), and
then notify the TokenStreamSelector (push state and point at new lexer). At the close of
the included stream, tell the selector to pop it's state.
The question is: how do you catch "the close of the included stream" in order to pop it's
state?
- Paul
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