@@ -0,0 +1,356 @@
+import java.io.InputStreamReader;%0Aimport java.io.Reader;%0A%0Apublic class LexerDriver %7B%0A%0A  public static void main(String%5B%5D args) throws Exception %7B%0A    Reader input = new InputStreamReader(System.in);%0A    Yylex lexer = new Yylex(input);%0A    int tok;%0A    do %7B%0A      tok = lexer.yylex();%0A      System.out.println(tok);%0A    %7D while (tok != lexer.YYEOF);%0A  %7D%0A%0A%7D%0A

add application to test lexical analysis