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