Add ATN->GRAMMAR function

* Reverse transformation helps check that GRAMMAR->ATN is correct