rocky
2216eb7b01
Merge branch 'master' into python-2.4
2020-02-01 22:29:10 -05:00
rocky
de1e7d423c
A more correct offset2inst_index update.
2020-02-01 21:02:45 -05:00
rocky
7c012ebdfc
Remove duplicate stmt
2020-01-31 15:50:46 -05:00
rocky
f27b72ab05
Work around 2.7 phony come-froms in ifelsesmt
2020-01-31 15:49:29 -05:00
rocky
31468a2328
Merge branch 'master' into python-2.4
2020-01-29 15:39:46 -05:00
rocky
fdf4496a2d
Track grammar "stmt" simplifications class ...
...
* NAME_MODULE constant
* QUAL_NAME constant
2020-01-29 15:37:58 -05:00
rocky
e30051b460
Merge branch 'master' into python-2.4
2020-01-26 12:00:11 -05:00
rocky
33918bd9d2
More 3.x "if" checking. Abbreviate stmts->sstmt
2020-01-26 02:58:33 -05:00
rocky
eeb48818f3
Largish rework: scan while1stmt for jump out ..
...
to disambiguate.
For this, we use the self.opc JUMP_OPS sets.
For this, we neeed to store opc in the parse object.
DRY uses of "last = min(last, len(tokens))
2020-01-23 13:02:29 -05:00
rocky
2c608c7909
Merge branch 'master' into python-2.4
2020-01-21 06:50:49 -05:00
rocky
f4e6382cc1
Specialize "classdef" nonterminal for 3.6+
2020-01-21 04:56:11 -05:00
rocky
6d368d2b30
parens around consts when taking attr again
2020-01-16 22:15:28 -05:00
rocky
5cdf057a47
Correct handling "if" in dictcomp in semantic actions for 3.x
2020-01-15 02:36:19 -05:00
rocky
a918055a31
3.6+ nested format strings again
2020-01-13 21:25:20 -05:00
rocky
4b46a8ffdf
Small fixes
2020-01-13 11:41:53 -05:00
rocky
74961caed1
Merge branch 'master' into python-2.4
2020-01-13 11:25:59 -05:00
rocky
de282af05d
Fix some fstring formats bugs...
...
* Need parens around a lambda in an format string.
* handle format string specifier + width
Note: other format-string bugs remain.
2020-01-13 06:40:18 -05:00
rocky
7adfc9c2dc
Merge branch 'master' into python-2.4
2020-01-12 10:23:52 -05:00
rocky
a98bc444f7
Remove long suffix "L" on ints in bytecode for > 3.0
2020-01-08 11:54:45 -05:00
rocky
b842189d8a
Merge branch 'master' into python-2.4
2020-01-05 18:06:57 -05:00
rocky
dba95c5200
3.7+ imports yet again
2020-01-05 00:13:53 -05:00
rocky
077f192711
Improve 3.7+ dotted imports
2020-01-03 21:22:55 -05:00
rocky
825add1af7
3.7+ "if not" in list comprehension and other bug fixes
2020-01-03 09:01:48 -05:00
rocky
c42e16fafe
Fix 3.7+ import as
2020-01-01 22:59:07 -05:00
rocky
566143b515
Python 3.7+ optimized if in comprehension
2019-12-28 18:09:00 -05:00
rocky
37301ab49e
Was dropping docstrings! Add in decompyle make_function36
2019-12-27 11:41:03 -05:00
rocky
97e3a7eb02
Split out make_function.py into v2 and v3 versions
...
A custom 3.3 make_function will be coming soon.
2019-12-27 03:32:15 -05:00
rocky
a3932c7aec
Merge branch 'master' into python-2.4
2019-12-23 11:11:00 -05:00
rocky
bffbd0b352
3.6+ lambda params; add semantic rule customizing for lambdas
2019-12-23 07:19:40 -05:00
rocky
28d9e66a53
Redo the way we handle complex literals and 3.7+ bug fixes...
...
In 3.7+ remove assert_expr* parser rules
Fix "call" precidence in 3.7+ for it children
2019-12-19 06:40:13 -05:00
rocky
c683f3a88d
Merge branch 'master' into python-2.4
2019-12-17 18:28:22 -05:00
rocky
8470bded59
Bugs found in test_complex.py
...
list comprehensions from 3.x closures didn't handle nested for's
before 3.6.
Handle nanj and infj.
2019-12-17 18:27:43 -05:00
rocky
a1d0ee9694
Merge branch 'master' into python-2.4
2019-12-16 13:37:43 -05:00
rocky
d39169dbda
Add 3.7 async listcomp
2019-12-16 00:14:16 -05:00
rocky
bee7bea330
Merge branch 'master' into python-2.4
2019-12-15 21:19:08 -05:00
rocky
996719688a
Merge branch 'master' of github.com:rocky/python-uncompyle6
2019-12-15 21:18:44 -05:00
rocky
af9f6b05fa
Add 3.7 "async for" in generator
2019-12-15 21:18:37 -05:00
rocky
93b31a2fa4
Merge branch 'master' into python-2.4
2019-12-15 10:51:34 -05:00
rocky
e93b70bcce
Fix Python 3.x pringing superclasses...
...
class Description: not class Description("Description").
Introduced in not catching LOAD_CONST->LOAD_STR change
2019-12-15 10:49:24 -05:00
rocky
bc21e3163f
Merge branch 'master' into python-2.4
2019-12-14 11:03:51 -05:00
rocky
cc55fa1de1
binary_expr -> bin_op to match Python AST
...
I know binary_expr is more natural, but as with things Python we
sometimes sacrifice elegance and clarity for Python Fascism.
2019-12-11 13:35:21 -05:00
rocky
9bde5c6cac
Merge branch 'master' into python-2.4
2019-12-09 03:29:55 -05:00
rocky
c6ddefcef5
Merging in recent 3.7 and 3.8 improvements from decompyle6
...
This rebases 3.7, 3.8 ...decompilation off of 3.7ish rather than a 3.4
base.
Add more 3.7 and 3.8 tests
2019-12-08 17:54:59 -05:00
rocky
495a969ccf
Merge branch 'master' into python-2.4
2019-11-18 18:15:51 -05:00
rocky
6659fffc0d
Two Bugs ...
...
2.7: more stringent comparison and comp_if testing
2.6-2.7: fix botched dict constant translation
2019-11-18 06:49:36 -05:00
rocky
5b0f772dc7
Merge branch 'master' into python-2.4
2019-11-10 12:16:04 -05:00
rocky
2da5a5649f
Python 3.5 tolerance
2019-11-10 12:04:21 -05:00
rocky
0a5fcc51d8
Pypy 3.6 fixes and tests
2019-10-29 11:43:09 -04:00
rocky
d41ef3e5dc
Pypy 3.6 tolerance
2019-10-28 14:46:45 -04:00
rocky
ebb0342b38
WIP pypy3.6 handling
2019-10-28 13:20:51 -04:00