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

@@ -9,13 +9,10 @@ int main(int argc, char* argv[])
PycModule mod;
mod.loadFromFile(argv[1]);
printf("# Source Generated with Decompyle++ pycdc\n");
printf("# Source Generated with Decompyle++\n");
printf("# File: %s (Python %d.%d%s)\n", argv[1], mod.majorVer(), mod.minorVer(),
(mod.majorVer() < 3 && mod.isUnicode()) ? " Unicode" : "");
ASTree source;
source.load(&mod);
source.printSource(&mod);
decompyle(mod.code(), &mod);
return 0;
}