Decoding simple files with functions and assignments is now possible

This commit is contained in:
Michael Hansen
2009-07-27 00:23:49 +00:00
parent b89ae8b2ac
commit 03042b7e23
12 changed files with 330 additions and 180 deletions

View File

@@ -4,16 +4,8 @@
#include "ASTNode.h"
PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod);
void print_src(PycRef<ASTNode> node, PycModule* mod, int indent = 0);
class ASTree {
public:
void load(PycModule* mod)
{ m_root = BuildFromCode(mod->code(), mod); }
void printSource(PycModule* mod) const;
private:
PycRef<ASTNode> m_root;
};
void decompyle(PycRef<PycCode> code, PycModule* mod, int indent = 0);
#endif