rocky
9f270dce4a
Go over full-version testing
...
When all versions, do less, but do the run tests. Overall overall
better.
Get rid of the tests that were the most problematic with hypothesis.
Hypothesis just doesn't run on enough versions and needs specific
versions for things we do use
2019-12-23 10:46:33 -05:00
rocky
28d9e66a53
Redo the way we handle complex literals and 3.7+ bug fixes...
...
In 3.7+ remove assert_expr* parser rules
Fix "call" precidence in 3.7+ for it children
2019-12-19 06:40:13 -05:00
rocky
c6ddefcef5
Merging in recent 3.7 and 3.8 improvements from decompyle6
...
This rebases 3.7, 3.8 ...decompilation off of 3.7ish rather than a 3.4
base.
Add more 3.7 and 3.8 tests
2019-12-08 17:54:59 -05:00
rocky
5de5d2357f
Update test_grammar for Python 3.8
2019-11-09 17:55:58 -05:00
rocky
96866f94a7
Adjust grammar checker to ignore LOAD_CODE
2019-06-19 15:54:16 -04:00
rocky
44d7cbcf6f
LOAD_CONST->LOAD_STR for Python 3.x
2019-06-08 02:28:27 -04:00
rocky
cfe7feed4d
Fix 3.8 pytests
2019-04-10 22:58:15 -04:00
cclauss
6cbaef4ba5
Travis CI: Run more f-string tests on Python 3.7
2019-01-12 20:24:08 +01:00
rocky
37750814b9
Adjust grammar checking...
...
More conditional rules were added
2019-01-01 23:03:17 -05:00
rocky
fb31fe1f35
Another Python 3.0 (while) parse bug
2018-06-23 05:48:14 -04:00
rocky
f331deb864
2nd attempt to get check_grammar working on 3.x
2018-06-22 21:27:46 -04:00
rocky
1350f4c899
Some bugs...
...
Python 3 compiling Python 2 tolerance. Fixes issue #180 .
pytest test_grammar.py and validate.py fixes for 3.6 testing
2018-06-22 21:06:54 -04:00
rocky
ab5303f504
Administrivia
2018-04-16 13:06:16 -04:00
rocky
6c6d62edb8
python 2.6 grammar test tweak
2018-04-16 13:00:30 -04:00
rocky
245deb0931
Get ready for release 3.8.1 ...
...
and more 3.7 grammar customization
2018-04-16 12:53:35 -04:00
rocky
3f26589bf1
More testing
2018-04-04 22:43:19 -04:00
rocky
1cd2d1e915
DRY scanner code more...
...
Expand 2.6 testing
2018-04-03 10:35:02 -04:00
rocky
bf0f5715a3
Adjust grammar-checking test
2018-03-27 19:47:08 -04:00
rocky
d2c8e4e12c
Adjust test_grammar for recent changes
2018-03-25 20:52:28 -04:00
rocky
0d327ab0ce
Fix bug introduced in last commit
2018-03-24 06:29:35 -04:00
rocky
e23315b2e6
Fallout from more precise token attributes
2018-02-28 23:35:52 -05:00
rocky
849691e087
Make grammar check work again..
...
Add the known unused rules in LHS to include those things
we recently added custom rules for
2017-12-14 16:36:45 -05:00
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
7d8c17cb93
grammar isolation and reduction
2017-12-07 12:27:22 -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
dfdd5c6c1c
NT build_list -> list to match AST
2017-12-01 03:55:31 -05:00
rocky
0744a549dd
Modify test_grammar for last change
2017-11-30 17:17:44 -05:00
rocky
bf5a6237d8
Isolate listcomp rule in 2.7
2017-11-30 10:30:08 -05:00
rocky
c4bfe38ee0
Reduce 3.x rules, esp. listcomp
2017-11-29 19:03:11 -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
8454264cfc
One more genexpr -> generator_exp
2017-11-28 18:00:42 -05:00
rocky
c241b12308
Grammar isolation fixes
2017-11-27 05:16:08 -05:00
rocky
a5e3d01dd3
Work around grammar remove rule bug...
...
And reinstate source to a current 3.3 bug (which we don't detect).
But at least it is noted for future work.
2017-11-26 08:07:00 -05:00
rocky
af38064a1b
remove unpack_list rule and ...
...
tidy things a bit more
2017-11-25 00:32:13 -05:00
rocky
f7ff4c2d41
Grammar cleanup: import_as_cont -> import_as
2017-11-18 10:26:57 -05:00
rocky
0c0a534a48
Track spark_parser changes
2017-11-18 09:49:14 -05: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
4f2ae2f603
More accurate ranges of try blocks in 3.x
2017-03-05 00:05:52 -05:00
rocky
65858a4c74
Grammar check: ELSE on RHS is ok.
2016-12-09 22:22:01 -05:00
rocky
cbcfd53dae
Python 2.6 grammary bug and..
...
__pkginfo.py__: Bump spark_parser version for parse_flags 'dups'
2016-11-23 21:44:53 -05:00
rocky
f8917aaf88
Remove redundant 2.7 (and 2.x) grammar rules
2016-11-22 17:31:36 -05:00
rocky
63e4c9343f
Clean up annotation grammar a little
2016-11-01 15:50:19 -04:00
rocky
ccdd37611c
More complete annotate handling
...
Still have a bit of work to do though.
2016-10-28 19:55:17 -04:00
rocky
2e355b6245
Expand annotate return to Python 3.4
2016-10-28 11:33:54 -04:00
rocky
9849f06ff6
Expand annotate handling to 3.3
...
(and possibly 3.2)
- DRY Python 3.1-3.3 grammar a little
2016-10-28 09:01:41 -04:00
rocky
051efb80f5
PY3: COME_FROM -> COME_FROM_FINALLY as appropriate
...
We now have all WITH_ op jumps associated in the grammar
Also, some COME_FROM_LOOP grammar fixes
2016-09-27 03:27:41 -04:00
rocky
c87710dd4b
Python 3 COME_FROM -> COME_FROM_WITH appropriately
2016-09-26 08:09:05 -04:00