def Error(msg):
def raise_error(s, loc, toks):<EOL><INDENT>raise ParseFatalException(msg + "<STR_LIT:\n>" + s)<EOL><DEDENT>empty = Empty()<EOL>empty.setParseAction(raise_error)<EOL>return empty<EOL>
Helper class to raise parser errors.