Example #1
0
 def VisitDivOp(self, o, **kwargs):
     new = ast.DivOp(
         lhs=o.lhs,
         rhs=o.rhs,
     )
     return copy_std(
         o,
         new,
     )
Example #2
0
 def VisitDivOp(self, o):
     return ast.DivOp(self.visit(o.lhs), self.visit(o.rhs))
 def VisitDivOp(self, o, **kwargs):
     return ast.DivOp(self.visit(o.lhs), self.visit(o.rhs))
Example #4
0
def p_rhs_term_div(p):
    """rhs_term : rhs_term SLASH rhs_term"""
    p[0] = ast.DivOp(p[1], p[3])