Update Grammar.java

added string parsing for the right hand production rules that contain " | " and called createProductionRule with temp now being the parent nonTerminal