Exemplo n.º 1
0
def decompile_steps():
    tcl = request.json
    proctcl = 'proc p {} {\n' + tcl + '\n}'
    tclpy.eval(proctcl)
    steps, changes = tcldis.decompile_steps(tcldis.getbc(proc_name='p'))
    return json.dumps({'steps': steps, 'changes': changes})
Exemplo n.º 2
0
 def assertDecompileStepStructure(self, tcl):
     proctcl = 'proc p {} {\n' + tcl + '\n}'
     tclpy.eval(proctcl)
     steps, changes = tcldis.decompile_steps(tcldis.getbc(proc_name='p'))
     checkDecompileStepStructure(self, steps, changes)
Exemplo n.º 3
0
def decompile_steps():
    tcl = request.json
    proctcl = 'proc p {} {\n' + tcl + '\n}'
    tclpy.eval(proctcl)
    steps, changes = tcldis.decompile_steps(tcldis.getbc(proc_name='p'))
    return json.dumps({'steps': steps, 'changes': changes})
Exemplo n.º 4
0
 def assertTclEqual(self, tcl):
     proctcl = 'proc p {} {\n' + tcl + '\n}'
     tclpy.eval(proctcl)
     self.assertEqual(tcl, tcldis.decompile(tcldis.getbc(proc_name='p')))