Ejemplo n.º 1
0
 def un_exp(self, ast):
     if ast.op == "not":
         return pi.Not(ast.e)
Ejemplo n.º 2
0
 def un_exp(self, ast):
     if ast.op == "not":
         return pi.Not(ast.e)
     ### Array Implementation ###
     if ast.op == "\#":
         return pi.ArrayLength(ast.e)
Ejemplo n.º 3
0
 def negation(self, ast):
     return pi.Not(ast.b)
Ejemplo n.º 4
0
 def un_exp(self, ast):
     if ast.op == "not":
         return pi.Not(ast.e)
     if ast.op == "len":
         return pi.ArrSize(ast.e)
Ejemplo n.º 5
0
 def un_exp(self, ast):
     if ast.op == "not":
         return pi.Not(ast.e)
     if ast.op == "::":
         return pi.ArraySize(ast.e)
Ejemplo n.º 6
0
 def un_exp(self, ast):
     if ast.op == "not":
         return pi.Not(ast.e)
     if ast.op == "#":
         return pi.ArrLength(ast.e)