Created class for grammar rules to help with implementation of grammarParser. However, grammarParser has not been modified to work with this change yet.