[antlr-interest] How to redirect the input stream?
Ric Klaren
ric.klaren at gmail.com
Fri May 11 04:21:24 PDT 2007
Hi,
On 5/11/07, Frank Yue <professoryue at gmail.com> wrote:
> HI, all ! I want to ask lexer to scan another character stream
> when EOF is reached .
Check out the includeFile example in examples/cpp/includeFile in the
distribution. A somewhat bigger example is available at:
http://pts14043.pts.nl/antlr/cppparser.tar.bz2
The latter is a very rough adaption of David Wiggs C++ grammar.
Basically a snapshot a piece of work in progress.
Not sure if there's a extra documentation, apart from comments in the
header files. (Might be that the java runtime is better documented
with respect to uponEOF).
Cheers,
Ric
More information about the antlr-interest
mailing list