rocky
230a38d537
Fix Python 3.5 CALL_FUNCTION_VAR handling
2018-02-12 03:07:03 -05:00
rocky
6d29ed9077
Python 3.5 CALL_FUNCTION_VAR bugs
2018-02-09 16:48:11 -05:00
rocky
bb45be2dc7
Start to handle 3.5+ BUILD_LIST_UNPACK in call ..
...
to implement multple star arguments
2018-02-09 03:41:13 -05:00
rocky
f7999d2754
Add custom 3.5 handling for f(*a, *b, *c)
2018-02-08 08:42:38 -05:00
rocky
ca2c06ca87
Small cleanups
2018-02-03 11:43:00 -05:00
rocky
be03b22d32
Clean up fragments code for "for"...
...
And make a little more precise.
tag "store" part of "for" in consts.
2018-02-03 11:12:12 -05:00
rocky
9dfd495bfa
Small changes
2018-02-01 17:46:07 -05:00
rocky
576ab98319
List comprehension fragment bugs in 3.4
2018-02-01 09:08:46 -05:00
rocky
555a1235b2
Add fragment rules for RAISE_VARARGS and ...
...
Fix a fragment offset-sorting bug
2018-02-01 00:43:46 -05:00
rocky
a753e2c08f
fragments gen_ast more like pysource gen_ast
...
Skip deparse test for now
2018-01-30 10:28:32 -05:00
rocky
0a12dfb422
Add uncompyle6 option to show fragments
2018-01-29 21:14:34 -05:00
rocky
bcf437deda
3.x bug in adding extra , in **kargs
2018-01-29 12:03:15 -05:00
rocky
a9df4e3a54
Fix 3.0 .. 3.2 kwargs bug
2018-01-29 09:40:38 -05:00
rocky
835124eba2
DRY fragments by using OO more effectively
...
Split grammar customization to its own file. It's quite large now.
2018-01-27 11:02:42 -05:00
rocky
4725624d46
More linestart hacking.
...
Not very successful though
2018-01-27 01:47:56 -05:00
rocky
5e13077fd2
Possibly linemap improvements
2018-01-26 01:56:41 -05:00
rocky
0d32ec028c
Add deparse_code_with_fragments_and_map and simplify
2018-01-24 04:23:14 -05:00
rocky
bd3359b486
linemap and merge fixes
2018-01-22 23:35:30 -05:00
rocky
1b60f5e63b
Fix Linemap bugs
2018-01-22 23:31:48 -05:00
rocky
cbce24d716
Forgot to add linemap file
2018-01-22 23:31:48 -05:00
rocky
9d0bb5e392
Record source-to-translation line mappings
2018-01-22 23:29:59 -05:00
rocky
b873e689db
2.7 compatibility
2018-01-20 22:15:53 -05:00
rocky
bd8563e212
Add missing linemap.py file
2018-01-20 22:04:07 -05:00
rocky
98f9a7d009
Add --weak-verify and --linemap options...
...
Fix bugs in --verify not finding tempfile; remove tempfile
on exit.
2018-01-20 21:55:02 -05:00
rocky
4dbcf0400d
Correct 3.6+ calls with kwargs
2018-01-19 06:38:19 -05:00
rocky
2126e4cf32
Fix bug in 3.5+ async stmt ..
...
and in verification status message
2018-01-19 03:15:08 -05:00
rocky
71a64299e8
Simplify remove slop in CALL_FUNCTION_VAR on 3.5
2018-01-11 10:13:42 -05:00
rocky
a4db92ce72
funcdefdeco -> function_def_deco ...
...
to match AST grammar more analogously
2018-01-11 01:44:34 -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
0692727605
Stronger while 1 testing...
...
Make instructions available in reduce tests.
Back off of a while test that was semantically different.
2018-01-08 21:54:28 -05:00
rocky
892be78927
correct 3.5 CALL_FUNCTION_VAR handling
...
Sigh, 3.6 changes this so this fix is just for this version
2018-01-08 12:24:00 -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
3b0eb017b6
Bang on Python 3.6 MAKE_FUNCTION
2017-12-15 07:35:58 -05:00
rocky
a3e61a710f
Towards handling CALL_FUNCTION_EX_KW...
...
more work is needed though
2017-12-14 23:12:37 -05:00
rocky
78d5d281a8
Handle 2.4- try/finally properly
2017-12-14 19:26:27 -05:00
rocky
acdefb4f70
NT return_stmt -> return to match AST
2017-12-14 11:03:15 -05:00
rocky
a464e41ad9
Comment better what's up
2017-12-14 08:40:21 -05:00
rocky
a1082ebae9
Start handling 3.6 CALL_FUNCTION_KW
2017-12-14 08:36:12 -05:00
rocky
4cd4ad22b6
NT passtmt -> pass to match AST
2017-12-14 05:31:17 -05:00
rocky
b544827192
NT: "forstmt" renamed to "for" to match AST
2017-12-12 12:33:27 -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
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
c5b8531ef1
Fix last-minute bug due to kwargs->kwargs1
2017-12-10 18:00:44 -05:00
rocky
ef08677287
Reinstate kwargs1...
...
was just missing the semantic action rule for it
2017-12-07 13:24:55 -05:00
rocky
a1b990a078
Back off pervasiveness of singleton reductions
2017-12-06 21:38:27 -05:00
rocky
3d277270a4
Partial fix for removing singleton expr reduction
2017-12-06 20:21:00 -05:00
rocky
a4e9410c07
Start to reduce singleton reductions
2017-12-06 12:14:42 -05:00