It is examples of using JFlex and CUP, a Java-based lex and yacc like parsing package.
This stuff is from http://www.csc.calpoly.edu/~gfisher/classes/330/examples/