Added custom showParseError function.

This uses a caret to indicate the error position.