rocky
0e64111195
Extend 3.4: "while 1: if : continue" handling
2018-03-20 10:37:19 -04:00
rocky
4905cc6bb0
Note where 3.4's 05 test came from
2018-03-20 05:14:28 -04:00
rocky
f008b8f411
Two 3.4 fixes..
...
* LOAD_DEREF does not signal "nonlocal" variables
* Add rule for "if" with a "continue" and "return"
2018-03-20 05:07:19 -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
6ab711baab
More 3.6 lambda handling
2018-03-19 09:36:02 -04:00
rocky
9e05750537
Another 3.6 lambda parsing bug
2018-03-19 09:09:59 -04:00
rocky
5c662b334e
Handle 3.x "nonlocal" statement
2018-03-19 07:57:25 -04:00
rocky
56b2e17e30
Adjust 3.6 "while" loop grammar
2018-03-19 06:01:39 -04:00
rocky
94038151f4
Add Python 3.6 mklambda rule
2018-03-18 23:37:32 -04:00
rocky
b9281c79be
Fix 3.6 list if "and" comprehension bug
2018-03-18 19:12:16 -04:00
rocky
c03cdf1a49
Last 2.6 while1 bug...
...
before all of 2.6.9 stdlib parses without error.
2018-03-06 18:52:27 -05:00
rocky
01ad91b519
Another 2.6 try parse bug
2018-03-06 18:19:01 -05:00
rocky
ccd42077c1
Better 2.6 tryifelse detection
2018-03-06 17:23:08 -05:00
rocky
ca3f822c81
More 2.6 while-loop control flow parsing
2018-03-06 13:16:22 -05:00
rocky
8278c72a6f
Python 2.6 while1 if/and handling
2018-03-06 09:39:13 -05:00
rocky
5d24367ef6
Small changes...
...
pysource.py: Bug fix for relative imports.
scanner2.py: Remove a debug expression
2018-03-05 21:53:49 -05:00
rocky
01f2f6578b
Dictcomp with if for 2.7...
...
extend grammar in last commit to 2.7 which also has dictionary comprehensions
2018-03-05 08:37:09 -05:00
rocky
02b1554da3
grammar and semantics for dict comp with "if"
...
Fixes #162
2018-03-05 07:52:02 -05:00
rocky
fac5d31f34
Adjust that 2.2-2.6 "while" may not have COME_FROM
2018-03-05 00:21:54 -05:00
rocky
9e815d8d79
2.6 and before COME_FROM handling...
...
also, add in some of the test bytecode from the python-2.4 branch
2018-03-04 21:42:59 -05:00
rocky
35fcb1edf1
Picking out 3.3 function default values
2018-03-04 18:40:08 -05:00
rocky
ffbce9cb77
3.6 class signature problems...
...
This time getting the class name in when a "load_closure" is added.
2018-03-04 17:25:42 -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
a8260edded
3.6 function/class prototype fixes..
...
Had got the order backwards in: class Foo(a=B.c)
String defaults in default parameter tuples need to be quoted
2018-03-03 09:12:02 -05:00
rocky
7200d298a5
Back off unconditional_true test for now - Sigh
2018-03-02 10:06:38 -05:00
rocky
bb13988126
Instruction fixup broken 3.x make_func...
...
for handling default values
2018-03-02 08:03:51 -05:00
rocky
8d503682b3
Use get_inst and self.insts more..
...
needed more in 3.6 to handle EXTENDED_ARGS before JUMP_xxx
2018-03-02 07:15:23 -05:00
rocky
452d17a6c3
3.4 while1 bug fix
2018-03-01 18:56:08 -05:00
rocky
f7439f506a
Fix 3.6 MAKE_FUNCTION for kw params...
...
and remove duplicated attributies in pattr of MAKE_FUNCITON token.
2018-03-01 07:14:46 -05:00
rocky
1fe432585e
Keep pre-3.6 listcomp code patterns in 3.6
2018-02-28 16:22:33 -05:00
rocky
b128e4fde6
Fix 3.6+ nested list comprehensions
...
Modified "load_closure" rule and
changed semantic actions since LOAD_CLOSUREs are stored
inside a MAKE_TUPLE.
FIXME: Not sure if we have additional "if" clauses correct. Test and correct
2018-02-28 11:13:52 -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
5c2d0484e5
3.6 MAKE_FUNCTION workarounds
...
Still wrong, but points to diretions for improvements
2018-02-26 09:10:00 -05:00
rocky
31de0d2af5
3.6 keyword args bugs in CALL_FUNCTION_KW
2018-02-26 07:44:37 -05:00
rocky
195075ac01
3.6 while-if-while bug
2018-02-26 01:27:00 -05:00
rocky
df7cfa2d20
Add another 3.6 test for EXTENDED_ARGS
2018-02-25 21:46:42 -05:00
rocky
ee89b5decd
Fix 2.4/2.5 try/else detection...
...
in a hacky way
2018-02-21 04:17:08 -05:00
rocky
f4b7e54313
Refine 2.7 dead code test ..
...
in a hacky way. Will probalby have to expand this in the future or
better do dead code analysis
2018-02-19 07:06:04 -05:00
rocky
08c7966ef9
2.7 for .. try-else bug
2018-02-18 09:13:22 -05:00
rocky
230a38d537
Fix Python 3.5 CALL_FUNCTION_VAR handling
2018-02-12 03:07:03 -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
4cbba3d46e
2.7 control flow futzing.
...
Some overall cleanup. But again we need to attack all of this more head on.
Closes Issue #149
2018-02-04 14:20:11 -05:00
rocky
106a325ef1
Fix Python 2.7 try: try: else: bug
2018-01-29 08:47:53 -05:00
rocky
5039a71846
fixes 151
2018-01-29 01:05:22 -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
71e7120501
JUMP_BACK and CONTINUE need to be treated more similar...
...
fixes 148
2018-01-22 23:08:20 -05:00
rocky
8194595ec9
Handle 3.6+ EXTENDED_ARGs for POP_JUMP_IF... instructions
2018-01-19 16:56:21 -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