Esempio n. 1
0
def parse(source, lower=False):
    """
    Don't regenerate the parser on every call
    """
    tree = _parser().parse(source, allow_single_quotes=False)
    if not lower:
        return tree
    return Lowering(parser=tree.parser, features={}).process(tree)
Esempio n. 2
0
def parse(source, lower=False):
    """
    Don't regenerate the parser on every call
    """
    tree = _parser().parse(source)
    if not lower:
        return tree
    return Lowering(parser=tree.parser).process(tree)
Esempio n. 3
0
def parse(source):
    """
    Don't regenerate the parser on every call
    """
    return _parser().parse(source)
Esempio n. 4
0
def parse(source):
    """
    Don't regenerate the parser on every call
    """
    return _parser().parse(source, allow_single_quotes=False)