need a form to encode grammar