Lines Matching refs:op
32 def __init__(self, slicc, left, op, right):
36 self.op = op
40 return "[InfixExpr: %r %s %r]" % (self.left, self.op, self.right)
50 if self.op in ("==", "!=", ">=", "<=", ">", "<"):
56 self.op, ltype, rtype)
61 if self.op in ("&&", "||"):
64 elif self.op in ("<<", ">>"):
67 elif self.op in ("+", "-", "*", "/"):
77 self.error("No operator matched with {0}!" .format(self.op))
89 format(ltype, rtype, self.op))
93 code("($lcode ${{self.op}} $rcode)")
98 def __init__(self, slicc, op, operand):
101 self.op = op
105 return "[PrefixExpr: %s %r]" % (self.op, self.operand)
113 if self.op in opmap:
114 output = opmap[self.op]
115 type_in_symtab = self.symtab.find(opmap[self.op], Type)
119 self.op, type_in_symtab)
122 self.op)
126 code("(${{self.op}} $opcode)")