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
rocky
9e34654b38
Add more while1else grammar rules
...
Towards addressing issue #93
2017-04-10 02:47:46 -04:00
rocky
792df2a7a7
Another Python 3.5 FUNCTION_VAR bug
...
Fixes #94
2017-04-09 06:54:32 -04:00
rocky
4199bc7f61
Fix Python 3.5 CALL_FUNCTION_VAR_KW
...
Fixes Issue #95
2017-04-09 05:30:45 -04:00
rocky
4f2ae2f603
More accurate ranges of try blocks in 3.x
2017-03-05 00:05:52 -05:00
rocky
a0c090932e
Bug found by hypothesis in creating function calls
2017-03-04 11:49:09 -05:00
rocky
747212c62c
Python 3.x needs more "while 1" grammar rules
2017-02-20 08:57:16 -05:00
rocky
493e4b14a1
Some Python 3.4 bugss fixed by using 3.5 rules
2017-02-20 08:17:17 -05:00
rocky
9491c67779
More COME_FROM's in Python 3...
...
Need this to find boundaries of simple if better
2017-02-20 04:17:46 -05:00
rocky
9c49b5d54b
Handle 3.6 BUILD_CONST_KEYMAP
2017-01-15 11:10:13 -05: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
99fce6dfd7
Fix some errors in deparsing Python 3 annotations
2017-01-07 03:03:53 -05:00
rocky
39814fab8b
Misc bugs
2016-12-28 20:16:13 -05:00
rocky
723fa5dfed
Towards fixing a 3.2 while true: ... break bug
2016-12-28 19:13:11 -05:00
rocky
e3f4beeb74
Lint
2016-12-24 07:45:02 -05:00