Add python 3.4 grammar checking

DRY grammar testing
This commit is contained in:
rocky
2016-07-27 18:31:56 -04:00
parent e8ed17967c
commit 04ae94ee9e
5 changed files with 58 additions and 69 deletions

View File

@@ -57,7 +57,7 @@ if __name__ == '__main__':
s = get_scanner(PYTHON_VERSION, IS_PYPY)
opcode_set = set(s.opc.opname).union(set(
"""JUMP_BACK CONTINUE RETURN_END_IF COME_FROM
LOAD_GENEXPR LOAD_ASSERT LOAD_SETCOMP LOAD_DICTCOMP
LOAD_GENEXPR LOAD_ASSERT LOAD_SETCOMP LOAD_DICTCOMP LOAD_CLASSNAME
LAMBDA_MARKER RETURN_LAST
""".split()))
remain_tokens = set(tokens) - opcode_set