rocky
7257ba41c5
Fix up retreiving "async" property on 3.6
2017-05-23 21:02:06 -04:00
rocky
9eee4eccd7
Fix bug in a 3.6 class name.
2017-05-23 19:00:06 -04:00
rocky
cf3c07e047
Add fuzzy offset deparse lookup
2017-05-23 06:10:31 -04:00
rocky
5ebb731c04
Worse results. Revert some of the last changes
2017-05-20 07:50:41 -04:00
rocky
d3794ec9af
More explicit about 3.5 UNMAP_PACK
...
Have to reduce 3.5 bytecode testing for now, code is more solid.
2017-05-20 07:40:59 -04:00
rocky
2a47f0309f
Fix EXTENDED_ARG for long lists, sets, maps
2017-05-19 15:36:53 -04:00
rocky
2ad40a5648
Allow LOAD_CONST EXTENDED_ARG
2017-05-16 00:22:48 -04:00
rocky
b1e32c7cc5
towards fixing a 3.5.CALL_FUNCTONI_VAR bug
2017-05-14 12:23:47 -04:00
rocky
a32c0e68ef
Bang on 3.6 MAKE_FUNCTION a bit more
...
parse3.py, parse36.py: adding return_closure rule tags what's going on
with this rule
pysource.py: start changing semantic rules to support code changed by
new make_function semantics
README.rst: typo
2017-05-13 10:06:43 -04:00
Daniel Bradburn
93437152a2
Fixed bug in compiling double star arg only function calls where the closing parenthesis would be missed
2017-05-10 22:52:49 +02:00
Daniel Bradburn
ca1679e636
Added support for support for Python 3.6 CALL_FUNCTION_KW
2017-05-10 21:49:42 +02:00
rocky
8d084ed358
pysource guard and another appveyor test
2017-05-08 07:03:10 -04:00
rocky
449d74af51
More guarded CONTINUE deletion
2017-05-07 13:30:26 -04:00
rocky
f8a40c1949
Reduce spurious "continue" statements
2017-05-07 13:15:26 -04:00
rocky
246495febd
Bang more on BUIlD_MAP_UNPACK
...
there are still bugs. Note:
{**{'x': 1}, **{'y': 2}} and
{{'x': 1}, **{'y': 2}}
generate the same Python 3.5+ bytecode.
2017-05-02 21:55:41 -04:00
rocky
26cd91046e
Remove extra unpack *. Issue #98
2017-05-01 05:26:55 -04:00
rocky
364827a2f2
Handle BUILD_MAP_UNPACK in a build_list
2017-04-29 21:44:52 -04:00
rocky
819458564c
A hacky way to get CALL_FUNCTION_EX_KW to work.
2017-04-27 21:38:30 -04:00
rocky
486f313532
remove debug code
2017-04-26 02:14:28 -04:00
rocky
84fd71b73b
Python 3.6 CALL_FUNCTION_EX first attempt
2017-04-25 07:31:01 -04:00
rocky
87db833f62
Add await expr
...
Fixes #111
2017-04-22 10:39:20 -04:00
rocky
cb6925beec
Add DELETE_DEREF grammar rule
...
Fixes Issue #106
2017-04-18 01:35:08 -04:00
rocky
5477ca294d
Correct bug in 3.5+ build_list with UNPACK
2017-04-15 22:34:56 -04:00
rocky
03498963d4
Python 3.5+ BUILD_UNMAP_PACK rules
...
Towards addressing Issue #98
2017-04-14 23:39:56 -04:00
rocky
b4ded92822
Add Python 2.3 rule for "if 1: ..."
...
Fully fixes #97 for Python 2.3. Python 2.4 was fixed in a previous commit.
2017-04-13 01:14:49 -04:00
rocky
6acec471e3
Towards fixing annotated decorator functions...
...
and annotate functions
2017-04-11 05:56:20 -04:00
rocky
41343c27b7
Misc bugs
...
parse2.py: restore accidently-removed while1stmt rule
scanner27.py: grammar typo
check_ast: add while1else to list of looping constructs
pysource.py: CALL_FUNCTION_VAR_KW_ARGS with positional args rule is different?
2017-04-10 07:57:56 -04:00
rocky
792df2a7a7
Another Python 3.5 FUNCTION_VAR bug
...
Fixes #94
2017-04-09 06:54:32 -04:00
rocky
19d2569515
Changes based on grammar coverage info
2017-01-29 23:01:12 -05:00
rocky
1cb2cd7a82
More 2.6, 2.7 control flow
...
Todo more COME_FROMs but now need to check targets better. In some cases
we're relying on grammar ambiguity to work out right and in 2.7 it doesn't
2017-01-24 01:21:28 -05:00
rocky
9ec312ba5e
More 2.6, 2.7 control-flow bugs
...
Wasn't limiting exception clause to try finally. Probably still has bugs
in try-finally nesting
Add another 2.6/2.7 COME_FROM to try to limit if/end scope better
2017-01-24 00:53:30 -05:00
rocky
8333e4ae93
Handle BUILD_CONST_KEY_MAP as a varargs
...
custom rules with BUILD_CONST_KEY_MAP are pinned to the specific number
of args seen.
2017-01-20 20:41:10 -05:00
Daniel Bradburn
33ec66a82f
added generation of dict display from BUILD_CONST_KEY_MAP
2017-01-18 22:38:09 +01:00
rocky
a760188724
Improve BUILD_xxx_UNPACK slightly
2017-01-10 04:36:28 -05:00
rocky
ad345ef94a
Add async_call_function for 3.5+
2017-01-09 07:03:51 -05:00
rocky
66518baed0
Misc cleanups
...
Favor "decompile" over "uncompyle" since "decompile" is in common use
Reduce size of pysource.py by splitting out constants
2017-01-08 09:26:19 -05:00
rocky
21023fea74
Add 3.5+ async with/for ..
...
scanner3.py: 3.6 bytecode vs wordcode fix
2017-01-08 08:54:03 -05:00
rocky
66741d16ba
Start to add 3.5+ await and async
2017-01-07 21:36:37 -05:00
rocky
99fce6dfd7
Fix some errors in deparsing Python 3 annotations
2017-01-07 03:03:53 -05:00
rocky
6c546fe6e1
WIP : Add THEN to disambigute from "and"
2016-12-27 22:45:08 -05:00
jiangpch
9aa4e2b9ae
tupples which contain only 1 element need a comma
2016-12-26 15:23:50 +08:00
rocky
2f51067a9d
Scanner call fixes. NAME_MODULE removal for <=2.4
2016-12-25 09:20:57 -05:00
rocky
e3f4beeb74
Lint
2016-12-24 07:45:02 -05:00
rocky
7d58dcf6dd
Remove stray debug hook
2016-12-24 04:10:31 -05:00
rocky
bfff1b4e9f
Bang on 3.6 build_map_unpack_with_call
...
Probably will fix better in the future.
2016-12-20 19:42:23 -05:00
rocky
08dcc7d820
Start to handle 3.5 build_map_unpack_with_call
...
3.6 also started but needs even more work
2016-12-16 20:39:24 -05:00
rocky
d22931cb49
Get ready for release 2.9.7
...
Some of the many lint things. Linting is kind of stupid though.
2016-12-04 09:36:30 -05:00
rocky
abecb21671
2.7 grammar bug workaround. Fix docstring bug
2016-11-24 21:57:39 -05:00
rocky
8be6369bdf
Better line number tracking
...
Indent Python 2 list comprehensions, albeit badly.
DRY code a little via indent_if_source_nl
2016-11-24 10:31:38 -05:00
rocky
c8550d5c9e
Split out print_docstring
...
move from pysource.py to new helper.py
2016-11-22 05:29:50 -05:00