rocky
d0dc879b37
Note that we can now use xdis a little more
2024-07-13 07:25:36 -04:00
rocky
ddeb5af6d6
compare_chained2 _> compare_chained_right
2023-07-29 12:09:25 -04:00
rocky
843e3585e2
chained-compare1 -> chained-compare-middle
2023-07-29 12:01:14 -04:00
rocky
82963cdf2c
Preserve docstring in closures..
...
This change synchronized from decompyle3
2023-03-24 20:31:49 -04:00
rocky
3bd3029169
Confused == with =
2022-09-29 20:08:07 -04:00
rocky
d0f173a620
Lint from pycharm
2022-09-21 01:53:56 -04:00
rocky
7c3aff19af
"async for"s can has pass blocks
2022-09-21 00:27:40 -04:00
rocky
600688a65d
Sync with decompyle3
2022-09-17 10:54:09 -04:00
rocky
5a4136a7f6
Some limited support for 3.8 "=" specifier
2022-07-06 13:00:52 -04:00
rocky
87fb83de08
Add missing 3.7 "import_from37" template
2022-05-14 02:59:15 -04:00
rocky
f9a1f6fcd9
Sync 3.7 async_forelse with decompyle3
2022-05-05 06:47:49 -04:00
rocky
c88d9de316
Correct 3.7 "impor"t and "from .. import"
2022-04-20 20:03:28 -04:00
rocky
a26ac79d0f
Sync up decompyle3 customize37 somewhat
2022-04-15 08:22:45 -04:00
rocky
165115289a
dict_unmap -> dict_unpack matches Python AST better
2021-12-26 19:03:58 -05:00
rocky
3234673422
mklambda -> lambda_body matches Python AST better
...
Note: we can't use "lambda" since that is a reserved word
2021-12-26 18:48:51 -05:00
rocky
23551ea70f
unmap_dict -> dict_doublestar ...
...
This matches Python's AST (Dict) better. Variations or specializations
of an AST name, e.g. "unmap" should come at the end, not the beginning.
2021-12-23 22:57:15 -05:00
rocky
96b1e435c2
Fixes #360
2021-06-15 22:42:55 -04:00
rocky
b4db22d525
Narrow precedence for call statement
2020-09-03 04:35:59 -04:00
rocky
3e1300eb23
Bugs in nested async for...
...
* Generalize asyc_for rule
Fix bug in picking out comprehension iterator in async for
* fix bug in getting expression in such a comprehension
* Add %[n]{%x} pattern to template_engine()
2020-04-29 10:12:54 -04:00
rocky
badfe5456f
Track "or" grammar changes...
...
Remove re deprecation warning
2020-04-16 15:25:42 -04:00
rocky
5c6365d8a1
Go over "yield" and other precedence
2020-04-09 20:27:07 -04:00
rocky
a616e1e1c7
"withstmt" -> "with" and fix async for
2020-04-01 09:48:34 -04:00
rocky
5355cb5404
async with rules back to 3.5 and ...
...
add precidence on cascaded "await" expressions
2020-02-08 20:31:06 -05:00
rocky
8495d208fb
3.7+ "async with" handling from decompyle3
2020-02-08 19:48:09 -05:00
rocky
278af38df6
conditional -> if_exp ...
...
to match Python IfExp AST
2020-02-07 16:17:47 -05:00
rocky
7fb50918cd
Bug in "async for" indentation
2020-02-06 23:54:03 -05:00
rocky
10695d882e
Fix bug in 3.7 chained comparison semantic action
2020-01-24 06:14:28 -05:00
rocky
d2f59189dd
Add missing code for n_assert_invert
2020-01-21 21:54:09 -05:00
rocky
a532aa5b0e
3.7+ use attribute_w_parens like we do in pre 3.7
2020-01-16 11:43:29 -05:00
rocky
5f230fa177
Add 3.7 "testfalsel" for looping conditions
2020-01-14 18:41:39 -05:00
rocky
e2cbf5f4bd
small tweak to last change
2020-01-14 13:03:24 -05:00
rocky
bb8c5ac5a0
Sync 3.7+ n_call code with decompyle6
2020-01-14 12:45:02 -05:00
rocky
7b76d55e55
Start to fold in 3.7 reduction-rule goodness into 3.6
2020-01-08 19:50:05 -05:00
rocky
716e097654
kwonly args in lambas for 3.3..3.5
2020-01-05 11:17:33 -05:00
rocky
dba95c5200
3.7+ imports yet again
2020-01-05 00:13:53 -05:00
rocky
d5df411c7a
3.7+ multiple imports of dotted path
2020-01-03 23:22:28 -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
732b5165c2
Fix a 3.7+ chained compare bug...
...
others remain though.
2020-01-03 00:55:45 -05:00
rocky
7bd81efe9b
3.7+ "from import" vs "import as" disambiguation
2020-01-02 09:43:37 -05:00
rocky
c42e16fafe
Fix 3.7+ import as
2020-01-01 22:59:07 -05:00
rocky
6de57249ed
Start 3.6+ var type annotations and decompyle3 merge...
...
Although overall an improvement, some new breakage
has occurred and should be fixed.
2020-01-01 01:42:00 -05:00
rocky
566143b515
Python 3.7+ optimized if in comprehension
2019-12-28 18:09:00 -05:00
rocky
b2e1edb434
Fix Python 3.7+ "import as" but keep "import from" working
2019-12-28 11:09:31 -05:00
rocky
179fcafaba
Fix indentation format in "async for"
2019-12-16 13:36:46 -05:00
rocky
0eaeb82d48
Sync a little with decompyle3
2019-12-15 08:07:02 -05:00
rocky
805ec7dbfc
Add "if_not_and" rule similar to "if_not_or" rule.
2019-12-13 05:15:21 -05:00
x0ret
b62752eca1
2 more 3.7 chained comparison rule
2019-05-14 17:51:51 +04:30
x0ret
3d732db3cc
fix chained compare parse error
2019-05-13 19:57:24 +04:30
rocky
8c611476fe
ifexpr -> if_expr (to track better AST camelcase)
2019-05-05 08:20:21 -04:00