Re: Setting scanner input using a KI_CHARACTER_INPUT_STREAM

Eric Bezault <ericb-D6Qt/9opevxWk0Htik3J/[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.general
Organization Gobo
Message-ID <[email protected]>
Nicholas Allen wrote:
> I created my own input stream sub class which I use with the scanner. The 
> problem I am finding is that the scanner never terminates and just just keeps 
> returning the last token when the end of my input stream is reached. I 
> thought that it would terminate once end_of_input returns true in my custom 
> input stream but this doesn't seem to be the case.
> 
> Any idea what could be causing this problem?

I think that you should make sure that `last_string' is
emptied when you reach the end of input.

-- 
Eric Bezault
mailto:ericb-D6Qt/9opevxWk0Htik3J/[email protected]
http://www.gobosoft.com



To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: [email protected] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gobo-eiffel/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.