Created a BNFGrammar class to try to fix generation output issues