// testing the lexer generated by JLex public class lexertest { public static void main(String[] args) throws Exception { Yylex lexer = new Yylex(System.in); String token = ""; System.out.print("Enter expression: "); while (!token.equals("EOF")) { token = lexer.next_token(); System.out.print(token+"\t"); } System.out.println("\nEnd of Input"); } //main }