created a grammar file parser so that it successfully parses a txt file

might not be necessary as there is a NLTK library that you can use