I’ve generified source code of JavaCUP 0.10k (converted to use generics) but too my surprise, they already generified that stuff. :D I’ve checked their site 2 weeks ago but that time no migration link was there.
JavaCUP is a LR parser generator for Java language. It is included in the recent JDK also (oops, it is not exposed publically but all it’s classes are already there in the JDK), see Mustang. It’s very cool and very easy to use. You can find it here.