[antlr-interest] How to prepare the intstream for function call?

Jim Idle jimi at temporal-wave.com
Mon Jul 4 09:09:00 PDT 2011


Yes, the input stream is not ready. I think that this is 'fixed' in later
releases. However, the idea is that I did not want to test a flag to see
if the istream was ready on every call in to the stream, so you must use a
call that initializes the stream, and then everything else works.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Mu Qiao
> Sent: Monday, July 04, 2011 7:08 AM
> To: antlr-interest Interest
> Subject: [antlr-interest] How to prepare the intstream for function
> call?
>
> Hi,
>
> I'm using the C API to implement function call. I've already recorded
> the index of the function body and created a new node stream for the
> function call. But I find that I have to call istream->size(istream)
> before calling istream->seek. Or errors will be reported.
> Is it because the input buffer is not ready or anything else? What is
> the correct step to reset the index?
>
> --
> Best wishes,
> Mu Qiao
> GnuPG fingerprint: 92B1 B0C4 8D14 F8C4 EFA5  3ACC 30B3 0DE4 17B1 57E9
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address


More information about the antlr-interest mailing list