Beispiel #1
0
 def VisitSubOp(self, o, **kwargs):
     new = ast.SubOp(
         lhs=o.lhs,
         rhs=o.rhs,
     )
     return copy_std(
         o,
         new,
     )
Beispiel #2
0
 def VisitSubOp(self, o):
     return ast.SubOp(self.visit(o.lhs), self.visit(o.rhs))
 def VisitSubOp(self, o, **kwargs):
     return ast.SubOp(self.visit(o.lhs), self.visit(o.rhs))
def p_rhs_term_sub(p):
    """rhs_term : rhs_term MINUSMINUS rhs_term"""
    p[0] = ast.SubOp(p[1], p[3])