Re: Q: how to parse embedded sections in a different syntax
Eric Bezault <ericb-D6Qt/9opevxWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.lang.eiffel.gobo.general |
|---|---|
| Organization | Gobo |
| Message-ID | <[email protected]> |
Cheng-Chang Wu wrote:
> how can I let the scanner start scanning from the
> beginning of the file when EOF is read?
There is something similar to that in the code of gepp
($GOBO/src/gepp) when reading #include instructions. The
difference is that in that case we open a new file.
> I've the following rule,
>
> <searching_n><<EOF>> {
> if not is_rewinded and then file.is_rewindable then
> is_rewinded := True
> file.rewind
> -- (what should be done here?)
Try that:
set_input_buffer (new_file_buffer (file))
> else
> is_rewinded := False
> terminate
> end }
Let me know if it works or not.
--
Eric Bezault
mailto:ericb-D6Qt/9opevxWk0Htik3J/[email protected]
http://www.gobosoft.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/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/