I recently started using JFlex and came across the need to read from multiple input files in a specific order.When it finishes the first file i want Jflex to continue with its current state and the scanner to continue from the new file.
So far everything works fine when I have only 1 input file :
br = new BufferedReader(new FileReader("input1"));
Flexer scanner = new Flexer(br);
scanner.yylex();
br.close();
//lame attempt for second input(not working)
br = new BufferedReader(new FileReader("input2"));
scanner.yylex();
br.close();