grammar: debug and prepare for error recovery implementation

Signed-off-by: Peter Williams <pwil3058@gmail.com>