rocky
b84c35acf5
DRY code; localize 3.{5,6} grammar rules..
...
helper.py, pysource: has code to flatten list used in n_list and n_build_tuple_unpack_with_call
parse3{5,6}.py: localize grammar rules with BEFORE_ASYNC_WITH
2017-12-11 21:26:58 -05:00
rocky
3705f6d096
Start to handle CALL_FUNCTION_EX more accurately
2017-12-11 08:24:27 -05:00
rocky
27b217a4ed
Merge branch 'master' into python-2.4
2017-12-09 04:53:21 -05:00
rocky
7d8c17cb93
grammar isolation and reduction
2017-12-07 12:27:22 -05:00
rocky
7b39002476
Sync NT joined_str and formmated_value with AST
2017-12-05 23:17:51 -05:00
rocky
df4d80ff26
Merge branch 'master' into python-2.4
2017-12-03 11:19:48 -05:00
rocky
5b916567fe
NT try-middle -> except-handler to match AST
2017-12-03 06:30:33 -05:00
rocky
21a8726a47
Merge branch 'master' into python-2.4
2017-12-03 03:34:50 -05:00
rocky
eafb32b9a0
NT trystmt -> try_except to match AST
2017-12-02 22:20:45 -05:00
rocky
0b9fca2263
Sync with master
2017-12-02 09:51:15 -05:00
rocky
6d0f72f13b
Fix bug in 2.6 tryelse get test_grammar working...
...
localize grammar rules
2017-12-02 01:35:43 -05:00
rocky
8b6ae46a1d
Isolate and reduce 3.x conditionals and lambda rules
2017-12-01 22:03:12 -05:00
rocky
0d9464bb92
Merge branch 'master' into python-2.4
2017-11-29 05:09:22 -05:00
rocky
43c3154a55
NT designatore -> store to match AST
2017-11-29 05:05:15 -05:00
rocky
fb695616a6
NT call_function -> call to match AST
2017-11-28 22:13:23 -05:00
rocky
dded92b85d
Narrow unused classdefdeco2 rules
2017-11-28 12:49:37 -05:00
rocky
a279784d8d
Merge branch 'master' into python-2.4
2017-11-23 17:17:54 -05:00
rocky
84632bdc78
Forgot to update a call in last change
2017-11-23 16:44:07 -05:00
rocky
24fb13cf23
Merge branch 'master' into python-2.4
2017-11-22 06:25:52 -05:00
rocky
58ee49159e
More grammar isolation. narrow custom rules...
...
Specifically: _mklambda with load_closure is Python2 only
Add classdefdeco2 rule only when we have seen a LOAD_BUILD_CLASS
2017-11-17 00:51:03 -05:00
rocky
c0e553dbb5
Merge branch 'master' into python-2.4
2017-11-13 10:11:00 -05:00
rocky
74731a9d42
Fix bug in return-optimized try stmt
2017-11-09 11:01:29 -05:00
rocky
0bb793239b
Add 3.6+ grammar for except's ending in RETURN...
...
Not totally out of the maze in 3.6 control flow...
There are still problems with erroneous RETURN_VALUEs becoming RETURN_END_IF,
2017-11-08 10:31:38 -05:00
rocky
6bffae91fa
awith custom COME_FROMs ...
...
Now that jump branching has been properly fixed up for
EXTENDED_ARG instructions which are more prevalent with
wordcode encoding.
2017-11-06 09:10:42 -05:00
rocky
b83d6c64ed
Python 3.6 control flow bug...
...
Much more is needed, but it's a start
2017-10-29 23:52:58 -04:00
rocky
77b93c5f21
Sync with master
2017-10-10 23:04:25 -04:00
rocky
9e0c65881d
Sync with master
2017-10-10 22:52:07 -04:00
rocky
adc9b99106
More spark-parser 2.7.0 compatabilithy changes
2017-10-10 15:11:08 -04:00
rocky
1392b18bd7
Adjust for spark-parser 2.7.0 incompatabilities
2017-10-10 14:14:26 -04:00
rocky
b7d8cbfaf5
Merge branch 'master' into python-2.4
2017-06-18 15:40:40 -04:00
rocky
b733a1b036
BUILD_{MAP,TUPLE}_UNPACK & CALL_FUNCTION_EX_KW...
...
Bang on these in 3.6. Not totally succesfull right now.
In fact a regression on one of the test cases
2017-06-05 23:51:51 -04:00
rocky
d4dab54c7b
Merge branch 'master' into python-2.4
2017-05-30 02:18:57 -04:00
rocky
2ab7aa2f48
Simplify EXTENDED_ARG on 3.x
...
We largely remove them and fold them itno the next op.
MAKE_FUNCTION though before 3.6 is an exception as that indicates an
annotated function
2017-05-19 22:06:18 -04:00
rocky
b4efa62fad
EXTENDED_ARG handling...
...
get_target() wasn't taking into account EXTENDED_ARG before opcode.
This is mostly relevant in Python 3.6 where the max size before needing
EXTENDED_ARG has been reduced to 256, but theoretically possible in earlier
versions.
2017-05-19 07:13:20 -04:00
rocky
6991a637a2
Small changes....
...
* __pkginfo__.py: Need spark parser 1.6.1 for corrected remove_rules() fn
* parser36.py: remove replaced Python3 rules
* scanner3.py: corrected comment. Thanks to moagstar here.
*
2017-05-17 23:31:56 -04:00
rocky
52b1f4d2b6
Fix broken CI on 3.6...
...
Another grammar rule replacing SETUP_LOOP with setup_loop
2017-05-16 20:23:24 -04:00
rocky
0ce804ae16
More EXTENDED_ARGS on 3.6
2017-05-16 06:20:41 -04:00
rocky
d2502f205e
extend use of EXTENDED_ARGS in 3.6
...
switching to a wordcode seems to have made opcode fields smaller so we
need EXTENDED_ARG more?
2017-05-16 06:03:57 -04:00
rocky
2ad40a5648
Allow LOAD_CONST EXTENDED_ARG
2017-05-16 00:22:48 -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
ca1679e636
Added support for support for Python 3.6 CALL_FUNCTION_KW
2017-05-10 21:49:42 +02:00
rocky
d6c45979ba
Merge branch 'master' into python-2.4
2017-05-06 07:16:39 -04:00
rocky
84fd71b73b
Python 3.6 CALL_FUNCTION_EX first attempt
2017-04-25 07:31:01 -04:00
rocky
8a33a583cd
3.6 generates Wonky EXTENDED_ARG in expression
...
Fixes Issue #102
2017-04-15 18:31:39 -04:00
rocky
89429339fa
Merge branch 'master' into python-2.4
2017-01-11 19:25:44 -05:00
rocky
4827b1e994
Towards better 3.6 support
2017-01-03 00:44:07 -05:00
rocky
012ff91cfb
Merge branch 'master' into python-2.4
2016-12-25 07:57:17 -05:00
rocky
e3f4beeb74
Lint
2016-12-24 07:45:02 -05:00
rocky
b3bda76582
Merge branch 'master' into python-2.4
2016-12-16 22:56:07 -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