rocky
ebb0342b38
WIP pypy3.6 handling
2019-10-28 13:20:51 -04:00
rocky
24afe072b7
LOAD_CONST -> LOAD_CODE where appropriate
2019-06-19 14:43:07 -04:00
rocky
bc49469704
delete_subscr -> delete_subscript ...
...
to better (but not exactly) match the Python AST
2019-05-04 19:43:00 -04:00
rocky
5c58a4816f
Fix 2.x delete statements expression confusion
2019-04-23 15:48:14 -04:00
rocky
9b550b9dda
PEP E225 with a nod to Deepcommit
2019-04-14 06:11:16 -04:00
Yiming Wang
5d99322078
Better assert and AssertionError determine for Python 2.7
2019-01-05 13:32:08 -05:00
rocky
de6dec6ecd
Control flow bits again
2018-11-11 14:11:23 -05:00
rocky
616e5c82f6
Reinstat expr32 and expr1024 rules...
...
to speed up handling long literal lists. See also issue #188
Update issue forms to simplfy via putting instructions as comments.
2018-09-19 20:14:42 -04:00
rocky
19ec52eb63
Change AST to SyntaxTree in many places
2018-07-15 12:37:50 -04:00
rocky
096563cf91
Fix Python 1.5- bug in handling unpack list
2018-06-04 10:49:20 -04:00
rocky
c481d97866
A more uniform way to track opcodes seen...
...
use a set rather than these boolean variables. Done in 3.x
only for now. May do more later..
2018-04-18 12:01:46 -04:00
rocky
9d807501af
Grammar reduction for 2.6/2.7,3.x
2018-03-27 17:02:03 -04:00
rocky
8b7d5d3270
Merge branch 'master' into grammar-cleanup
2018-03-25 20:57:51 -04:00
rocky
626f690a5a
More grammar specialization by instruction
2018-03-25 20:38:21 -04:00
rocky
39cef6a41b
More raise vs. assert hacky distinctions
2018-03-25 17:56:35 -04:00
rocky
116fbb33e0
Merge branch 'master' of github.com:rocky/python-uncompyle6
2018-03-25 17:36:46 -04:00
rocky
631940887f
Additional Python 2.x assert vs raise testing
2018-03-25 17:35:18 -04:00
rocky
7fb94176b1
Less ambigouus 2.x grammar rule for BUILD_MAP
2018-03-25 12:09:42 -04:00
rocky
0c3db340fa
2.7 bug confusing "or" with "if" and "assert"
2018-03-21 13:18:18 -04:00
rocky
50e59a37c1
Python 2 "for" grammar rule isolation
2018-03-19 16:15:53 -04:00
rocky
51dec051df
Slightly better assert detection
2018-03-08 08:31:50 -05:00
rocky
9f66694056
dictcomp_func -> dict_comp_func...
...
to match AST better. Also adds a correction in last commit,
including set_comp -> set_comp_expr where apprpriate
Note: can't use dict_comp as that was already used.
But dict_comp_func is matches AST better than dictcomp_func
2018-03-05 11:12:15 -05:00
rocky
5edcc7c2eb
Remove restriction that there are no more statements after a "return" statement
2018-01-28 00:13:09 -05:00
rocky
7db8001d54
Limit pypy exception customization to pypy
2018-01-07 11:20:01 -05:00
rocky
52f2b9341a
More Python 2/3 grammar restriction
2017-12-14 15:24:01 -05:00
rocky
6c552bec07
Python 2 grammar restricion to match recent Python 3
2017-12-14 14:54:40 -05:00
rocky
acdefb4f70
NT return_stmt -> return to match AST
2017-12-14 11:03:15 -05:00
rocky
63820c4300
Continue parse2/scanner2 refactor
2017-12-14 04:00:22 -05:00
rocky
94a18c1a95
Back off of previous refactor a little bit
2017-12-13 21:26:52 -05:00
rocky
303e134359
Simplify scanner2 so it relies less on custimize dict
2017-12-13 21:02:40 -05:00
rocky
aac793af09
Start parse2 customize_grammar_rule refactor
2017-12-13 18:56:38 -05:00
rocky
f82edae5a1
add_custom_rules -> customize_grammar_rules
2017-12-13 17:25:19 -05:00
rocky
84b4ac1c51
NT "_for" -> "for_iter" reduces confusion w/ "for"
2017-12-12 12:41:44 -05:00
rocky
7d8c17cb93
grammar isolation and reduction
2017-12-07 12:27:22 -05:00
rocky
7daf95fcb4
NT break_stmt, continue_stmt -> break, continue...
...
to match AST
2017-12-06 01:48:44 -05:00
rocky
f8d6998b22
NT continue_stmt -> continue to match AST
2017-12-06 01:45:08 -05:00
rocky
2d628acf60
Separate rules for set, tuple, dict from list...
...
Sync fragments.py with pysource
2017-12-05 00:13:17 -05:00
rocky
8dd953de48
Slight picayune correction
2017-12-04 10:20:25 -05:00
rocky
9506412aba
More tidiness...
...
Shorten/improve description of what's up with add_customize_rules
2017-12-04 10:14:13 -05:00
rocky
344d2d92c4
NT: load_attr -> attribute to match AST
2017-12-03 13:02:22 -05:00
rocky
5fe8303184
Two bugs and a refactor ..
...
1. parse2.py: try except in a loop with a (virtual) continue
treat CONTINUE like JUMP_ABSOLUTE which it is
2. in taking methods off of constants, a parenthesis needs to be added
Some refactoring of global code done
2017-12-03 10:46:22 -05:00
rocky
5b916567fe
NT try-middle -> except-handler to match AST
2017-12-03 06:30:33 -05:00
rocky
eafb32b9a0
NT trystmt -> try_except to match AST
2017-12-02 22:20:45 -05:00
rocky
5ae32de709
Add global statements even for read of globals
2017-12-02 19:13:11 -05:00
rocky
93949e8222
Small grammar isolation bugs
2017-12-02 10:57:32 -05:00
rocky
a7005f6a77
2.7 exec stmt grammar rule isolation/reduction
2017-12-02 09:23:18 -05:00
rocky
6d0f72f13b
Fix bug in 2.6 tryelse get test_grammar working...
...
localize grammar rules
2017-12-02 01:35:43 -05:00
rocky
dfdd5c6c1c
NT build_list -> list to match AST
2017-12-01 03:55:31 -05:00
rocky
01b5ed2304
NT mapexpr -> dict to match AST
2017-11-30 15:59:15 -05:00
rocky
bf5a6237d8
Isolate listcomp rule in 2.7
2017-11-30 10:30:08 -05:00