Commit Graph

142 Commits

Author SHA1 Message Date
rocky
c0d50c4d96 Improve Python3 class definition handling 2015-12-24 19:21:36 -05:00
rocky
d2406e9d57 One more place for API change 2015-12-24 11:50:08 -05:00
rocky
e3a5d487eb Show embeded timestamp of byte-decompiled file 2015-12-24 11:30:57 -05:00
rocky
484cd703bf Lint 2015-12-23 20:11:06 -05:00
rocky
0c45fcfab9 WIP: Python3 exceptions 2015-12-23 20:08:07 -05:00
rocky
d47415a677 Start Python3 class(superclass) handling 2015-12-23 15:42:52 -05:00
rocky
f630fe15fb parse2.py, pysource.py: add buildclass nonterminal to structure tree
better and make more similar to Python3
load.py: handle magic errors better
main.py: correct use when passing a .py instead of a .pyc better and a message
err when file not found.
pysource.py: fix up main docstring; code moved from main.py
2015-12-23 13:49:56 -05:00
rocky
46828cd769 Add fragmnet offsets for 'from x import..' 2015-12-23 07:34:18 -05:00
rocky
72acf4311f Propogate offsets in imports. Added a new %x format specifier. 2015-12-22 18:00:45 -05:00
rocky
35592b50ed Allow comments in grammar rules. Start working on Python3 class (not
finished). More test organization.
2015-12-22 11:44:04 -05:00
rocky
41cceb5931 Remove Python2 buitin "print" from Python3's grammr. Start class tests 2015-12-22 05:50:00 -05:00
rocky
217b1b6f54 main.py, pysource.py DRY deparse_code from main. Is better on showing
exception errrors such as when a pyc file is not found
uncompyle6: Hook in --grammar option to showing grammar.
rules. Default now does not show timestamp.
2015-12-22 05:15:00 -05:00
rocky
4f0fe90eef Add spark option to show grammer. Revise uncompyle options. Start to reorganize
tests more
2015-12-22 03:56:50 -05:00
rocky
d3d375d954 grammar 2015-12-21 21:58:33 -05:00
rocky
15e3b44d63 Add meat to CI tag 2015-12-21 21:53:20 -05:00
rocky
db58a63e73 Use travis badge for now 2015-12-21 21:39:46 -05:00
rocky
ce3c653b40 Make README.rst reflect current situation better 2015-12-21 21:36:35 -05:00
rocky
6a49cd2c69 Bug in for loop with try. Add more of 2.7's COME_FROM statements.
spark.py: add tracing reduce rules. main: reduce cutsines.
Start history
2015-12-21 21:08:08 -05:00
rocky
6b0bb124ea Start Python3 execption handling 2015-12-21 15:41:21 -05:00
rocky
d75083c9db Regularize test names. 2015-12-21 12:34:19 -05:00
rocky
1456f820f2 Start Python3 slices. Split off token routine. 2015-12-21 12:17:57 -05:00
rocky
5dc3af3238 Start slice and build list on Python3. Do sanity check on marshal load
of code.
2015-12-21 06:41:02 -05:00
rocky
9cdcdfd305 Part of a much needed cleanup. Move semantics routines into its own
directory. Move out lots of stuff from __init__ to their own files.
Add file loading tests. Document AST handling a tad more complete.
2015-12-20 23:03:35 -05:00
rocky
6910e1b1b4 Python 3 decompilation from Python2 2015-12-20 18:18:40 -05:00
rocky
21920b5852 First list comprehensions from Python3. More test makefile hacking 2015-12-20 17:16:05 -05:00
rocky
ba5a6e790b dissasemble_file output is needed for pytest 2015-12-20 12:18:13 -05:00
rocky
7880e0d7b1 Go over makefiles to make "make check" work. walker, deparser: use zip_longest 2015-12-20 12:07:49 -05:00
rocky
aa2fc0f5a5 3.4: correct picking up parameter names on oa function call 2015-12-19 20:53:33 -05:00
rocky
18ce905edf Python3 compatiblity for getting precidence. n_mkfunc needs to key off
of bytecode version, not running Python version.
2015-12-19 18:58:30 -05:00
rocky
0459b3cdc7 rSt-style linking 2015-12-19 17:54:37 -05:00
rocky
3b3d1c17ca Update what this is about 2015-12-19 17:52:04 -05:00
rocky
93ab1f0281 Python 3.4: MAKE_FUNCTION starts to work. 2015-12-19 11:17:17 -05:00
rocky
c0fcb5fc52 Docs 2015-12-19 03:14:48 -05:00
rocky
a75bd0bf97 Python 3 bytecode handles opcodes with varargs (better). Decompiling
assert works. Add more of the simple tests and their compiled bytecode.
2015-12-19 03:00:39 -05:00
rocky
f70641da5d disas.py: track load_module API change
opcode_23.py: make it more like opcode_27.py
2015-12-18 23:03:47 -05:00
rocky
0a49c7a15b verify.py: Don't try to verify bytecode against compiled code if
magics of running interpreter mismatch bytecode to be compared.
load_module() now returns the magic found in the code object file.
2015-12-18 22:04:50 -05:00
rocky
6bc425b45e marshal.py: Python2 marshal code shouldn't try to turn a code object
into a string. parse3.py: handle both keyword and positional function
calls. scanner34.py: Remove extra level of quoting in LOAD_CONST.
Keyward handling now works cross Python 2/3. Some other spelling and doc fixes.
2015-12-18 21:20:12 -05:00
rocky
347219a009 Python3 postional arguments. Clean up code more along the lines of uncompyle3. 2015-12-18 17:07:35 -05:00
rocky
e5f58e8ecb disas.py: Do better for finding/turning a .py file into a .pyc file
across supported versions of Python. Add for else list comprehension test
2015-12-18 08:47:30 -05:00
rocky
78847fe454 Restrict marshal.loads when magic is the same. This is more stringent than using the Python major/minor version 2015-12-17 22:34:13 -05:00
rocky
97f48f1322 Frank Ebersoll's grammar fix to make "assert isinstance(1, int)" work. 2015-12-17 21:41:47 -05:00
rocky
9d8f1cbf65 Remove 2.7 lib testfile pending further resolution 2015-12-17 21:03:20 -05:00
rocky
5b2f83cf62 correct makefile build targets 2015-12-17 20:58:17 -05:00
rocky
2fc2d6c699 Python 2.6 compatability via ericfrederich's patch. DRY version-checking code 2015-12-17 20:48:54 -05:00
rocky
a309a77ea7 Python3: remove "return None" at end of main for uncompyle. Fix up verify for Python3. First automated Python 3.4 tests via "makecheck-3.4" in test directory. 2015-12-17 18:53:30 -05:00
rocky
29f02edf79 Add spark grammar debugging. Start to comment grammer construct covered
by simple tests.
2015-12-17 12:44:40 -05:00
rocky
3604933a74 Python 3.4 correct grammar for some looping constructs 2015-12-17 10:30:01 -05:00
rocky
87a3c5d687 Python 3.4 if ifelse decompyling now works. 2015-12-17 08:10:43 -05:00
rocky
2dc8375ed0 Supoer multiple parsers, specifically for Python2 and Python3. In the
process some OO cleanup and some global variable hacks removed.
2015-12-16 22:08:29 -05:00
rocky
a362b47b15 Add LICENSE. Add demo programs and DRY code a little 2015-12-16 16:23:18 -05:00