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