Commit Graph

114 Commits

Author SHA1 Message Date
rocky
d26a8163c0 Merge from 3.0 2024-07-15 10:22:42 -04:00
rocky
54aad6e4d6 Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7 2024-07-15 10:11:20 -04:00
rocky
d731d32c11 Simplify BREAK_LOOP detection...
by making more us of linestart. At least for now...
2024-07-14 14:45:25 -04:00
rocky
967a44c587 Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7 2024-07-11 18:37:37 -04:00
rocky
b0b67e9f34 Fix some 2.6 bytecode bugs
scanner26: disassemble interface has changed
make_function2: was missing ParserError2 import
2024-07-11 12:06:52 -04:00
rocky
4ddb1565aa Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7 2024-03-15 23:02:48 -04:00
rocky
bec88e4aaa Name phases "disassembly" and "tokenization" 2024-03-14 15:31:53 -04:00
rocky
c151085387 Merge hell 2024-03-13 21:44:41 -04:00
rocky
493694024d Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7 2024-03-13 21:44:34 -04:00
rocky
daf54d2740 2.6 scanner show -A headers now 2024-03-13 21:39:35 -04:00
rocky
5dd265021f Add --asm++ or -A option 2024-03-13 21:34:47 -04:00
rocky
9c5addc0f0 Python 2.5 compatability 2024-02-04 13:56:28 -05:00
rocky
aadc66fe4a Merge branch 'python-3.0-to-3.2' into python-2.4 2024-02-04 13:18:47 -05:00
rocky
803678e9b4 Track recent xdis changes 2023-08-26 14:39:42 -04:00
rocky
656a9aa290 Bugs in 2.x relative import '.' and 1.x bytecode 2022-05-14 17:46:48 -04:00
rocky
540f619745 Bugs with 1.0 bytecode and 2.x relative "." import 2022-05-14 17:37:12 -04:00
rocky
0170e39f5d Merge branch 'python-3.3-to-3.5' into python-2.4 2022-05-14 10:43:42 -04:00
rocky
b8856993d2 merge from master 2022-05-14 09:55:19 -04:00
rocky
223804ac1f semi-black scanner26.py 2022-05-14 09:51:50 -04:00
rocky
9aba1cc3af Bytecode 1.x fixes 2022-04-30 20:36:43 -04:00
rocky
eba0d37d0f Improve Python 1.x decompiling
Still has bugs, but is much better.
2022-04-30 05:54:22 -04:00
rocky
f35231a6f5 Correct bug in long literal replacement for 2.6-7 2022-04-28 17:28:09 -04:00
rocky
8e5faa933f Handle long 2.x bytecode literals more efficiently 2022-04-27 13:47:56 -04:00
rocky
fa62724f14 Handle BUILD_{LIST,SET} more efficiently 2022-04-27 10:06:30 -04:00
rocky
e5d82f7613 Merge branch 'python-3.3-to-3.5' into python-2.4 2022-04-25 08:05:28 -04:00
rocky
c6642f5899 Revise "ingest" docstring 2022-04-25 07:42:56 -04:00
rocky
7ef3284f17 Merge branch 'python-3.3-to-3.5' into python-2.4 2022-04-17 11:51:49 -04:00
rocky
c806ef59c6 Update scanner demo code 2022-04-17 11:41:19 -04:00
rocky
5b2db856ec merge conflicts 2022-04-17 11:35:12 -04:00
rocky
948ecf3123 Merge branch 'python-3.3-to-3.5' into python-2.4 2021-11-03 02:38:24 -04:00
rocky
f6f0e344d0 Python 3.6+ specialization 2021-11-03 02:23:19 -04:00
rocky
e87b2d6718 Merge branch 'python-3.3-to-3.5' into python-2.4 2021-11-03 02:06:04 -04:00
rocky
0742f0b83f Specialize for Python 3.3-3.5 2021-11-03 01:56:41 -04:00
rocky
2fbe61aa11 Merge branch 'python-3.3-to-3.5' into python-2.4 2021-11-03 01:46:03 -04:00
rocky
ed34bf9d4a use xdis.PYTHON3 not uncompyle.PYTHON3 2021-11-02 06:53:11 -04:00
rocky
8ac7a75372 Use tuples not floats in Python release comparison 2021-10-18 11:59:02 -04:00
rocky
e8e006bb8c More Python version comparison conversions 2021-10-16 11:33:03 -04:00
rocky
e8e7d2086d whileelse in 3.6 sometimes has come froms...
also remove extra "L. " in token printing
2020-04-04 10:12:12 -04:00
rocky
24afe072b7 LOAD_CONST -> LOAD_CODE where appropriate 2019-06-19 14:43:07 -04:00
rocky
1cd2d1e915 DRY scanner code more...
Expand 2.6 testing
2018-04-03 10:35:02 -04:00
rocky
fad43feb3d DRY instruction building code...
There is a little more that could be done with  self.offset2inst_index
2018-04-03 04:41:36 -04:00
rocky
f18ce71e91 Replace all_instrs with inst_matches...
which works on 3.6+. Still should write a pytest for this.
2018-03-29 21:23:26 -04:00
rocky
e23315b2e6 Fallout from more precise token attributes 2018-02-28 23:35:52 -05:00
rocky
296fcd89ce Add self.offset2inst_index and document more 2018-02-04 09:13:49 -05:00
rocky
b0d18cae6a Fix bug in 2.5- try/else inside ifelsestmt 2018-01-06 22:19:44 -05:00
rocky
15057bed1d Fix bugs in scanner.last_instr()...
And ave instruction stream self.insts like we do in Python 3 so we
can start simplifying code.
2017-12-15 20:34:34 -05:00
rocky
a7005f6a77 2.7 exec stmt grammar rule isolation/reduction 2017-12-02 09:23:18 -05:00
rocky
17f5b35b1d More grammar isolation 2017-11-26 16:34:10 -05:00
rocky
b7003914c9 localize 2 and 3 argument BUILD_SLICE...
Nontermninal name matches AST anme now. Add test.
2017-11-25 21:10:11 -05:00
rocky
dea17cd7f1 xdis _disassemble->disassemble 2017-11-06 00:38:22 -05:00