Documented dialogue parser with grammar