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