Exemplo 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)
Exemplo 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)
Exemplo n.º 3
0
def parse(source):
    """
    Don't regenerate the parser on every call
    """
    return _parser().parse(source)
Exemplo n.º 4
0
def parse(source):
    """
    Don't regenerate the parser on every call
    """
    return _parser().parse(source, allow_single_quotes=False)