Re: Suspend the parser

Eric Bezault <ericb-D6Qt/9opevxWk0Htik3J/[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.general
Organization Gobo
Message-ID <[email protected]>
Cheng-Chang Wu wrote:
> For my application the proccess must jump out from the
> parser and jump in later. I've written a feature
> 'suspend' to save the local variables of feature
> 'parse', and redefined feature 'parse' so when it is
> called next time, it can resume its job.
> 
> I am not sure if I've done it right. Maybe someone
> have interest to look in the two attached classes.

It looks good to me.

 > yes, I hope one day geyacc can support such a function
 > so I don't need to maintain my own version;)

I have put a slightly modified version of your code
in YY_PARSER_SKELETON. It's in CVS now.

Thank you for this contribution.

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



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

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.