Ejemplo n.º 1
0
 def VisitInEquality(self, o, **kwargs):
     new = ast.InEquality(less_than=o.less_than,
                          greater_than=o.greater_than)
     return copy_std(
         o,
         new,
     )
Ejemplo n.º 2
0
 def VisitInEquality(self, o, **kwargs):
     return ast.InEquality(
         less_than=self.visit(o.less_than, **kwargs),
         greater_than=self.visit(o.greater_than, **kwargs),
     )
Ejemplo n.º 3
0
def p_bool_term_b(p):
    """bool_term : rhs_term GREATERTHAN rhs_term"""
    p[0] = ast.InEquality(less_than=p[3], greater_than=p[1])
Ejemplo n.º 4
0
def p_bool_term_a(p):
    """bool_term : rhs_term LESSTHAN rhs_term"""
    p[0] = ast.InEquality(less_than=p[1], greater_than=p[3])