Move Groovy parser code to Java
fix #11