rocky
75f3624f31
Merge branch 'master' into python-2.4
2018-04-01 13:48:16 -04:00
rocky
ab1dba1536
Handle 3.5+ BUILD_MAP_UNPACK used in dictionaries
...
A number of weaknesses have been uncovered though
2018-04-01 12:56:58 -04:00
rocky
120412f5a8
Add Python 3.6 setcomp and another call bug
2018-04-01 07:09:24 -04:00
rocky
1d5f4b0a05
Some 3.x grammar reduction...
...
Add 3.2 to grammar testing
2018-03-28 21:19:27 -04:00
rocky
9d807501af
Grammar reduction for 2.6/2.7,3.x
2018-03-27 17:02:03 -04:00
rocky
f5a10ed5d0
Merge branch 'master' into python-2.4
2018-03-26 19:41:20 -04:00
rocky
3d218c84b0
LOAD assert needs to be on 3.x...
...
Expand testing
2018-03-26 18:11:57 -04:00
rocky
661bfd4e52
Merge branch 'master' into python-2.4
2018-03-26 08:04:32 -04:00
rocky
626f690a5a
More grammar specialization by instruction
2018-03-25 20:38:21 -04:00
rocky
a18b4b1505
Merge branch 'master' into python-2.4
2018-03-25 17:37:04 -04:00
rocky
7fb94176b1
Less ambigouus 2.x grammar rule for BUILD_MAP
2018-03-25 12:09:42 -04:00
rocky
b2c832e19f
Merge branch 'master' into python-2.4
2018-03-24 10:55:43 -04:00
rocky
0d327ab0ce
Fix bug introduced in last commit
2018-03-24 06:29:35 -04:00
rocky
35a60e0274
Fix parser slowness in decompiling 3.x locale.py..
...
And remove grammar inefficiency in adding extraneous kwargs in <= 3.2
kwargs was nullable so it might not have been wasn't wrong, just inefficient.
2018-03-23 11:59:04 -04:00
rocky
df55ce3212
Isolate some 3.x dictcomp grammar rules
2018-03-22 13:34:39 -04:00
rocky
ef03d78c4d
Merge branch 'master' into python-2.4
2018-03-21 19:57:59 -04:00
rocky
90ac8a463d
Adjust 3.x while1else reduction check
2018-03-20 11:33:10 -04:00
rocky
88ef4baca8
Fix a 3.6 try/except-as bug
2018-03-19 11:10:37 -04:00
rocky
6ab711baab
More 3.6 lambda handling
2018-03-19 09:36:02 -04:00
rocky
9e05750537
Another 3.6 lambda parsing bug
2018-03-19 09:09:59 -04:00
rocky
94038151f4
Add Python 3.6 mklambda rule
2018-03-18 23:37:32 -04:00
rocky
1da2118e13
Merge branch 'master' into python-2.4
2018-03-05 12:26:45 -05:00
rocky
61534ceed5
Need to back off set_comp change a little...
...
There was set_comp already. So what had been setcomp_func is now
merely set_comp_func rather than set_comp. Small improvement but
in the right direction, still
2018-03-05 11:41:21 -05:00
rocky
9f66694056
dictcomp_func -> dict_comp_func...
...
to match AST better. Also adds a correction in last commit,
including set_comp -> set_comp_expr where apprpriate
Note: can't use dict_comp as that was already used.
But dict_comp_func is matches AST better than dictcomp_func
2018-03-05 11:12:15 -05:00
rocky
2bdfd76635
setcomp_func -> set_comp ...
...
to match AST name more closely
2018-03-05 10:20:14 -05:00
rocky
67e8f5d1a7
Merge branch 'master' into python-2.4
2018-03-05 07:55:17 -05:00
rocky
02b1554da3
grammar and semantics for dict comp with "if"
...
Fixes #162
2018-03-05 07:52:02 -05:00
rocky
fb333f1505
Merge branch 'master' into python-2.4
2018-03-01 17:22:45 -05:00
rocky
1fe432585e
Keep pre-3.6 listcomp code patterns in 3.6
2018-02-28 16:22:33 -05:00
rocky
b128e4fde6
Fix 3.6+ nested list comprehensions
...
Modified "load_closure" rule and
changed semantic actions since LOAD_CLOSUREs are stored
inside a MAKE_TUPLE.
FIXME: Not sure if we have additional "if" clauses correct. Test and correct
2018-02-28 11:13:52 -05:00
rocky
fee6114d74
Merge branch 'master' into python-2.4
2018-02-22 19:15:24 -05:00
rocky
a2b6ebc669
grammar tree -> parse tree
2018-02-22 14:34:42 -05:00
rocky
09efb24a3e
Start distinguishing AST from grammar tree
2018-02-22 11:17:09 -05:00
rocky
2e44ac25a1
Merge branch 'master' into python-2.4
2018-02-19 17:07:11 -05:00
rocky
deb9903a97
DRY and limit STORE_LOCALS
2018-02-19 08:03:09 -05:00
rocky
e92c2503d1
Merge branch 'master' into python-2.4
2018-02-15 07:31:11 -05:00
rocky
730b0549d5
Handle 3.6+ FUNCTION_EX a little more generally
2018-02-12 04:26:52 -05:00
rocky
e431e49d77
Isolate Python 3.5 custom parse rules...
...
are isolated into parse35.py now and removed from parse3.py
This causes some code duplicated from parse3.py into parse3{5,6}.py
We will deal with that later.
2018-02-12 03:59:44 -05:00
rocky
230a38d537
Fix Python 3.5 CALL_FUNCTION_VAR handling
2018-02-12 03:07:03 -05:00
rocky
e44ccd5787
Merge branch 'master' into python-2.4
2018-01-12 20:57:10 -05:00
rocky
ab4daf2879
Merge branch 'master' of github.com:rocky/python-uncompyle6
2018-01-12 20:14:15 -05:00
rocky
db9eaa7503
3.x while1else checking
2018-01-12 20:14:09 -05:00
rocky
7efbd55b69
Merge branch 'master' into python-2.4
2018-01-11 21:55:43 -05:00
rocky
c6e20e4444
Fix whileelse bug
2018-01-11 21:52:33 -05:00
rocky
7883e00b44
Correct 3.6 FUNCTION_EX handling, somewhat
...
Some Python 2.4 compatibility snuck in but I suppose that is not so bad
2018-01-08 23:20:22 -05:00
rocky
772d36015c
2.4-compatiblity for next iteration
2018-01-08 22:18:59 -05:00
rocky
f381211291
Merge branch 'master' into python-2.4
2018-01-08 22:13:05 -05:00
rocky
0692727605
Stronger while 1 testing...
...
Make instructions available in reduce tests.
Back off of a while test that was semantically different.
2018-01-08 21:54:28 -05:00
rocky
fd95839701
Merge branch 'master' into python-2.4
2017-12-15 08:26:03 -05:00
rocky
a3e61a710f
Towards handling CALL_FUNCTION_EX_KW...
...
more work is needed though
2017-12-14 23:12:37 -05:00