Groups | Search | Server Info | Login | Register


Groups > comp.compilers.tools.javacc > #16

Modify the inputstream or charstream

Newsgroups comp.compilers.tools.javacc
Date 2013-11-11 02:50 -0800
Message-ID <3f9afd92-1c17-46c5-8cf9-7a0a116bfc6c@googlegroups.com> (permalink)
Subject Modify the inputstream or charstream
From mmatassoni <matax87@gmail.com>

Show all headers | View raw


Hi,
I'm doing a parser for a custom syntax and I want to provide in the
grammar an "input" command like the one of latex (\input{filename}
imports the commands from filename into the target file; it's
equivalent to typing all the commands from filename right into the
current file where the \input line is). How can I achieve this? I
thought of preprocess the inputstream/charstream in the parser constructor, but I
would like to know if I can insert the content of the file in the inputstream/char at
parse time

Thanks

Back to comp.compilers.tools.javacc | Previous | Next | Find similar


Thread

Modify the inputstream or charstream mmatassoni <matax87@gmail.com> - 2013-11-11 02:50 -0800

csiph-web