add function for turning data-map into grammar