rocky
bd809dc08b
Another 3.x bug involving jumps
2016-06-19 17:47:43 -04:00
rocky
5c268ee2a6
2.7 and 3.x bug in dict comprehensions
2016-06-19 13:45:07 -04:00
rocky
f8ccb8065e
3.4 tryifelse bug
2016-06-19 11:15:36 -04:00
rocky
5d86a4e536
Python 3 except clause parsing bug
2016-06-19 10:30:39 -04:00
rocky
2c22e86562
Python 3.3 is more like 3.4 than we had thought?
2016-06-19 03:23:25 -04:00
rocky
8943167e96
Alight instructions
...
Merge recent changes with master
2016-06-19 03:01:10 -04:00
rocky
90e504e806
Merge branch 'master' into ast-format
2016-06-19 02:32:02 -04:00
rocky
10b95cd9a8
Fix * in multi-target assignment
2016-06-19 02:31:19 -04:00
rocky
a0834890fa
Merge branch 'master' into ast-format
2016-06-19 00:49:57 -04:00
rocky
d7b79c2b59
3.4 dictionary comprehension bug
...
Sync up fragment code with recent changesa
2016-06-19 00:49:22 -04:00
rocky
724faf9a3a
Go over grammars..
...
* Reduce duplication
* Remove unused grammar rules
* Add grammar checking when parsers run as standalone
2016-06-17 22:59:17 -04:00
rocky
70d4841a6a
Fix python 3 set comprehension and ...
...
Add a few set/list comprehension offsets for Python 3
2016-06-06 17:04:59 -04:00
rocky
8b1250dcc8
small changes
2016-06-06 15:34:57 -04:00
rocky
4f8714ff4c
include offset for starting listcomp
2016-06-06 10:10:19 -04:00
rocky
cf4fb3c252
Merge branch 'master' of github.com:rocky/python-uncompyle6 into ast-format
2016-06-03 13:45:16 -04:00
rocky
ebcb1d08f4
Limited support for Python 2.3
2016-06-03 10:20:52 -04:00
rocky
3da4c9ce77
Start custom grammar for 2.6 and ...
...
fix a python 2.6.9 deparse with lc if+and+not
2016-06-02 19:16:27 -04:00
rocky
167f5af5e6
Misc refactorings
2016-06-02 16:58:42 -04:00
rocky
e368ab282c
print AST children counts for internal nodes
2016-06-01 08:55:41 -04:00
rocky
b6e7f365c5
Remove the JUMP_ABSOLUTE in comp_for altogether
...
Supposition is this was added as a result of a bug in my code from
earlier.
If we find we need it, we'll add it back again.
2016-05-21 05:45:56 -04:00
rocky
09f6286bec
Fix 3.x generator bug...
...
found by Daniel Brandburn. See
af61622960
2016-05-21 05:09:27 -04:00
rocky
9462e33f48
Fix Python 3.x bugs
...
* class definitions made via closures
* Add "make check-short" to top-level
* parse3.py: Python 3.3 uses STORE_LOGALS
2016-05-17 04:00:54 -04:00
rocky
09bf364d89
Fix Python 3.x bug in function VAR and KW args
2016-05-16 20:41:22 -04:00
rocky
bdd7df6040
Python 2 loop scanner detection in Python 3
...
scanner*.py: Make scanner27 and scanner3 more aligned
Makefile: we can run py.test on Python 3.5
HISTORY.md: grammar changes
2016-05-16 13:40:55 -04:00
rocky
ebfe5e3ba8
Python3 mklambda bug
2016-05-15 21:16:53 -04:00
rocky
b5eaa9445d
Python 3 genexpr bug
2016-05-15 20:59:28 -04:00
rocky
6be6632e96
Bug in Python 3.x genexpr
2016-05-15 19:35:45 -04:00
rocky
2c121545f0
Fix bug in Python 3 lambda expression handling
...
Some other small cleanup changes
2016-05-15 18:14:22 -04:00
rocky
bb31629c35
pydisassemble disassemble without grammar mangling
...
Some other small cleanups as well
2016-05-15 13:55:21 -04:00
rocky
56dc270145
Fix verify bug in 3.2
2016-05-15 06:40:12 -04:00
rocky
4cba5a28ef
3.4 if/while bug
2016-05-15 05:37:44 -04:00
rocky
b9692c9b1f
DRY scanner34 and scanner35
...
handle 3.0..3.4 build maps as key/value pairs
2016-05-15 03:29:08 -04:00
rocky
5babde61c4
Misc changes
...
Back off of some validation tests for now.
2016-05-12 11:22:00 -04:00
rocky
6f6f1db576
Misc fixups/cleanups
...
* parse3.py Had botched if-for-else test by grammar addition
* semantics/*.py: Show errorstack in failed parse when -g (requires sparck 1.2.0)
* some optimization in scanner3
2016-05-12 09:27:25 -04:00
rocky
631d7be921
Redo make_function for *, arg
...
main(*, file='foo') and things like that now work
2016-05-11 20:34:20 -04:00
rocky
b134d08e91
add pos_arg ::= expr to make params of fns clear
2016-05-10 18:05:25 -04:00
rocky
8a66fd0be3
* call WIP
2016-05-09 20:23:54 -04:00
rocky
9ae45b363f
3.2 class bug
2016-05-09 20:11:25 -04:00
rocky
b287a305ea
3.2 WhileTrue grammar bug
2016-05-09 19:39:37 -04:00
rocky
d823dfb5d3
Python 3 "while True" bug
2016-05-09 14:44:34 -04:00
rocky
8b9e0eca42
Some grammar cleanup
2016-05-09 11:58:05 -04:00
rocky
41f9e9e53e
Track recent lc changes in fragment semantics
2016-05-09 06:57:13 -04:00
rocky
e63bcd54e9
Another Python 3 closure grammar bug
2016-05-09 06:21:57 -04:00
rocky
e37b197db9
Fix Python 3 list comprehansion closure bug
2016-05-09 05:03:49 -04:00
rocky
196495c40e
Python 3 DUP_TOP_TWO bug
2016-05-08 18:41:59 -04:00
rocky
dddb486d78
DRY parse{2,3} code
...
Add test for last bug.
2016-05-08 18:15:07 -04:00
rocky
ce2ae463c4
Fix another if/loop parse bug
2016-05-08 18:07:04 -04:00
rocky
400153ea53
Yet another Python 3.x COME_FROM grammar problem
2016-05-08 13:08:12 -04:00
rocky
a65a8bb68e
Fix 3.2 for/if loopback bug
...
problem was handling in Python 3.2
for ...
if ...
else:
....
jump for
come from if
jump for
In later Python 3's a "come from" is removed.
Also, start to DRY parser{,2,3} grammar rules.
2016-05-08 12:09:50 -04:00
rocky
406df297df
Python 3 build class parsing
2016-05-07 23:32:59 -04:00