Commit Graph

75 Commits

Author SHA1 Message Date
Darryl Pogue
f0d47dc959 Fix for lingering try blocks. 2011-10-10 01:41:57 -07:00
Darryl Pogue
4c4a24173f Fix a block bug with deeply nested continues. 2011-10-10 01:06:18 -07:00
Michael Hansen
c6d98d6e40 Preserve Dox's 80 columns while using boolean ops instead of binary ops 2011-10-10 00:15:25 -07:00
Darryl Pogue
0c1d04fc8f Declare globals used in a function. Fixes #8. 2011-10-09 23:42:34 -07:00
Darryl Pogue
7701f221e8 Function varargs and keywordargs. 2011-10-09 22:38:18 -07:00
Darryl Pogue
e372deb43b Fix while loops with complex conditionals. 2011-10-09 21:42:18 -07:00
Darryl Pogue
ea0ebf8b96 Fix and/or combiners for if statements. 2011-10-09 15:43:24 -07:00
Darryl Pogue
84b9471043 Fix for combining if statements.
Although the combination operator is probably broken...
2011-10-09 15:43:24 -07:00
Darryl Pogue
2df831176e Fixes for obscure loop conditions. 2011-10-09 15:43:24 -07:00
Darryl Pogue
ff8bb4844b Fix except/else and generic except statements. 2011-10-02 18:58:38 -07:00
Michael Hansen
18a5f1082e Clean up use of inline loop/conditional bodies 2011-10-02 10:40:05 -07:00
Darryl Pogue
db0c4c724c Fix some extraneous junk output. 2011-10-01 23:00:12 -07:00
Darryl Pogue
30967b4d32 This should fix try/finally blocks. 2011-10-01 21:56:48 -07:00
Darryl Pogue
8cbff72f08 Handle/ignore the py3k POP_EXCEPT op. 2011-10-01 21:50:24 -07:00
Darryl Pogue
12c019e5e5 Print pass in empty blocks. 2011-10-01 21:45:20 -07:00
Darryl Pogue
51a85fdfb1 Fix assert statements. 2011-10-01 21:44:57 -07:00
Darryl Pogue
ffc06bace5 Fix an issue with try blocks appearing empty. 2011-10-01 21:17:22 -07:00
Darryl Pogue
fbbb3d63c6 Handling for except blocks without argument.
It would seem that else blocks after an except are still a source of
problems, as well as assert statements (but that's unrelated to the
try/except work).
2011-10-01 21:05:33 -07:00
Darryl Pogue
70160f8a28 Basic handling of try/except/finally blocks. 2011-10-01 19:40:34 -07:00
Darryl Pogue
ac4d254a73 Remove old attempts at try handling. 2011-10-01 19:09:59 -07:00
Darryl Pogue
5b769fd746 Fix assigning None in 2.5 2011-09-24 00:26:05 -07:00
Darryl Pogue
4fc7096b92 Fix for using tuples as for iterators. 2011-09-24 00:26:05 -07:00
Darryl Pogue
1e249b42fd Fix importing modules with aliases.
aka - from blah import foo as bar
2011-09-20 22:36:15 -07:00
Darryl Pogue
140e7410da Added DUP_TOP_TWO and DUP_TOPX. 2011-09-19 22:32:35 -07:00
Michael Hansen
fb785b5dc8 Slightly more consistent formatting 2011-09-18 23:55:27 -07:00
Darryl Pogue
fca95bc8f6 Tidy up some print stuff. 2011-09-18 22:32:00 -07:00
Darryl Pogue
4ebf1054e0 Fix break and continue statements. 2011-09-18 22:31:43 -07:00
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
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
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
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
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
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