rocky
9d150e0707
Update copyright
2024-07-12 12:10:31 -04:00
rocky
156188f8bb
withasstmt -> with_as
...
This matches Python's AST naamae better. Some linting and
sorting of dictionary keys done as well.
2024-03-08 04:10:33 -05:00
rocky
c0957d956f
Simpilfy grammar via ending_return
2023-08-13 07:50:13 -04:00
rocky
20af515dda
Handle comprehensions inside a lambda
2023-08-11 12:13:46 -04:00
rocky
ddeb5af6d6
compare_chained2 _> compare_chained_right
2023-07-29 12:09:25 -04:00
rocky
843e3585e2
chained-compare1 -> chained-compare-middle
2023-07-29 12:01:14 -04:00
rocky
e8d4d383c6
pycharm lint, isort & black
2022-12-01 17:36:00 -05:00
rocky
9f1514a2dd
Update copyrights
2022-11-27 05:18:45 -05:00
James Hilliard
ab508e1ec9
Fix ImportError: cannot import name PYTHON_VERSION
2022-11-05 17:17:24 -04:00
rocky
976705fc0a
Add: Python 2.7: ifelsestmtc
2022-10-10 04:30:48 +02:00
rocky
ad1fa98870
Detect Python 2.7 weird "for-block" bytecode
...
It has an unnecessary JUMP_ABSOLUTE to a JUMP_LOOP
Fixes #408
2022-09-27 08:58:35 -04:00
rocky
cc4ea47d24
Use ifelsetmt reduction rule on 2.7
2022-07-04 07:56:44 -04:00
rocky
deea74b6a8
ret_expr -> return_expr
...
This matches Python's AST a little more closely
2022-01-03 21:56:07 -05:00
rocky
5079164db2
Add reduce check for aug_assign1
2020-07-07 09:54:57 -04:00
rocky
54932d36fa
Small tweaks...
...
add-test.py: wasn't handling optimize correctly. Handle python version better
parse27.py: dyslexia
01_for_else_try_else.py: bug in found in 1.4 anydbm.py which we will
address soon
2020-07-06 18:19:06 -04:00
rocky
084e183577
Add reduce check for 2.7 except_handler range
2020-07-05 22:18:07 -04:00
rocky
357f28dd89
Add "comp_if_not" for 2.6-
2020-06-27 11:16:47 -04:00
rocky
2fd61b1016
Add 3.7ish "or" check
2020-04-16 16:35:27 -04:00
rocky
a616e1e1c7
"withstmt" -> "with" and fix async for
2020-04-01 09:48:34 -04:00
rocky
35127452f5
Bug found by 2.4 sre_parse.py testing
2020-02-15 08:06:58 -05:00
rocky
8ac35ad8ce
Need to back off ifelsetesting on 2.7...
...
until we can more fully untangle if stmts in loops.
Current tests break urllib2.pyc and cgi.pyc
2020-02-09 09:01:32 -05:00
rocky
cb35ad906c
One more if_exp use (ret_cond)
2020-02-07 16:34:48 -05:00
rocky
278af38df6
conditional -> if_exp ...
...
to match Python IfExp AST
2020-02-07 16:17:47 -05:00
rocky
451b18ee57
2.7 tryelse rule check disambiguation.
2020-02-01 04:05:50 -05:00
rocky
be022b3416
Start ifelsestmt reduce checks in Python 2.7
2020-01-31 13:58:06 -05:00
rocky
6466d30e2e
Adjust "ifelsestmt" rule
...
Fixes #305
2020-01-30 19:45:32 -05:00
rocky
c65e5cde70
One more use of except_handler_else
2020-01-07 12:25:00 -05:00
rocky
9a77dfaf95
Use copysign() in 2.6 nuke -0.0 test if < 2.6
2020-01-07 04:39:34 -05:00
rocky
8e2c290e96
Disambiguate 2.7 "try" and "try/else"
...
will expand to other 2.x versions later
2020-01-06 18:29:10 -05:00
rocky
bc7d7ddf12
Narrow what's excepted for iflastsmtl...
...
Disallow "if" jump to jump inside body of "then".
2019-12-14 17:23:37 -05:00
rocky
cc856e2b95
Refine 2.7 control flow reduction tests...
...
for "iflastsmtl" and "and"
2019-11-18 11:34:06 -05:00
rocky
d696443eb2
More 2.7 reduction checks for conditionals:
...
Specficially for "and" and "laststmtl"
2019-11-18 08:36:28 -05:00
rocky
6659fffc0d
Two Bugs ...
...
2.7: more stringent comparison and comp_if testing
2.6-2.7: fix botched dict constant translation
2019-11-18 06:49:36 -05:00
rocky
f1496cad4d
3.0 return_if_stmt and...
...
* Some grammar cleanup
* add more grammar debugging
2019-11-16 17:32:48 -05:00
rocky
09cc0d775a
Pypy 3.3 tolerance and ...
...
Remove some duplicate grammar rules
2019-11-10 13:34:51 -05:00
rocky
f8bfde4a8e
Get ready for release 3.4.0
2019-08-24 07:58:42 -04:00
rocky
fd580f3c60
Python 2.6 generator rule with 'and' conditional
...
Fixes #283 .
2019-08-05 10:36:08 -04:00
rocky
e26c7407a0
Small changes to document some of the complexity.
2019-06-23 20:00:00 -04:00
x0ret
e96498eaf0
Adjust ifelsestmtr grammer
2019-06-24 01:28:33 +04:30
rocky
b57ca392a2
2.7 confusion around "and" vs comprehension "if"
...
Fixes #225
2019-05-08 16:27:41 -04:00
rocky
f2f17740ee
2.7 if_expr_true restriction ...
...
condition_true -> if_expr_true
condition_lambda -> if_expr_lambda
These correspond to the Python AST names better.
2019-05-05 16:09:10 -04:00
rocky
701d2af54e
Improve Python 2.7 generator handling
2019-04-15 23:14:44 -04:00
rocky
8a4189bc0e
Python 2.6-2.7ish generator handling
2019-04-15 20:32:15 -04:00
rocky
bfceeac6c8
2.7 can have two JUMP_BACKs at the end of a while loop
...
Fixes #215
2019-01-27 21:41:17 -05:00
rocky
df105fbfb2
Fixed one thing in Python 2.7 and break another.
...
We'll go with this until we get to a more serious refactoring.
2019-01-05 16:38:07 -05:00
Yiming Wang
fbf51a0ae3
Fix when offset like 47_0
2019-01-05 13:33:31 -05:00
Yiming Wang
5d99322078
Better assert and AssertionError determine for Python 2.7
2019-01-05 13:32:08 -05:00
rocky
1a70f75ffc
Pypy 2.7 fixes
...
* pypy doesn't seem to grok sys.stdout.flush() sometimes?
* pypy has extra come_froms for return_if_stmt
2019-01-05 13:28:29 -05:00
rocky
fe9beb2fd1
Use raw string in regexp with "\d"...
...
Bump python versions used in testing
2018-12-26 19:06:21 -05:00
rocky
f0176add7a
More bugs - note and disable tests for them
2018-06-04 15:29:04 -04:00