Beispiel #1
0
 def blk(self, ast):
     if ast.ds:
         if ast.cs:
             return self.__blk(ast.ds, ast.cs)
         else:
             return self.__blk(ast.ds, pi.Nop())
     else:
         if ast.cs:
             return pi.Blk(ast.cs)
         else:
             return pi.Blk(pi.Nop())
Beispiel #2
0
 def cond(self, ast):
     if ast.b2:
         return pi.Cond(ast.t, ast.b1, ast.b2)
     else:
         return pi.Cond(ast.t, ast.b1, pi.Nop())
Beispiel #3
0
 def skip(self, ast):
     return pi.Nop()
Beispiel #4
0
 def nop(self, ast):
     return pi.Nop()