updated tgsrp grammar