Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!world!iecc!compilers-sender From: vern@daffy.ee.lbl.gov (Vern Paxson) Newsgroups: comp.compilers Subject: Re: Restarting lex portably (or flex) Keywords: lex, flex Message-ID: <10092@dog.ee.lbl.gov> Date: 21 Feb 91 01:08:28 GMT References: <9102162312.AA03862@pepsi.eng.umd.edu> Sender: compilers-sender@iecc.cambridge.ma.us Reply-To: vern@daffy.ee.lbl.gov (Vern Paxson) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 19 Approved: compilers@iecc.cambridge.ma.us In article <9102162312.AA03862@pepsi.eng.umd.edu> buzzard@eng.umd.edu (Sean Barrett) writes: >Is there a way to start lex processing a new file when the >previous one was *not* processed all the way to end-of-file? > ... >flex provides yyrestart(FILE *f), but ... is unclear whether >[it needs to have reached EOF on the previous file first.] It is not a precondition. I'll correct the documentation with the next (2.4) release (no time estimate as to when that'll be, yet, except "summer"). If you have problems with yyrestart() let me know. Vern Vern Paxson vern@ee.lbl.gov Real Time Systems ucbvax!ee.lbl.gov!vern Lawrence Berkeley Laboratory (415) 486-7504 -- Send compilers articles to compilers@iecc.cambridge.ma.us or {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request. Brought to you by Super Global Mega Corp .com