rocky
7fb50918cd
Bug in "async for" indentation
2020-02-06 23:54:03 -05:00
rocky
6525ade805
Comment tweaks
2020-02-06 20:37:40 -05:00
rocky
73951840b6
Correct last commit
2020-02-06 20:19:29 -05:00
rocky
3438e76865
"return locals()" change to track grammar change
2020-02-06 20:08:00 -05:00
rocky
a99d8da0b4
Fix Recent CI bug
2020-02-06 05:10:57 -05:00
rocky
73e6409594
Fix recent CI bug
2020-02-06 05:09:17 -05:00
rocky
e41cd9be84
hide __qualname__ and name modules again...
...
due to recent grammar change
2020-02-06 03:19:56 -05:00
rocky
9166fb54a1
Adjust a couple of "assert"s
2020-02-04 22:06:48 -05:00
rocky
68c9de60a5
Adjust assert transform for new "if_and" rule
2020-02-04 21:28:08 -05:00
rocky
6f4ec21ae2
__modname__ and __qualname__ detection...
...
since grammar has simplified.
May still need work for Python < 3.0
2020-02-02 19:09:50 -05:00
rocky
9aae8f85c7
Bug introduced by last commit
2020-02-02 13:11:03 -05:00
rocky
04f8619cf1
Better docstring recognition
2020-02-02 13:02:37 -05:00
rocky
6fff0fc5a2
More assert transform opportunities
2020-02-02 06:46:48 -05:00
rocky
6e5666c001
Merge branch 'master' of github.com:rocky/python-uncompyle6
2020-02-02 05:37:37 -05:00
rocky
38e2b8a10b
Go over docstring handling
2020-02-02 05:37:07 -05:00
rocky
5d1bf2dd9b
adjust "assert" transformation due to grammar ...
...
simplification
2020-02-01 22:27:17 -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
fdf4496a2d
Track grammar "stmt" simplifications class ...
...
* NAME_MODULE constant
* QUAL_NAME constant
2020-01-29 15:37:58 -05:00
rocky
e80e72e6ab
ifelsestmt transform must object types more
2020-01-26 10:12:26 -05:00
rocky
118e21b2cd
A recent changed bolixed docstrings...
...
fixa
2020-01-26 03:30:57 -05:00
rocky
33918bd9d2
More 3.x "if" checking. Abbreviate stmts->sstmt
2020-01-26 02:58:33 -05:00
rocky
10695d882e
Fix bug in 3.7 chained comparison semantic action
2020-01-24 06:14:28 -05:00
rocky
5c31fdc362
Fix bug in 3.6 handling kwonly params ...
...
when there are annotation args
2020-01-24 05:47:41 -05:00
rocky
5616f56442
Remove unreachable code from make_function36.py...
...
with respect to picking out MAKE_FUNCTION attributes.
Fill in runtests.sh exclude lists
2020-01-24 05:05:56 -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
96c9058cc1
Mini-sync with decompyle3:
...
go over runtests.sh 3.8 excludes
2020-01-23 07:00:53 -05:00
rocky
5951f974d5
Fix 3.8 grammar rule bug: "for" with "if"/"return"
2020-01-23 06:07:34 -05:00
rocky
bc50825460
Conditional jumps to extended-arg JUMP_BACK...
...
this is a major reworking. But it leads the way forward to a
simpler grammar.
2020-01-22 05:32:27 -05:00
rocky
d2f59189dd
Add missing code for n_assert_invert
2020-01-21 21:54:09 -05:00
rocky
f4e6382cc1
Specialize "classdef" nonterminal for 3.6+
2020-01-21 04:56:11 -05:00
rocky
67c37f1a03
blacken yet another buffer
2020-01-21 04:46:04 -05:00
rocky
beac1d3567
Fix a bug in 3.6+ keyword-only argument passing
2020-01-21 04:37:58 -05:00
rocky
e466e826b3
Small bug in 3.6+ in finding class name
2020-01-20 22:43:20 -05:00
rocky
7ec1d0e17b
Merge branch 'master' of github.com:rocky/python-uncompyle6
2020-01-17 04:44:59 -05:00
rocky
027c9a7dc0
Fix "for ... if" bug introduced since 3.6.2...
...
However we've isolated and documented the 3.x grammar a little bit better
2020-01-17 04:41:16 -05:00
rocky
6d368d2b30
parens around consts when taking attr again
2020-01-16 22:15:28 -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
5cdf057a47
Correct handling "if" in dictcomp in semantic actions for 3.x
2020-01-15 02:36:19 -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
0706f18b1d
3.7 test_fstring now works.
2020-01-14 00:09:04 -05:00
rocky
73937ffeb4
Handle set/dictionary comprehensions in format strings
2020-01-13 23:49:17 -05:00
rocky
a918055a31
3.6+ nested format strings again
2020-01-13 21:25:20 -05:00
rocky
ec3a9978fc
Better 3.6+ nested format strings
2020-01-13 19:08:54 -05:00
rocky
54f4806021
More fstring bugs -- nested fstring grammar rules
2020-01-13 08:04:53 -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
f56ad56021
Wacky string at beginning of fn which is not docstring...
...
3.7.6 test_fstring.py tests this.
2020-01-12 22:59:06 -05:00