added dialog support to generator

(and fixed a typo in the grammar)