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