示例#1
0
文件: parser.py 项目: rlugojr/dotty
    def _infix_of_min_precedence(self, tokens, precedence):
        match = grammar.infix(tokens, self.operators)
        if not match:
            return

        if match.operator.precedence < precedence:
            return

        return match
示例#2
0
文件: parser.py 项目: Onager/dotty
    def _infix_of_min_precedence(self, tokens, precedence):
        match = grammar.infix(tokens, self.operators)
        if not match:
            return

        if match.operator.precedence < precedence:
            return

        return match
示例#3
0
文件: grammar.py 项目: rlugojr/dotty
def infix(tokens):
    return common.infix(tokens, OPERATORS)
示例#4
0
文件: grammar.py 项目: aertoria/dotty
def infix(tokens):
    return common.infix(tokens, OPERATORS)