Added grammar parsing of input file