Next: , Previous: How can I use more than 8192 rules?, Up: FAQ


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.