rocky
52a35e6c62
Fix Python 2.4-2.6 comp_for text generation...
...
Makefile: tolerate pypy 5.3.x
Rest: fix semantic action rule for comp_for and test this
2016-09-03 00:30:48 -04:00
rocky
f1bb40f485
Python 2.6- bug: RETURN_ENDIF, POP_TOP ..
...
POP_TOP should be excluded as a potentional statement beginning
2016-09-02 21:08:44 -04:00
rocky
136f935e26
Fix Python 3.x named param and kwargs bug
2016-09-02 06:30:39 -04:00
rocky
f5eeed6759
2.6- bug: while..and: stmt - on one line
...
If 2.6 or before POP_BLOCK after a JUMP_IF_FALSE does not
constitute a new statement. The POP_BLOCK is really part
of the JUMP_IF_FALSE. In Python 2.7+ it's a single op.
2016-09-01 20:44:17 -04:00
rocky
1d567d5d9a
Handle Python 2.6 and below "except <cond>, <var>"
2016-09-01 02:20:07 -04:00
rocky
c9f364df9f
Python 3.x bug in handling var number of args
2016-08-31 06:20:29 -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
da458bdce7
Correct PYPY bit logic in previous commit
2016-08-27 20:19:12 -04:00
rocky
f47aecae9f
PYPY bugs and inspired changes ...
...
verify.py: Show co_flags when different.
pysource.py: PYPY also generates normal tryfinallystmt code
test_pyenvlib.py: allow pypy-5.3.1
2016-08-27 19:32:42 -04:00
rocky
ddc5460030
Start to handle Python 3.1 bytecode
2016-08-26 20:50:08 -04:00
rocky
1087613a27
Handle 3.6 Format String conversions !r, !s, !a
2016-08-25 07:26:01 -04:00
rocky
31413be7a1
Python 2.2 doesn't have opcode LIST_APPEND
2016-08-16 12:45:43 -04:00
rocky
2e3e6658ee
Small pypy LOOKUP_METHOD cleanups
2016-08-16 06:09:10 -04:00
R. Bernstein
85c562cb36
Merge pull request #49 from moagstar/master
...
Fixed a bug with FORMAT_VALUE with sub expressions.
2016-08-16 05:33:09 -04:00
rocky
a65443ee02
Fix pypy semantic action bug in CALL_METHOD
2016-08-14 22:59:34 -04:00
rocky
0958dc889d
Back off of 3.6 testing for now
2016-08-13 23:33:23 -04:00
rocky
33a0c75b69
Merge branch 'master' of github.com:rocky/python-uncompyle6
2016-08-13 20:26:52 -04:00
rocky
7ccbd419c6
Correct SET_LINENO handling in Python 2.2
...
Add more 2.2 tests
2016-08-13 20:25:19 -04:00
rocky
a45ee15cf2
I said - we test 2.2 now.
2016-08-13 09:14:33 -04:00
rocky
fb5ad76c4e
Include Python 2.2 in testing
2016-08-13 09:07:15 -04:00
rocky
d8598f61e4
Start handling Python 2.2 bytecode and...
...
Fix some bugs in Python 2.3-2.5 bytecode handling
2016-08-13 07:16:50 -04:00
DanielBradburn
5d27832d6f
resolve merge conflicts from pull request
2016-08-10 08:20:51 +02:00
rocky
c77e9cdaf8
Add Python 3.6 formatted_str test
2016-08-01 09:47:45 -04:00
rocky
65a16327ce
Moagstar's 3.6 wordcode + formattedValue rules
2016-08-01 03:16:26 -04:00
rocky
3ef0325cb8
Small changes
2016-07-29 19:54:16 -04:00
rocky
3a6f9d8f24
Fix 3.5 misclassifying RETURN_VALUE
...
We use location of SETUP_EXCEPT instructions to disambiguate.
2016-07-29 08:56:23 -04:00
Daniel Bradburn
d14865c1be
Starting adding python 3.6 support to uncompyle
2016-07-28 09:07:12 +02:00
rocky
152935ab26
while1 bug applied to Python 2.3 and 2.4
2016-07-28 01:23:29 -04:00
rocky
5c9c0228ee
PyPy 3.2 bug confusing RETURN_END_IF for except
...
Also fix a instruction formatting bug
2016-07-28 00:41:40 -04:00
rocky
5ffd9b2be7
2.6 and 2.7 while1 grammar rule
...
Fixes issue #40
2016-07-27 13:19:42 -04:00
rocky
affc504418
Get ready for release 2.7.1
2016-07-26 17:13:10 -04:00
rocky
ecbbc7dfea
Custom PyPy rules for tryfinallysmt, assign{2,3}
2016-07-26 16:49:14 -04:00
rocky
6c5bd6289f
More PyPy grammar rules
...
* assert one and two-arg form
* trystmt
Simplify adding multiple grammar rules
2016-07-26 10:21:12 -04:00
rocky
04cc80b0d6
PyPy BUILD_MAP_n. Reinstate bytecode tests
2016-07-25 21:53:56 -04:00
rocky
281f429223
Handle PyPy BUILD_MAP_0 where actual kw_args > 0
2016-07-25 17:50:19 -04:00
rocky
8cfecff9c4
Clean up PyPy load_attr grammar rules
2016-07-25 16:05:08 -04:00
rocky
2509d212e5
Start checking PyPy bytecodes
2016-07-25 13:35:02 -04:00
rocky
96b83c3d85
Add pypy scanners
2016-07-25 13:29:03 -04:00
rocky
a3e10db8dc
Handle PyPy CALL_METHOD op more correctly
...
Start testing pypy2.7 and 3.2 bytecodes
2016-07-25 13:05:54 -04:00
rocky
476eb50868
Handle PyPy JUMP_IF_NOT_DEBUG
...
Update README.rst to note PyPY and reorganize a little
2016-07-25 09:18:03 -04:00
rocky
aed4d23c34
More PyPy LOOKUP_METHOD rules
2016-07-24 20:59:44 -04:00
rocky
1c50e34c30
PyPy support
...
* Use proper PYPY 32 opcodes
* handle opcodes LOOKUP_METHOD and CALL_METHOD
* Administrative stuff for PyPy
2016-07-24 18:54:51 -04:00
rocky
808e468e5e
add-test: Make sure PyPy bytecode is separated
2016-07-24 10:32:35 -04:00
rocky
936b213cec
Merge branch 'pypy'
...
Conflicts:
test/bytecode_2.7/05_for_try_except.pyc
uncompyle6/scanners/scanner2.py
2016-07-24 04:27:17 -04:00
rocky
21683719e1
Start supporting PyPy 3.2
...
Add some PyPy 2.7 and PyPy 3.2 bytecode files
2016-07-24 04:17:54 -04:00
rocky
ca9888ace4
Another 2.7 'continue' detection bug
2016-07-23 17:44:42 -04:00
rocky
070b7dab7b
Another 2.7 'continue' detection bug
2016-07-23 17:42:42 -04:00
rocky
f6f3ad362b
2.7: Detect "continue" inside except
...
Fixes issue #38 .
This is a bit hacky. We need a more general "continue" detection.
2016-07-23 11:02:01 -04:00
rocky
21377f3b43
Merge branch 'master' into pypy
...
Conflicts:
uncompyle6/scanners/scanner2.py
2016-07-23 10:57:58 -04:00