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: [email protected] [mailto:antlr-interest-
> [email protected]] 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

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to