def raw_parse(data, filename=None): try: ret = _parse(data) return ret except ParseError: e = extract_exception() e.filename = filename raise
def parse(data): p = _parse(data) dispatcher = Dispatcher() return ast_walk(p, dispatcher)