You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Go over grammars..
* Reduce duplication * Remove unused grammar rules * Add grammar checking when parsers run as standalone
This commit is contained in:
@@ -21,3 +21,8 @@ class Python26Parser(Python2Parser):
|
||||
|
||||
class Python26ParserSingle(Python2Parser, PythonParserSingle):
|
||||
pass
|
||||
|
||||
if __name__ == '__main__':
|
||||
# Check grammar
|
||||
p = Python26Parser()
|
||||
p.checkGrammar()
|
||||
|
Reference in New Issue
Block a user