// testing the lexer generated by JLex import java.io.*; import java_cup.runtime.*; public class mjlexertest { public static void main(String[] args) throws Exception { Yylex lexer = new Yylex(new FileReader(args[0])); Symbol token = null; while (token==null || (token.sym != sym.EOF)) { token = lexer.next_token(); System.out.print(token.sym+":"+token.value+" "); } System.out.println("\nEnd of Input"); } //main }