Moved the grammar mapping definition into nodes.py; keeping related stuff together!