R. Bernstein
0fe8961418
Merge pull request #269 from rocky/if-elif-else-more
...
If elif else more
2019-07-01 09:52:11 -04:00
rocky
4c76931807
Update tests related to branch
2019-06-30 18:20:40 -04:00
rocky
32c7b8f23d
Add tests for x0ret's recent varrg fixes
2019-06-29 15:50:47 -04:00
rocky
999f1fb0f9
Mostly x0ret's while(1)/if fixes ..
...
plus a potential test
2019-06-29 07:01:45 -04:00
rocky
0dc19a8fdd
Correct 3.4 "yield from" semantic action bug
2019-06-29 04:59:03 -04:00
rocky
e2d7f01298
Handle 2-arg asserts in 3.6+ish
...
Changed files have also been reformatted via the blacken formatter
2019-06-18 22:09:16 -04:00
rocky
58c8fe5a66
Oops - forgot to add the test source
2019-06-11 16:09:04 -04:00
rocky
9ab086b207
Add more x0ret tests
2019-06-09 15:19:01 -04:00
rocky
86fd5dbf7a
3.3-3.4 pos kwargs ordering
2019-06-08 18:40:50 -04:00
rocky
117b4ff4f1
Add kwonly parsing.
...
* annotation parsing for kwonly args is missing.
* Start filling out runnable tests. More work is needed on tests.
* refresh incorrect bytecode_3.3_run/15_assert.pyc
2019-06-08 15:29:18 -04:00
x0ret
c7b20edba0
add annotations type test cases
2019-06-06 19:14:03 +04:30
rocky
af209dc142
Bug in 3.5+ generator detection...
...
Also bug in 3.5 code detection for async attribute
2019-06-05 19:08:21 -04:00
x0ret
39c12704a8
fix unicode docstring again, handling unicode string in py2, fix docstring indentation
2019-05-28 15:11:44 +04:30
rocky
3b3fc09b60
Reinstate more docstring tests
...
But 3.{6,7} are stil broken
2019-05-27 20:59:29 -04:00
rocky
f7697ccd7b
Some docstring bugs fixed, some remain...
...
I had broken escaping the tail quote by inadvertently switching from """
by default to '''.
Some additional tests have been added to 00_docstring.py for
this. However...
Unicode decoding is still broken. For now I've added errors="ignore" to
.decode("utf-8", ...) until a better fix is found. Sigh.
2019-05-27 18:01:08 -04:00
rocky
792ef5b5b8
Simplfy - TODO fix unicode in docstrings
2019-05-24 11:03:44 -04:00
rocky
cccf33573b
A runnable docstring test...
...
TODO: fix up the code! so this doesn't throw an assert error!
2019-05-24 02:29:23 -04:00
rocky
3abe8d11d3
3.7 handling of 4-level attribute import
...
Fixes #239
2019-05-14 12:09:38 -04:00
x0ret
3d732db3cc
fix chained compare parse error
2019-05-13 19:57:24 +04:30
rocky
8b5e0f49f8
Handle {{ }} escape, but when appropriate
2019-05-13 09:41:16 -04:00
x0ret
bf56fbeeec
enhance call_ex_kw(s) positional args handling
2019-05-12 13:11:31 +04:30
rocky
c03b039714
Small tweaks to last commit
2019-05-10 17:25:25 -04:00
rocky
e875b79a75
Fix 3.6. call_ex_kw semantic action
...
Was missing positional args parameter in template. Fix submited by @x0ret
Fixes #227
2019-05-09 09:27:10 -04:00
rocky
b57ca392a2
2.7 confusion around "and" vs comprehension "if"
...
Fixes #225
2019-05-08 16:27:41 -04:00
rocky
b05500dd49
More 3.6+ fstring bugs
2019-05-08 08:57:30 -04:00
rocky
8909fe8d37
Merge branch 'master' of github.com:rocky/python-uncompyle6
2019-05-08 06:04:11 -04:00
rocky
733a44e22f
Revise and hopefully improve 3.6+ fstring handling
2019-05-08 06:03:39 -04:00
rocky
f2f17740ee
2.7 if_expr_true restriction ...
...
condition_true -> if_expr_true
condition_lambda -> if_expr_lambda
These correspond to the Python AST names better.
2019-05-05 16:09:10 -04:00
rocky
393e5c9303
IfExp precidence handling in 2.6...
...
2.7 still has a bug
2019-05-05 09:48:20 -04:00
rocky
8e9ce0be31
3.7: if <expr> and not <expr> else <expr>
2019-05-04 22:14:07 -04:00
rocky
0007abf827
Fix 3.6+ format string interpolation
2019-05-03 19:00:25 -04:00
rocky
2813e2212f
tidy "not" precedence.
2019-05-02 11:44:20 -04:00
rocky
293e7b0367
store_subscript precedence fix and...
...
Allow format specifier "%p" to indicate a nonterminal name,
like "%c" allows.
store_subscr -> store_subscript to match Python AST a little closer.
2019-05-02 06:43:53 -04:00
rocky
257bbc892f
Better 3.6+ format specification handling
2019-05-01 09:17:35 -04:00
rocky
f54cf20d9d
Hacky handling of 3.6 format string 'X'.
2019-04-30 20:06:36 -04:00
rocky
03d23328eb
3.6 constant tuples in call
2019-04-30 16:25:48 -04:00
rocky
efa964f7c9
del handling in 3.0 and add tests
2019-04-23 19:12:12 -04:00
rocky
3730946a1a
Add semantic rule for 3.x "conditionalnot"
2019-04-22 21:18:17 -04:00
rocky
f1b69a8a28
Add rule for 3.x comp_for
2019-04-22 18:42:21 -04:00
rocky
0de99e5d44
Scale back "try" vs. "tryelse" reduction test on 3.6+
2019-04-18 16:45:44 -04:00
rocky
52af2ba32a
3.6+ lambda parameter handling
2019-04-18 14:21:52 -04:00
rocky
e6e60cb49d
3.6 Chained compare
2019-04-17 15:44:33 -04:00
rocky
8a4189bc0e
Python 2.6-2.7ish generator handling
2019-04-15 20:32:15 -04:00
rocky
0c4ab699b5
3.4+ while handling with returns ...
...
these while loops don't have a JUMP_BACK in them
2019-04-15 12:03:11 -04:00
rocky
9b550b9dda
PEP E225 with a nod to Deepcommit
2019-04-14 06:11:16 -04:00
rocky
59c77f103d
More self-checking run tests
2019-04-10 11:49:27 -04:00
rocky
49e354375e
More run tests
2019-04-10 11:05:46 -04:00
rocky
f3d86e0708
Bang on Python 3.8
2019-04-10 07:22:43 -04:00
rocky
4a354269bc
Adjust 3.7 chained compare for adjusted grammar
...
Add test for last change
2019-03-23 17:06:50 -04:00
rocky
dcad6cf6ce
Fix if return boundary in 3.6+
...
Fixes #209
2019-03-10 05:59:15 -04:00