Fix pytest grammar test failure

dict and set comprehensions are only in 2.7+
This commit is contained in:
rocky
2016-09-22 01:32:00 -04:00
parent 0e9ebca1a5
commit d271e886d9
5 changed files with 12 additions and 5 deletions

View File

@@ -47,8 +47,13 @@ class Python3Parser(PythonParser):
jb_or_c ::= JUMP_BACK
jb_or_c ::= CONTINUE
stmt ::= setcomp_func
setcomp_func ::= BUILD_SET_0 LOAD_FAST FOR_ITER designator comp_iter
JUMP_BACK RETURN_VALUE RETURN_LAST
comp_body ::= dict_comp_body
comp_body ::= set_comp_body
dict_comp_body ::= expr expr MAP_ADD
set_comp_body ::= expr SET_ADD