[antlr-interest] Please HELP!!!
pete.forman at westerngeco.com
Thu Feb 6 00:20:27 PST 2003
At 2003-02-06 02:17 +0000, rmsanjivp <rmsanjivp at yahoo.com> wrote:
>Is there a way to change the input to lexer while I am parsing? Like
>telling lexer to read from one file initially and then from another
>file without re-instantiating the lexer?
You might try writing a subclass of istream which handles the
multiplexing of istreams. Care would be needed to ensure that look
ahead is done in the correct istream.
Pete Forman -./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not represent
pete.forman at westerngeco.com -./\.- opinion of Schlumberger, Baker
http://petef.port5.com -./\.- Hughes or their divisions.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest