data_algebra/parse_by_lark.py
def parse_by_lark(source_str: str, *, data_def=None) -> data_algebra.expr_rep.Term:
    """
    Parse an expression in terms of data views and values.

    :param source_str: string to parse
    :param data_def: dictionary of data_algebra.expr_rep.ColumnReference
    :return: data_algebra.expr_rep.Term
    """
    assert parser is not None
    assert isinstance(source_str, str)
    tree = parser.parse(source_str)
    # convert parse tree to our data structures for isolation
    v = _walk_lark_tree(tree, data_def=data_def)
    v.source_string = source_str
    assert isinstance(v, data_algebra.expr_rep.Term)
    return v

    Parse an expression in terms of data views and values.

    :param source_str: string to parse
    :param data_def: dictionary of data_algebra.expr_rep.ColumnReference
    :return: data_algebra.expr_rep.Term
    
Parse an expression in terms of data views and values.
Parse an expression in terms of data views and values .
def parse_by_lark(source_str: str, *, data_def=None) -> data_algebra.expr_rep.Term:
    assert parser is not None
    assert isinstance(source_str, str)
    tree = parser.parse(source_str)
    v = _walk_lark_tree(tree, data_def=data_def)
    v.source_string = source_str
    assert isinstance(v, data_algebra.expr_rep.Term)
    return v
def parse_by_lark ( source_str : str , * , data_def = None ) -> data_algebra . expr_rep . Term : assert parser is not None assert isinstance ( source_str , str ) tree = parser . parse ( source_str ) v = _walk_lark_tree ( tree , data_def = data_def ) v . source_string = source_str assert isinstance ( v , data_algebra . expr_rep . Term ) return v
Parse an expression in terms of data views and values.
Parse an expression in terms of data views and values .
"""
    Parse an expression in terms of data views and values.

    :param source_str: string to parse
    :param data_def: dictionary of data_algebra.expr_rep.ColumnReference
    :return: data_algebra.expr_rep.Term
    """ # convert parse tree to our data structures for isolation
None
source_str
str
string to parse
string to parse
data_def
dictionary of data_algebra.expr_rep.ColumnReference
dictionary of data_algebra . expr_rep . ColumnReference