Add an 'error' parser action

This pretty much completes the usual set of actions you see in descriptions of
shift-reduce parsers. Seems okay.