Example #1
0
def bool_literal(tokens):
    match = common.keyword(tokens, "true")
    if match:
        return match._replace(value=True)

    match = common.keyword(tokens, "false")
    if match:
        return match._replace(value=False)
Example #2
0
def bool_literal(tokens):
    match = common.keyword(tokens, "true")
    if match:
        return match._replace(value=True)

    match = common.keyword(tokens, "false")
    if match:
        return match._replace(value=False)
Example #3
0
def let_assign(tokens):
    """Matches a '=' in the let expression."""
    return common.keyword(tokens, "=")
Example #4
0
def select_asc(tokens):
    return common.keyword(tokens, "asc")
Example #5
0
def if_if(tokens):
    """Matches an if-else block."""
    return common.keyword(tokens, "if")
Example #6
0
def select_from(tokens):
    return common.keyword(tokens, "from")
Example #7
0
def select_limit(tokens):
    return common.keyword(tokens, "limit")
Example #8
0
def if_else(tokens):
    return common.keyword(tokens, "else")
Example #9
0
def select_any(tokens):
    return common.keyword(tokens, "any")
Example #10
0
def select_from(tokens):
    return common.keyword(tokens, "from")
Example #11
0
def select_where(tokens):
    return common.keyword(tokens, "where")
Example #12
0
def select_any(tokens):
    return common.keyword(tokens, "any")
Example #13
0
def select_all(tokens):
    return common.keyword(tokens, "*")
Example #14
0
def select(tokens):
    return common.keyword(tokens, "select")
Example #15
0
def if_else(tokens):
    return common.keyword(tokens, "else")
Example #16
0
def if_then(tokens):
    return common.keyword(tokens, "then")
Example #17
0
def if_if(tokens):
    """Matches an if-else block."""
    return common.keyword(tokens, "if")
Example #18
0
def select_limit(tokens):
    return common.keyword(tokens, "limit")
Example #19
0
def if_then(tokens):
    return common.keyword(tokens, "then")
Example #20
0
def select_offset(tokens):
    return common.keyword(tokens, "offset")
Example #21
0
def select(tokens):
    return common.keyword(tokens, "select")
Example #22
0
def select_asc(tokens):
    return common.keyword(tokens, "asc")
Example #23
0
def select_all(tokens):
    return common.keyword(tokens, "*")
Example #24
0
def select_desc(tokens):
    return common.keyword(tokens, "desc")
Example #25
0
def select_where(tokens):
    return common.keyword(tokens, "where")
Example #26
0
def let(tokens):
    """Matches a let expression."""
    return common.keyword(tokens, "let")
Example #27
0
def select_offset(tokens):
    return common.keyword(tokens, "offset")
Example #28
0
def let(tokens):
    """Matches a let expression."""
    return common.keyword(tokens, "let")
Example #29
0
def select_desc(tokens):
    return common.keyword(tokens, "desc")
Example #30
0
def let_assign(tokens):
    """Matches a '=' in the let expression."""
    return common.keyword(tokens, "=")