rocky
8e5faa933f
Handle long 2.x bytecode literals more efficiently
2022-04-27 13:47:56 -04:00
rocky
203139eafa
Add tests, comment what's up with change..
...
and use isinstance()
2021-12-31 11:27:15 -05:00
rocky
96b1e435c2
Fixes #360
2021-06-15 22:42:55 -04:00
rocky
0f80c38530
Better doc string detection
...
A bug in 2.7 test_descr.py revealed a problem with the way we were
detecting docstrings.
__doc__ = DocDescr()
was getting confused with a docstring.
This program also reveals other bugs in 3.2+ but we'll deal with that
in another commit.
2020-07-19 20:31:50 -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
17d07eaf00
continuing xdis refactor aftermath...
...
Both 2.7 bytecode broken from the refactor have now been reinstated, but
two 3.5 and 3.6 bytecode have moved into the "todo" category.
2020-04-18 18:47:06 -04:00
rocky
4796fb9e70
"or" rule regularization + regressions from xdis
2020-04-16 23:45:39 -04:00
rocky
16a51961c3
Add tests based on recent runtests.sh failures...
...
These run quicker and are distilled to simple examples.
2020-02-01 20:32:23 -05:00
rocky
8c879c02de
Small logic correction in run-time test.
2019-12-09 04:09:44 -05:00
rocky
4926474efc
Add jump range check for 2.7 assert_expr_and
2019-12-08 21:37:45 -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
7609165967
Revise mixed expressions
2019-11-18 18:22:16 -05:00
rocky
ca7f483dbb
Better test coverage of operators (in 2.7 and 3.0)
2019-11-18 18:10:58 -05:00
rocky
e713169bdf
Administrivia: go over tests...
...
Some tests were deferred and are not now
update Python 2.7 standard library tests
2019-11-18 12:30:48 -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
3b3fc09b60
Reinstate more docstring tests
...
But 3.{6,7} are stil broken
2019-05-27 20:59:29 -04:00
rocky
47ed0795b2
3.x docsting escaping works differently?
2019-05-24 09:53:56 -04:00
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
2813e2212f
tidy "not" precedence.
2019-05-02 11:44:20 -04:00
rocky
293e7b0367
store_subscript precedence fix and...
...
Allow format specifier "%p" to indicate a nonterminal name,
like "%c" allows.
store_subscr -> store_subscript to match Python AST a little closer.
2019-05-02 06:43:53 -04:00
rocky
e6e60cb49d
3.6 Chained compare
2019-04-17 15:44:33 -04:00
rocky
701d2af54e
Improve Python 2.7 generator handling
2019-04-15 23:14:44 -04:00
rocky
59c77f103d
More self-checking run tests
2019-04-10 11:49:27 -04: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
rocky
e5f3d803a8
Start Python 1.4 decompilation ...
...
Tidy up test code for issue 162 and comments for some disassembly massaging.
2018-05-19 07:14:00 -04:00
rocky
fdf97a1cc0
Add if_not rule for Python 2.7
2018-05-01 03:10:46 -04:00
rocky
269f4f2e1b
2.6, 2.7 Parse if else inside list comprehension
...
Fixes #171
2018-04-28 20:44:09 -04:00
rocky
41a50b5e46
Handle if not else in lambdas...
...
Fixes #170
2018-04-25 12:57:09 -04:00
rocky
8734608929
Small doc typos
2018-04-09 01:36:42 -04:00
rocky
e568d68baa
Reinstate a test
2018-03-28 07:52:04 -04:00
rocky
ff50a7f37b
In 2.7: raise <expr>; expr can't be a "or"
2018-03-20 16:14:53 -04:00
rocky
7200d298a5
Back off unconditional_true test for now - Sigh
2018-03-02 10:06:38 -05:00
rocky
b552c413f9
Start us off with a 2.7 run test
2018-01-24 10:41:15 -05:00
rocky
cb27f244dc
Go over verification routines again
...
Add meager verify-run tests for those versions. More tests will follow
2018-01-24 06:20:38 -05:00