[antlr-interest] Reading from stdin (C backend)
Jason Nielsen
jdn at math.carleton.ca
Sun Aug 3 17:45:30 PDT 2008
On Sun, 3 Aug 2008, Jim Idle wrote:
>
> Because the lexer requires the entire input to work, you need to find
> some point in your input stream where you can accumulate packets, then
> you can use the standard constructors for in memory input streams and so
> on, reset/rebuild the lexer/parser/tree parser combinations for each
> 'packet'. There is not continuous parsing at the moment, though I have
> some ideas on how this might be done (it is not trivial).
>
Thanks Jim,
That makes sense and explains why I was finding this difficult as this
wasn't clear to me... I was banging my head against the wall since I
figured this should be trivial.
Cheers,
Jason
More information about the antlr-interest
mailing list