rocky
f331deb864
2nd attempt to get check_grammar working on 3.x
2018-06-22 21:27:46 -04:00
rocky
1350f4c899
Some bugs...
...
Python 3 compiling Python 2 tolerance. Fixes issue #180 .
pytest test_grammar.py and validate.py fixes for 3.6 testing
2018-06-22 21:06:54 -04:00
rocky
98cd06d6e0
Remove a use of deparse_code.
2018-06-19 04:08:20 -04:00
rocky
201e5b18b1
Administrivia: Remove six dependency..
...
add version of hypothesis known to work
2018-06-12 14:44:08 -04:00
rocky
ac2bbfc65a
Disable hypothesis on 2.6.9
2018-06-12 14:34:54 -04:00
rocky
ab5303f504
Administrivia
2018-04-16 13:06:16 -04:00
rocky
6c6d62edb8
python 2.6 grammar test tweak
2018-04-16 13:00:30 -04:00
rocky
245deb0931
Get ready for release 3.8.1 ...
...
and more 3.7 grammar customization
2018-04-16 12:53:35 -04:00
rocky
3f26589bf1
More testing
2018-04-04 22:43:19 -04:00
rocky
1cd2d1e915
DRY scanner code more...
...
Expand 2.6 testing
2018-04-03 10:35:02 -04:00
rocky
fad43feb3d
DRY instruction building code...
...
There is a little more that could be done with self.offset2inst_index
2018-04-03 04:41:36 -04:00
rocky
bf0f5715a3
Adjust grammar-checking test
2018-03-27 19:47:08 -04:00
rocky
d2c8e4e12c
Adjust test_grammar for recent changes
2018-03-25 20:52:28 -04:00
rocky
0d327ab0ce
Fix bug introduced in last commit
2018-03-24 06:29:35 -04:00
rocky
8d1c454376
small test tweak..
...
Allow it to run not under pytest
2018-03-01 17:23:58 -05:00
rocky
2edc757b6f
more deparse_code -> code_deparse API additions
2018-03-01 16:55:45 -05:00
rocky
e23315b2e6
Fallout from more precise token attributes
2018-02-28 23:35:52 -05:00
rocky
413df51dfa
Token.format(), shows CONST values better...
...
We were not showing the proper value for None, or False.
Start a unit test for Token().
I think this cleans the Token class up a little more.
More work is needed for MAKE_FUNCTION...
Note: Some debug stuff is commented out in make_funciton.py for upcoming work.
2018-02-28 22:05:12 -05:00
rocky
98394d18bb
pytest adjust: 2.7 should have be unchanged
2018-02-25 21:31:30 -05:00
rocky
493835b8cd
bild_lines API changed. Adjust test for change
2018-02-25 21:27:09 -05:00
rocky
083ae5f3fd
Add deparsed_find() used by the trepan debuggers
2018-02-15 10:42:00 -05:00
rocky
296fcd89ce
Add self.offset2inst_index and document more
2018-02-04 09:13:49 -05:00
rocky
576ab98319
List comprehension fragment bugs in 3.4
2018-02-01 09:08: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
0d32ec028c
Add deparse_code_with_fragments_and_map and simplify
2018-01-24 04:23:14 -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
f59174575e
Fix 3.5+ bug in if's with pass bodies
...
Fixes #104 in a somewhat hacky way.
2018-01-08 10:21:53 -05:00
rocky
c2ccff4e38
Change disassembly to make offsets in COME_FROMs
2018-01-06 22:26:49 -05:00
rocky
2f228eeaef
Update pytest test_fjt.py for self.insts
2017-12-15 20:46:22 -05:00
rocky
849691e087
Make grammar check work again..
...
Add the known unused rules in LHS to include those things
we recently added custom rules for
2017-12-14 16:36:45 -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
7d8c17cb93
grammar isolation and reduction
2017-12-07 12:27:22 -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
dfdd5c6c1c
NT build_list -> list to match AST
2017-12-01 03:55:31 -05:00
rocky
0744a549dd
Modify test_grammar for last change
2017-11-30 17:17:44 -05:00
rocky
bf5a6237d8
Isolate listcomp rule in 2.7
2017-11-30 10:30:08 -05:00
rocky
c4bfe38ee0
Reduce 3.x rules, esp. listcomp
2017-11-29 19:03:11 -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
8454264cfc
One more genexpr -> generator_exp
2017-11-28 18:00:42 -05:00
rocky
c241b12308
Grammar isolation fixes
2017-11-27 05:16:08 -05:00
rocky
a5e3d01dd3
Work around grammar remove rule bug...
...
And reinstate source to a current 3.3 bug (which we don't detect).
But at least it is noted for future work.
2017-11-26 08:07:00 -05:00
rocky
af38064a1b
remove unpack_list rule and ...
...
tidy things a bit more
2017-11-25 00:32:13 -05:00
rocky
f7ff4c2d41
Grammar cleanup: import_as_cont -> import_as
2017-11-18 10:26:57 -05:00
rocky
0c0a534a48
Track spark_parser changes
2017-11-18 09:49:14 -05:00
rocky
7beac3f646
Remove parts of erroneous 2.7 test for now
2017-11-06 12:56:50 -05:00
rocky
6b6755d599
Fix 3.{3,4} pytest. Remove dup find_jump_targets
2017-11-06 12:27:43 -05:00
rocky
9dd881fae1
Start allowing node names in template engine
...
These are now used to assert we have the right node type.
Simplify import_from
2017-10-13 11:16:58 -04:00
rocky
adc9b99106
More spark-parser 2.7.0 compatabilithy changes
2017-10-10 15:11:08 -04:00