rocky
195075ac01
3.6 while-if-while bug
2018-02-26 01:27:00 -05:00
rocky
df7cfa2d20
Add another 3.6 test for EXTENDED_ARGS
2018-02-25 21:46:42 -05:00
rocky
ee89b5decd
Fix 2.4/2.5 try/else detection...
...
in a hacky way
2018-02-21 04:17:08 -05:00
rocky
f4b7e54313
Refine 2.7 dead code test ..
...
in a hacky way. Will probalby have to expand this in the future or
better do dead code analysis
2018-02-19 07:06:04 -05:00
rocky
08c7966ef9
2.7 for .. try-else bug
2018-02-18 09:13:22 -05:00
rocky
230a38d537
Fix Python 3.5 CALL_FUNCTION_VAR handling
2018-02-12 03:07:03 -05:00
rocky
bb45be2dc7
Start to handle 3.5+ BUILD_LIST_UNPACK in call ..
...
to implement multple star arguments
2018-02-09 03:41:13 -05:00
rocky
4cbba3d46e
2.7 control flow futzing.
...
Some overall cleanup. But again we need to attack all of this more head on.
Closes Issue #149
2018-02-04 14:20:11 -05:00
rocky
106a325ef1
Fix Python 2.7 try: try: else: bug
2018-01-29 08:47:53 -05:00
rocky
5039a71846
fixes 151
2018-01-29 01:05:22 -05:00
rocky
5edcc7c2eb
Remove restriction that there are no more statements after a "return" statement
2018-01-28 00:13:09 -05:00
rocky
71e7120501
JUMP_BACK and CONTINUE need to be treated more similar...
...
fixes 148
2018-01-22 23:08:20 -05:00
rocky
8194595ec9
Handle 3.6+ EXTENDED_ARGs for POP_JUMP_IF... instructions
2018-01-19 16:56:21 -05:00
rocky
4dbcf0400d
Correct 3.6+ calls with kwargs
2018-01-19 06:38:19 -05:00
rocky
2126e4cf32
Fix bug in 3.5+ async stmt ..
...
and in verification status message
2018-01-19 03:15:08 -05:00
rocky
185ec4e306
Fix 2.6 IF/THEN misclassification..
...
with an exception condition
2018-01-13 00:58:16 -05:00
rocky
70ddd71c0e
Test for 2.7 loop try else bug
2018-01-12 22:25:42 -05:00
rocky
c6e20e4444
Fix whileelse bug
2018-01-11 21:52:33 -05:00
rocky
9e92f65a27
Correct Python 2.5- decorator parsing
2018-01-10 11:08:05 -05:00
rocky
abcb769fdf
Fix 2.6- parsing of "for .. try/else" ...
...
with "continue" inside
2018-01-09 08:36:21 -05:00
rocky
892be78927
correct 3.5 CALL_FUNCTION_VAR handling
...
Sigh, 3.6 changes this so this fix is just for this version
2018-01-08 12:24:00 -05:00
rocky
f59174575e
Fix 3.5+ bug in if's with pass bodies
...
Fixes #104 in a somewhat hacky way.
2018-01-08 10:21:53 -05:00
rocky
fbda3ca695
try/else on 2.6 fixup
2018-01-07 21:24:35 -05:00
rocky
78d5d281a8
Handle 2.4- try/finally properly
2017-12-14 19:26:27 -05:00
rocky
acc3e441ac
Fix "or" bug in 2.6- seen via chained comparisons
2017-12-13 07:27:10 -05:00
rocky
733e0ebf9d
Fix 2.6- chained compare in lambda
2017-12-12 14:29:47 -05:00
rocky
832734ccb4
Fix 2.7 lambda with chained compare...
...
More work needs to be done for 2.6-
2017-12-12 13:13:30 -05:00
rocky
88fbb691d8
Fix 3.1 and 3.2 named and kwargs parsing..
...
Improve 3.4 coverage and note a 3.5 while bug
2017-12-07 16:47:56 -05:00
rocky
41bfa3fc01
Back off 3.5 control flow for now
2017-12-07 15:25:32 -05:00
rocky
b6413b6e6e
Skirt around control-flow problems...
...
Tag some of the weaknesses if we can't address them now
2017-12-07 08:55:45 -05:00
rocky
e064791870
Fix 10_del.py syntax
2017-12-05 22:50:21 -05:00
rocky
2599b94786
Start to handle FUTURE_UNICODE_LITERALS flag
2017-12-05 13:28:26 -05:00
rocky
bbaa3e6602
Fix bug in single param **arg
2017-12-05 07:50:22 -05:00
rocky
c953701623
Slightly better 3.x list comprehension handling
2017-12-04 14:15:06 -05:00
rocky
6ecaa16cd5
More weirdness testing
2017-12-03 20:29:55 -05:00
rocky
c791a45aae
Handle a wierd 2.6 conditional false expression...
...
from 2.6. test_grammar
2017-12-03 19:56:14 -05:00
rocky
0df29f344e
Fix some really weird Python 2.6 constructs
...
From 2.6's test grammar.
2017-12-03 18:41:31 -05:00
rocky
5fe8303184
Two bugs and a refactor ..
...
1. parse2.py: try except in a loop with a (virtual) continue
treat CONTINUE like JUMP_ABSOLUTE which it is
2. in taking methods off of constants, a parenthesis needs to be added
Some refactoring of global code done
2017-12-03 10:46:22 -05:00
rocky
5b916567fe
NT try-middle -> except-handler to match AST
2017-12-03 06:30:33 -05:00
rocky
260bfd176e
Fix bug in 2.6- except_cond3
2017-12-03 06:16:29 -05:00
rocky
cfce914889
One more _come_from -> _come_froms
2017-12-03 05:22:12 -05:00
rocky
eafb32b9a0
NT trystmt -> try_except to match AST
2017-12-02 22:20:45 -05:00
rocky
de594ce7f2
Remove 3-arg raise in 3.x and..
...
add tests in 2.x
2017-12-02 22:07:44 -05:00
rocky
e172a8f3c0
Fix docstring bug..
...
small sync with python 2.4 branch
2017-12-02 21:11:19 -05:00
rocky
5ae32de709
Add global statements even for read of globals
2017-12-02 19:13:11 -05:00
rocky
cda15026e5
A couple more tests
2017-12-02 12:17:24 -05:00
rocky
5919be1451
Fix chained compares with -'s
2017-12-02 12:06:01 -05:00
rocky
a7005f6a77
2.7 exec stmt grammar rule isolation/reduction
2017-12-02 09:23:18 -05:00
rocky
28e573b73c
Improve 3.x forelselast coverage
2017-12-02 08:53:11 -05:00
rocky
03a5ad3d94
NT funcdef -> function_def to match AST
2017-12-01 21:36:23 -05:00