rocky
04da2fb8df
Improve 3.4 ifelse inside a lambda
...
Fixes #426
2024-07-13 22:46:31 -04:00
rocky
e93b70bcce
Fix Python 3.x pringing superclasses...
...
class Description: not class Description("Description").
Introduced in not catching LOAD_CONST->LOAD_STR change
2019-12-15 10:49:24 -05:00
rocky
0dc19a8fdd
Correct 3.4 "yield from" semantic action bug
2019-06-29 04:59:03 -04:00
rocky
c8fc6a704c
LOAD_CONST->LOAD_STR bugs and 3.4 kwargsonly
2019-06-09 02:18:21 -04:00
rocky
0c4ab699b5
3.4+ while handling with returns ...
...
these while loops don't have a JUMP_BACK in them
2019-04-15 12:03:11 -04:00
rocky
59c77f103d
More self-checking run tests
2019-04-10 11:49:27 -04:00
rocky
49e354375e
More run tests
2019-04-10 11:05:46 -04:00
rocky
f3d86e0708
Bang on Python 3.8
2019-04-10 07:22:43 -04:00
rocky
8955788990
Add first 3.0 run test
2018-06-13 18:47:36 -04:00
rocky
f1e48fb60a
while1 grammar rule cleanup
...
Closes #172
2018-04-27 10:57:27 -04:00
rocky
23fb07b1c9
Update test
2018-04-07 07:21:22 -04:00
rocky
90ac8a463d
Adjust 3.x while1else reduction check
2018-03-20 11:33:10 -04:00
rocky
0e64111195
Extend 3.4: "while 1: if : continue" handling
2018-03-20 10:37:19 -04:00
rocky
f008b8f411
Two 3.4 fixes..
...
* LOAD_DEREF does not signal "nonlocal" variables
* Add rule for "if" with a "continue" and "return"
2018-03-20 05:07:19 -04:00
rocky
452d17a6c3
3.4 while1 bug fix
2018-03-01 18:56:08 -05:00
rocky
c6e20e4444
Fix whileelse bug
2018-01-11 21:52:33 -05:00
rocky
88fbb691d8
Fix 3.1 and 3.2 named and kwargs parsing..
...
Improve 3.4 coverage and note a 3.5 while bug
2017-12-07 16:47:56 -05:00
rocky
41db5b8848
Fix while1/if parsing in 3.x. Reinstate some tests
2017-12-06 22:47:56 -05:00
rocky
bbaa3e6602
Fix bug in single param **arg
2017-12-05 07:50:22 -05:00
rocky
c953701623
Slightly better 3.x list comprehension handling
2017-12-04 14:15:06 -05:00
rocky
3425851dc7
Python 3.x needs conditional_not
2017-12-04 08:40:06 -05:00
rocky
5919be1451
Fix chained compares with -'s
2017-12-02 12:06:01 -05:00
rocky
28e573b73c
Improve 3.x forelselast coverage
2017-12-02 08:53:11 -05:00
rocky
acb4ffb758
Better grammar coverage; reduce 3.x mklambda rules
2017-11-29 16:39:32 -05:00
rocky
278756be49
Administrivia and more coverage
2017-11-29 10:12:09 -05:00
rocky
f2eaa09e96
Fix import and 3.x class bugs...
...
import x.y as z was failing across all Python versions
class decorators for Python 3.0..3.3 was failing
reduce 3.x while grammar rules
2017-11-29 06:59:05 -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
e2a6c0435d
grammar reduction of while loops
2017-11-23 10:51:22 -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
63a43d0c93
Profiling workarounds, more coverage ...
...
test/Makefile: more grammar checking. Update python versions
10_del.pyc add test of DEL_GLOBAL
check_ast.py, pysource.py: Profileing workarounds
2017-11-15 03:16:54 -05:00
rocky
bb24df596d
Bang on 3.x annotations
2017-04-11 17:09:10 -04:00
rocky
6acec471e3
Towards fixing annotated decorator functions...
...
and annotate functions
2017-04-11 05:56:20 -04:00
rocky
b043f6bafc
New test doesn't --verify correctly. Sigh.
2017-02-20 09:22:01 -05:00
rocky
aa207a3c77
Add test for last while1 bug fix
2017-02-20 09:15:39 -05:00
rocky
e02ebef45d
More Python 3 annotation bugs
2017-01-07 10:27:42 -05:00
rocky
ed9fb64e72
More if/then detection in Python 3.x
2016-12-29 03:56:39 -05:00
rocky
7ab4e1fbdb
Start grammar reduction checks
2016-11-26 15:38:00 -05:00
rocky
eab653afdd
Full Python 3 annotations
2016-11-01 12:21:27 -04:00
rocky
7eb9210b0c
Start to track line breaks on lists
2016-10-13 06:37:53 -04:00
rocky
e888a87d15
Reinstate some tests
2016-10-09 06:44:08 -04:00
rocky
a8f9f2170f
Python 3 while1 grammar rules with COME_FROM_LOOP
2016-09-28 05:52:13 -04:00
rocky
fe46015b78
PY3 COME_FROM_LOOP bug
...
There are still more in sre...
2016-09-27 04:59:06 -04:00
rocky
23770fca64
Tidy a bit
2016-09-11 03:39:19 -04:00
rocky
71591152ef
3.0 .. 3.4 bug in whileTrue
2016-09-09 22:27:13 -04:00
rocky
fecae9f902
Fix 3.3 named bug and ...
...
Parse 3.4 parameters correctly.
Allow test_pyenvlib to do 3.3.6
2016-09-06 02:15:47 -04:00
rocky
6189ce3c04
Bug in 3.x detecting "if" structure and ...
...
scanner3.py: bug in 3.x detecting "if" structure
Make scanner2.py look more like scanner3.py
verify.py: add weak-verify which tests Pytyon syntax, but not code
2016-08-31 04:07:42 -04:00
rocky
6f2cdc164d
Handle Python 2 vs 3 raise syntax change
...
raise_stmt ::= "raise" expression "," expression
becomes:
raise_stmt ::= "raise" expression from expression
raise expr, expr -> raise
2016-08-30 00:42:24 -04:00
rocky
4e6e38358d
3.x list comprehenions list_if_not, comp_ifnot bug
...
Saw only list_if_not bug, but might also be applicable
to comp_ifnot
2016-07-14 11:30:42 -04:00
rocky
7b7a9fa4cf
Python 3.4 assertion handling. Improve verify
...
3.4 has jump optimization like 3.5.
verify.py: show mismatch on verification mismatch
2016-07-14 05:20:30 -04:00
rocky
723ba1365f
"return None" -> "pass"
...
Python 3.4 classes have what looks like a return None, but this
is invalid syntax. So for now we'll remove all "return None"s.
There may be a "pass" in there instead.
2016-07-13 13:37:07 -04:00