rocky
1b71cfef07
3.6 omit END_FINALLY sometimes
...
Fixes #182
2018-07-05 21:47:36 -04:00
rocky
41a50b5e46
Handle if not else in lambdas...
...
Fixes #170
2018-04-25 12:57:09 -04:00
rocky
0154c87d63
CALL_FUNCTION_EX specialization in 3.6
2018-04-23 18:47:30 -04:00
rocky
a18dc340ce
Start to narrow 3.7 FUNCTION_EX grammar
2018-04-23 15:40:04 -04:00
rocky
ef9ccc3a8c
Fix 3.7 aysnc def testing
2018-04-20 11:15:52 -04:00
rocky
0aa41058a6
customize "async for" on 3.6. and 3.7
2018-04-19 15:03:09 -04:00
rocky
27f67e6fca
Fix some 3.6/3.7 bugs
2018-04-19 10:00:40 -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
87b70cfd13
Plough forward on 3.7 CALL_FUNCTION_EX
2018-04-15 14:15:25 -04:00
rocky
9e652f3fc6
More 3.7 grammar rules...
...
largely adapted from 3.6
2018-04-13 14:24:20 -04:00
rocky
9fa7b9ea53
Forge on with 3.7
2018-04-13 13:31:47 -04:00
rocky
120412f5a8
Add Python 3.6 setcomp and another call bug
2018-04-01 07:09:24 -04:00
rocky
b54be24e14
3.6 argument parsing
2018-03-31 23:07:06 -04:00
rocky
535df1592e
Another 3.6 control-flow bug...
...
and add source to some previous bytecode tests
2018-03-31 19:28:35 -04:00
rocky
7d110f17bc
3.6 decompilation problems
2018-03-29 17:21:22 -04:00
rocky
df55ce3212
Isolate some 3.x dictcomp grammar rules
2018-03-22 13:34:39 -04:00
rocky
50e59a37c1
Python 2 "for" grammar rule isolation
2018-03-19 16:15:53 -04:00
rocky
5c8f93b735
Fix 3.6 try/except with return
2018-03-19 16:12:44 -04:00
rocky
88ef4baca8
Fix a 3.6 try/except-as bug
2018-03-19 11:10:37 -04:00
rocky
56b2e17e30
Adjust 3.6 "while" loop grammar
2018-03-19 06:01:39 -04:00
rocky
b9281c79be
Fix 3.6 list if "and" comprehension bug
2018-03-18 19:12:16 -04:00
rocky
dc1971f559
Prevent 3.6 call_kw deriving itself..
...
Was causing some calls to be parsed incorrectly
2018-03-04 16:30:22 -05:00
rocky
778f92b6f4
Fix a 3.6 CALL_FUNCTION_EX_KW problem..
...
and remove 3.6 customization from pysource.
2018-03-04 09:18:57 -05:00
rocky
afb90dd12e
3.6+ try/finally bugs
...
Another day another 3.6 bug fix attempted
2018-02-27 10:37:18 -05:00
rocky
c43c9a19aa
Move to GPL3 license
2018-02-27 06:40:36 -05:00
rocky
195075ac01
3.6 while-if-while bug
2018-02-26 01:27:00 -05:00
rocky
e431e49d77
Isolate Python 3.5 custom parse rules...
...
are isolated into parse35.py now and removed from parse3.py
This causes some code duplicated from parse3.py into parse3{5,6}.py
We will deal with that later.
2018-02-12 03:59:44 -05:00
rocky
7883e00b44
Correct 3.6 FUNCTION_EX handling, somewhat
...
Some Python 2.4 compatibility snuck in but I suppose that is not so bad
2018-01-08 23:20:22 -05:00
rocky
9cb99e3290
3.6 FUNCTION_EX_KW fixes
2017-12-15 19:18:27 -05:00
rocky
b736e0a0e2
Grammar rule for 3.6 with .. return
2017-12-15 08:25:34 -05:00
rocky
a3e61a710f
Towards handling CALL_FUNCTION_EX_KW...
...
more work is needed though
2017-12-14 23:12:37 -05:00
rocky
6a1e8295b1
Increase test coverage. Remove some epsilon reductionsa
2017-12-14 16:02:48 -05:00
rocky
acdefb4f70
NT return_stmt -> return to match AST
2017-12-14 11:03:15 -05:00
rocky
8e15246951
Add 3.6 withas rule
2017-12-14 09:50:06 -05:00
rocky
f82edae5a1
add_custom_rules -> customize_grammar_rules
2017-12-13 17:25:19 -05:00
rocky
36fbafa0f8
Bang on 3.6 CALL_FUNCTION(_VAR)_KW
2017-12-12 11:01:34 -05:00
rocky
0059f53196
Bang on BUILD_MAP_UNPACK_WITH_CALL a little...
...
more cases are needed still. And there's a bug in BUILD_TUPLE_UNPACK_WITH_CALL now
in adding the count twice.
2017-12-12 07:05:32 -05:00
rocky
41228a5ba9
DRY 3.{5,6} SETUP_WITH a little bit
2017-12-11 21:48:36 -05:00
rocky
b84c35acf5
DRY code; localize 3.{5,6} grammar rules..
...
helper.py, pysource: has code to flatten list used in n_list and n_build_tuple_unpack_with_call
parse3{5,6}.py: localize grammar rules with BEFORE_ASYNC_WITH
2017-12-11 21:26:58 -05:00
rocky
3705f6d096
Start to handle CALL_FUNCTION_EX more accurately
2017-12-11 08:24:27 -05:00
rocky
7d8c17cb93
grammar isolation and reduction
2017-12-07 12:27:22 -05:00
rocky
7b39002476
Sync NT joined_str and formmated_value with AST
2017-12-05 23:17:51 -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
6d0f72f13b
Fix bug in 2.6 tryelse get test_grammar working...
...
localize grammar rules
2017-12-02 01:35:43 -05:00
rocky
8b6ae46a1d
Isolate and reduce 3.x conditionals and lambda rules
2017-12-01 22:03:12 -05:00
rocky
43c3154a55
NT designatore -> store to match AST
2017-11-29 05:05:15 -05:00
rocky
fb695616a6
NT call_function -> call to match AST
2017-11-28 22:13:23 -05:00
rocky
dded92b85d
Narrow unused classdefdeco2 rules
2017-11-28 12:49:37 -05:00
rocky
84632bdc78
Forgot to update a call in last change
2017-11-23 16:44:07 -05:00