Moved grammar definitions into their own file

See GrammarDefinition.hpp's comment header for details.