update grammar. crude support for java code