Esempio 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,
     )
Esempio 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),
     )
Esempio 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])
Esempio 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])