NameToken.java file made changes to integrate the ANTLR generated parser with the project. There is no Token.java file which was produced by javacc and hence CommonToken class was used and extended by NameToken.java. Constructor was had to be added.