rocky
566ef37ecc
back off of build_slice{2,3} ->slice{2,3}
...
There is another slice rule that interferes with this.
2017-11-25 21:49:03 -05:00
rocky
b7003914c9
localize 2 and 3 argument BUILD_SLICE...
...
Nontermninal name matches AST anme now. Add test.
2017-11-25 21:10:11 -05:00
rocky
85d65e25ba
cmp_list -> compare_chained ...
...
to better match the Python AST name Compare. Relates to Issue #29
2017-11-24 06:58:07 -05:00
rocky
494bbbdadb
Reduce 3.5 call_aysnc grammar rules
2017-11-23 16:23:49 -05:00
rocky
184f480bc8
Remove whileelselastsmt ...
...
Right now I don't know what it does and we don't have something that
needs it
2017-11-23 12:33:41 -05:00
rocky
1823513841
3.x Grammar reduction of custom rules...
...
by looking for token patterns GET_ITER CALL_FUNCTION_1
2017-11-23 07:47:38 -05:00
rocky
d8a3c2708e
Grammar coverage and pruning
2017-11-23 05:40:30 -05:00
rocky
d0644e08d7
Isotate conditionalnot
2017-11-22 19:38:02 -05:00
rocky
c0f0485754
Reduce unecessary grammar rules in 2.x
2017-11-22 13:06:05 -05:00
rocky
a8e235de17
3.3. grammar cleanup ...
...
need build_list in for BUILD_TUPLE_0
2017-11-18 11:02:54 -05:00
rocky
e116d7280c
custom rule hacking ...
...
Reduce extraneous 3.x "load_list" and "load_closure" rules
2017-11-17 12:06:14 -05:00
rocky
b7f8bee11f
Python 3 grammar clean up and reorganization
2017-11-17 07:16:24 -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
37108bc41c
More grammar cleanups
2017-11-16 12:01:18 -05:00
rocky
2f218fe9bf
More grammar isolation: assert2 in Python3
2017-11-16 11:20:35 -05:00
rocky
2a13851f55
Isolate "assert2" rule
2017-11-16 10:55:40 -05:00
rocky
ee6db130ec
grammar cleanup: dict/set comprehensions 2.7+
2017-11-15 09:38:48 -05:00
rocky
3a0f0557f7
Stronger 3.4 testing ...
...
parse3.py: remove unused grammar rule
2017-11-15 03:33:40 -05:00
rocky
9cfd7d669e
Get ready for release 2.13.0
2017-10-10 22:08:10 -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
b3359439f9
if bug in lambda with ifelse
...
A synergy of Python's irregular lambda, its custom ifelse syntax and its
marvelous indentation regime. Fixes #130
2017-10-05 11:00:55 -04:00
rocky
c8d15e7654
spark-parser induced changes...
...
reduce rules can be called without token streams.
2017-10-02 03:09:28 -04:00
rocky
f73f0ba41c
No unicode in Python3.
...
but we need it in Python2. The bug was probably introduced
as a result of recent Python code type unteroperability canonicalization
2017-09-26 09:43:01 -04:00
rocky
114f979555
Pyton 3.1 Annotation args can be unicode?
2017-09-26 09:31:04 -04:00
rocky
5ca219f3d3
Remove hacky fragments try fixup...
...
hacky call_function code is also not needed or will be reinstated
properly. Better grammar structure for Python 3.6 call_function.
2017-06-06 21:58:47 -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
eb92418224
Python 3.5 *args with kwargs handling.
...
3.5 is a snowflake here. Thank you, Python.
Fully fixes Issue 95.
3.6 is broken on this source, but for a *different* reason. Sigh.
2017-06-04 17:53:51 -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
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
2a47f0309f
Fix EXTENDED_ARG for long lists, sets, maps
2017-05-19 15:36:53 -04:00
rocky
9c846c309e
Bug in pypy JUMP_IF_NOT_DEBUG handling
2017-05-19 07:18:25 -04:00
rocky
d1a695b2bd
Reinstate 3.6 listcomp rule
2017-05-15 19:28:17 -04:00
rocky
47b6a35abc
Bang on 3.6 MAKE_FUNCTION some more
2017-05-15 03:07:11 -04:00
rocky
47977b3372
Python 3.5 kw arg can be an expr
...
Fixes Issue #95
2017-05-14 11:46:15 -04:00
rocky
ff73efcf8e
Grammar rules for Python 3.6 MAKE_FUNCTION
2017-05-13 11:39:19 -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
rocky
d540146d5a
WIP: start 3.6 MAKE_FUNCTION handling
2017-05-11 07:00:46 -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
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
91b86ac156
BUILD_MAP_UNPACK'ing of dictionaries in 3.5
2017-05-02 05:51:48 -04:00
rocky
e5008693a1
3.3+ bug in handling single kwarg after *
...
Towards fixing issue #110
2017-04-22 04:19:04 -04:00
rocky
d4be647bce
3.5 ifelsestmtl grammar bug.
...
Fixes #108
2017-04-19 05:08:48 -04:00
rocky
3bbc94847d
Comment on what's up with last change
2017-04-16 16:07:08 -04:00
rocky
3a8d4e1a12
Python 3.x ifelse in comprehension
...
Fixes Issue #91
2017-04-16 14:47:11 -04:00
rocky
03498963d4
Python 3.5+ BUILD_UNMAP_PACK rules
...
Towards addressing Issue #98
2017-04-14 23:39:56 -04:00
rocky
8cdaac93ab
Add if1else. Fixes #101
2017-04-13 21:27:22 -04:00
rocky
a9f7a3c6d0
In 3.x come_from should include COME_FROM_EXCEPT
2017-04-13 20:27:02 -04:00
rocky
be9194c223
annotate args type need to be expr's not constants
2017-04-12 20:12:41 -04:00
rocky
6acec471e3
Towards fixing annotated decorator functions...
...
and annotate functions
2017-04-11 05:56:20 -04:00