SyntaxEditor grammar/AST framework part 7: Adding error handling