Next: , Previous: , Up: FAQ   [Contents][Index]


How do I abandon a file in the middle of a scan and switch to a new file?

Just call yyrestart(newfile). Be sure to reset the start state if you want a “fresh start, since yyrestart does NOT reset the start state back to INITIAL.