Esempio n. 1
0
def parse_expr(x):
    global dom
    impl = getDOMImplementation()
    dom = impl.createDocument(None, "daexml", None)
    y = Parser().parse(x,start_symbol='expression')    # y is now a dparser.ParsedStructure instance
    z = y.getStructure()
    return z