Update Grammar.java

implemented the use of find and createProductionRule in the data parsing stage.