[antlr-interest] Interactive processing of input
Bart Kiers
bkiers at gmail.com
Mon Apr 11 00:24:02 PDT 2011
On Mon, Apr 11, 2011 at 8:49 AM, NeoPhyte <20neophyte08 at gmail.com> wrote:
> Does ANTLR give me an option for interactive processing of input. ie
> Processing every line of input one by one
> >From whatever I know till now, it starts processing after it encounters an
> EOF.
> Is there some way I can make it process my input by some other means, say
> when it reads a "enter" etc.
The parser can only get started after it receives the input, so the answer
is no: you can't let the parser "do things" if only part of the tokens are
known.
Why not line simply create a new lexer/parser for each line and process the
input (and evaluate it).
Regards,
Bart.
More information about the antlr-interest
mailing list