Commit Graph

234 Commits

Author SHA1 Message Date
Darryl Pogue
0ab2d702fa Don't print empty else blocks. 2011-01-04 15:40:00 -08:00
Darryl Pogue
e843ee8a86 Clean up loops a bit 2011-01-04 15:25:25 -08:00
Darryl Pogue
a6eeec9b9c Fix for older style for loops 2011-01-04 14:41:33 -08:00
Darryl Pogue
af967980bc Improvements to for loops 2011-01-04 14:39:19 -08:00
Darryl Pogue
3be27b5c96 Add slices and prepare for more try/except stuff. 2011-01-04 13:52:15 -08:00
Darryl Pogue
9924eb9d0d Work on try/except/finally statements.
The last time I tried this the monkey didn't survive. Let's hope it works better this time.
2011-01-02 05:13:46 -08:00
Darryl Pogue
1c441fa0ee Improve condition statement (incredibly common) edgecases.
Need to figure out how to pop the stack history for OR'd if statements.
We also have problems with return inside if statements.
For loops look like they work, but I don't trust them >.>
2011-01-02 04:24:32 -08:00
Darryl Pogue
eebd941e61 More clean ups for if statements. 2011-01-02 02:51:23 -08:00
Darryl Pogue
cc8b27d8cf Crash Less [tm] 2011-01-01 20:41:17 -08:00
Darryl Pogue
f1205548e5 Add raise, break, continue, and a hacky attempt at for loops.
for loops currently generate a core dump.
2011-01-01 02:31:31 -08:00
Darryl Pogue
7e4de4e612 Handle Python 2.7/3.x if statements. 2010-12-31 22:40:13 -08:00
Darryl Pogue
5392ffc3e7 Fix for nested if/elif/else statements 2010-12-31 21:45:06 -08:00
Darryl Pogue
132d62baf6 Added basic while loop support and a test system. 2010-12-31 02:42:58 -08:00
Darryl Pogue
b25baeaf4f Try to clean up the FastStack issues. 2010-12-30 16:48:59 -08:00
Darryl Pogue
bc0b93c632 Clean up the ASTree code a bit 2010-12-24 23:34:05 -08:00
Darryl Pogue
345544d7da if/elif/else statements using ASTBlocks 2010-12-24 20:25:55 -08:00
Darryl Pogue
427e05be12 Messy start to try/except/finally blocks 2010-12-21 23:41:56 -08:00
Darryl Pogue
2c39057f1b Fix a typo 2010-12-19 00:12:16 -08:00
Darryl Pogue
c6962d9f48 Fixes for Python 2.6 2010-12-18 22:18:32 -08:00
Darryl Pogue
90bfaad7d0 Fixed imports, and restructured ifs to be "code blocks" 2010-09-07 21:32:34 -07:00
Darryl Pogue
814475960e Merge with Zrax's fancy magic mapping stuff :D 2010-09-04 23:53:38 -07:00
Darryl Pogue
6fb01bbbf6 Much better handling of if/else statements. 2010-09-04 23:51:22 -07:00
Michael Hansen
1161c8de26 Use opcode mappings to keep things a bit cleaner and hopefully more sane 2010-09-04 01:20:41 -07:00
Michael Hansen
ea615df200 Remove subscript binary op fragments since this had a dedicated node type 2010-09-03 21:56:29 -07:00
Michael Hansen
7ffa2562c3 Merge uncommitted changes from old SVN copy 2010-09-03 21:50:35 -07:00
Darryl Pogue
96235c9290 Hacky attempts at if statements. If someone wants to clean this up and make it work, they have eternal gratitude. 2010-08-31 23:20:40 -07:00
Darryl Pogue
49c15b324c Updates to make progress. Progress is good. 2010-08-31 23:17:38 -07:00
Michael Hansen
7bb356d00a Improved output formatting, and added more instruction support 2009-08-03 23:13:50 +00:00
Michael Hansen
17f962e9f1 Various formatting fixes and more code support 2009-07-27 08:42:59 +00:00
Michael Hansen
b3e5024efd More common functionality 2009-07-27 03:23:56 +00:00
Michael Hansen
835b391979 Decompyles classes and imports 2009-07-27 03:00:55 +00:00
Michael Hansen
ef30d16b58 Fixed crashes for files with certain unsupported opcodes 2009-07-27 00:30:31 +00:00
Michael Hansen
03042b7e23 Decoding simple files with functions and assignments is now possible 2009-07-27 00:23:49 +00:00
Michael Hansen
b89ae8b2ac A little bit of code support now 2009-07-26 10:07:13 +00:00