Пример #1
0
 def un_exp(self, ast):
     if ast.op == "not":
         return pi.Not(ast.e)
Пример #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)
Пример #3
0
 def negation(self, ast):
     return pi.Not(ast.b)
Пример #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)
Пример #5
0
 def un_exp(self, ast):
     if ast.op == "not":
         return pi.Not(ast.e)
     if ast.op == "::":
         return pi.ArraySize(ast.e)
Пример #6
0
 def un_exp(self, ast):
     if ast.op == "not":
         return pi.Not(ast.e)
     if ast.op == "#":
         return pi.ArrLength(ast.e)