rocky
5a83c7c643
Simplify imports again using xdis 4.6.0
2020-05-19 00:53:53 -04:00
rocky
31db2f3e04
Small typo
2020-05-18 23:29:33 -04:00
rocky
7fa851765d
Regularize "or" so args are in 1..2 and ...
...
correct "return None" semantic action
2020-05-18 22:55:26 -04:00
rocky
d7c3b8454b
3.8 needs call_stmt -> call
...
Simplify/regularize how "return" works
2020-05-18 22:26:18 -04:00
rocky
3fb8d90407
Revise for xdis 3.6.0 ...
...
Simplify xdis imports where we can.
Blacken (most) of those buffers too
2020-05-18 21:49:16 -04:00
rocky
ff43565981
3.4-3.4 mixed "and"/"or" parsing ...
...
Fix by limiting more the bogus come from.
2020-05-18 05:33:57 -04:00
rocky
4365022f40
Adapt decompyle3's 3.8 try/return grammar rules
2020-05-17 10:18:10 -04:00
rocky
b94c649776
3.7 change rule to match op "or" expr's
2020-05-14 21:32:45 -04:00
rocky
81b704f597
Simpify an import, blacken a file.
2020-05-09 09:32:44 -04:00
rocky
5233a0716b
Correct wong class names in super()
2020-05-08 05:59:20 -04:00
rocky
a72163f6f9
lint
2020-04-30 18:00:04 -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
302a5d53d4
Get ready for release 3.6.7
2020-04-27 22:52:39 -04:00
rocky
9e193fd7cb
Track branch changes in xdis
2020-04-21 22:42:57 -04:00
rocky
ab6b12be56
Small fixes in fragment parser
2020-04-21 19:58:03 -04:00
rocky
5bd97aa756
lint
2020-04-21 13:49:05 -04:00
rocky
5237d704fa
Remove stray debug stmt
2020-04-20 23:13:06 -04:00
rocky
a01285e4a9
Get ready for release 3.6.6
2020-04-20 22:23:58 -04:00
rocky
1d7e8f1617
Update to use xdis 4.4.0 ...
...
with more correct SipHash and other needed bug fixes.
2020-04-20 10:47:34 -04:00
rocky
dc7f1ed0cc
Final remnants of xdis fixes?
...
Restore the last of the excluded bytecode.
2020-04-18 23:24:56 -04:00
rocky
e2baccb4e5
Reinstate 3.5 tests
2020-04-18 23:18:24 -04:00
rocky
999eee4b5f
More xdis upgrade fixes...
...
LOAD_CONST of unicode in 2.7- is the same thing as LOAD_STR.
I guess previously there was no unicode.
2020-04-18 22:26:24 -04:00
rocky
9ca94717e0
Yet another workaround
2020-04-18 19:53:04 -04:00
rocky
b77efec36c
git commit -m'Adjust "or" offset check ...
...
for Python < 3.6 hopefully it doesn't break Python 3.6+
2020-04-18 19:21:59 -04:00
rocky
17d07eaf00
continuing xdis refactor aftermath...
...
Both 2.7 bytecode broken from the refactor have now been reinstated, but
two 3.5 and 3.6 bytecode have moved into the "todo" category.
2020-04-18 18:47:06 -04:00
rocky
538c2e7efd
More regressions with some fixes
2020-04-17 00:06:39 -04:00
rocky
4796fb9e70
"or" rule regularization + regressions from xdis
2020-04-16 23:45:39 -04:00
rocky
2fd61b1016
Add 3.7ish "or" check
2020-04-16 16:35:27 -04:00
rocky
badfe5456f
Track "or" grammar changes...
...
Remove re deprecation warning
2020-04-16 15:25:42 -04:00
rocky
f117feb585
Use new xdis...
...
Sadly there are some regressions that need to be fixed.
Deal with later.
2020-04-16 11:01:12 -04:00
rocky
869e48877c
Convert to use xdis 4.3.0 or greater
2020-04-16 08:41:53 -04:00
rocky
7ed40d5f6e
Adjust _mklambda vs. yield precedence
2020-04-11 09:54:03 -04:00
rocky
5c6365d8a1
Go over "yield" and other precedence
2020-04-09 20:27:07 -04:00
rocky
f6a13302fb
Bugs introduced in last commit
2020-04-04 10:26:46 -04:00
rocky
e8e7d2086d
whileelse in 3.6 sometimes has come froms...
...
also remove extra "L. " in token printing
2020-04-04 10:12:12 -04:00
rocky
3dcc20f6d7
Small spelling typo...
...
Fixes #311
2020-04-04 02:38:32 -04:00
rocky
7b4059820f
Get ready for release 3.6.5
2020-04-01 11:18:20 -04:00
rocky
9caac7fc84
Small tweaks ...
...
* Remove unneeded Makefile
* sync n_ifelsesmt transform with decompyle3
2020-04-01 11:00:25 -04:00
rocky
ceb26d29fd
3.5- doesn't do format strings
2020-04-01 10:03:10 -04:00
rocky
a616e1e1c7
"withstmt" -> "with" and fix async for
2020-04-01 09:48:34 -04:00
rocky
e2d349f781
Handle nested async for in for...
...
and Better async comprehension detection.
Still more work is needed. See commented-out section in
test/simple_source/bug37/02_async_for_generator.py
2020-03-31 12:05:39 -04:00
rocky
af8add9df4
Bug in finding annotation in fn with docstring
2020-03-31 11:13:12 -04:00
rocky
3afc5a599a
Fix one more call to ParseError
2020-03-31 10:46:00 -04:00
rocky
663bc06bb9
Fix one more call to ParseError
2020-03-31 10:44:52 -04:00
rocky
63d6054640
One more ParserError() upgrade
2020-03-31 10:29:52 -04:00
rocky
5fde4f2e05
Show token number in parser error listing...
...
But only if -g is given
2020-03-31 10:12:52 -04:00
rocky
2b2e7d3242
Bump xdis and pyenv versions,
2020-03-16 16:44:34 -04:00
rocky
35127452f5
Bug found by 2.4 sre_parse.py testing
2020-02-15 08:06:58 -05:00
rocky
28ef04d141
More bugs found via sre_parse.py decompilation
2020-02-15 05:10:11 -05:00
rocky
fd36c77d2d
Bugs found in 2.4 branch testing
2020-02-14 10:54:37 -05:00