More spark-parser 2.7.0 compatabilithy changes

This commit is contained in:
rocky
2017-10-10 15:11:08 -04:00
parent 1392b18bd7
commit adc9b99106
17 changed files with 26 additions and 27 deletions

View File

@@ -129,7 +129,7 @@ class Python27ParserSingle(Python27Parser, PythonParserSingle):
if __name__ == '__main__':
# Check grammar
p = Python27Parser()
p.checkGrammar()
p.check_grammar()
from uncompyle6 import PYTHON_VERSION, IS_PYPY
if PYTHON_VERSION == 2.7:
lhs, rhs, tokens, right_recursive = p.check_sets()
@@ -148,4 +148,4 @@ if __name__ == '__main__':
for t in remain_tokens])
remain_tokens = set(remain_tokens) - opcode_set
print(remain_tokens)
# p.dumpGrammar()
# p.dump_grammar()