Darryl Pogue
51ca98d766
Support for the yield statement.
2011-09-18 22:31:09 -07:00
Darryl Pogue
dfd8a620f2
Fix a problem with for loop iterator names.
2011-09-18 22:30:27 -07:00
Darryl Pogue
ed1fefc205
Resize the stack if necessary when pushing.
...
This fixes a bunch of valgrind warnings and crashes.
2011-09-18 21:02:10 -07:00
Darryl Pogue
b0769cf432
Added all the in-place operators.
2011-09-18 21:01:43 -07:00
Darryl Pogue
84b8cba005
Correct output for in-place operators.
2011-09-18 12:06:29 -07:00
Michael Hansen
f907dc76ad
Merge pull request #1 from dpogue/master
...
Improved tests and support PRINT_*_TO
2011-09-18 00:51:59 -07:00
Darryl Pogue
fd34165a88
Generate empty print statements.
2011-09-18 00:49:29 -07:00
Darryl Pogue
521490c819
Support for printing to a stream (PRINT_*_TO).
2011-09-18 00:35:28 -07:00
Darryl Pogue
81fe5d56dd
Added a bunch of tests from decompyle.
...
These test various features for 1.5 and 2.2. We should probably create
tests for 2.7 and 3.x.
2011-09-17 21:51:20 -07:00
Michael Hansen
e58fad7b6e
Move .hgignore to .gitignore
2011-08-09 19:44:24 -07:00
Darryl Pogue
13a7c0d6c8
Added exec statement
2011-01-10 13:15:56 -08:00
Darryl Pogue
3b4320ded9
Clean up a few things
2011-01-10 12:54:17 -08:00
Darryl Pogue
43640fcbd6
Added sequence unpacking
2011-01-08 16:19:38 -08:00
Michael Hansen
be6ea32619
Add Python 3.2 support
2011-01-06 17:15:48 -08:00
Darryl Pogue
c0d7bc9515
Delete slices and magic build slice stuff
2011-01-06 10:56:10 -08:00
Darryl Pogue
4750015423
Support storing slices.
2011-01-05 22:15:22 -08:00
Darryl Pogue
91ba5e9e53
Add deleting subscr support.
2011-01-05 22:14:24 -08:00
Darryl Pogue
703fbdb127
Fixes for nested if/elif statements
2011-01-05 13:05:01 -08:00
Darryl Pogue
df491b0108
Added support for deletes (del statement)
2011-01-05 10:52:57 -08:00
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
43b1ffae3c
Update .hgignore
2011-01-04 13:57:01 -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
67a309e3dd
Tests should fail when there are unimplemented opcodes or warnings.
2011-01-02 03:01:08 -08:00
Darryl Pogue
eebd941e61
More clean ups for if statements.
2011-01-02 02:51:23 -08:00
Darryl Pogue
ac529407fc
Add a test file from decompyle's test suite
2011-01-01 20:41:53 -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
5e98435f83
Two more test files
2010-12-31 22:06:35 -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
f129c2cc63
Thanks to Yootay and branan for figuring out why FastStack crashed.
2010-12-30 22:35:16 -08:00
Darryl Pogue
28b5d5d79a
Added test file
2010-12-30 19:30:37 -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
6d0fbcf522
Add basic node type for blocks
2010-12-20 22:58:44 -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
Michael Hansen
3f8311122d
Update Windows version to include bytecode maps
2010-11-07 15:39:36 -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