You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
grammar tree -> parse tree
This commit is contained in:
@@ -100,7 +100,7 @@ def align_deparse_code(version, co, out=sys.stderr, showasm=False, showast=False
|
||||
debug_parser['reduce'] = showgrammar
|
||||
debug_parser['errorstack'] = True
|
||||
|
||||
# Build a grammar tree from tokenized and massaged disassembly.
|
||||
# Build a parse tree from tokenized and massaged disassembly.
|
||||
deparsed = AligningWalker(version, scanner, out, showast=showast,
|
||||
debug_parser=debug_parser, compile_mode=compile_mode,
|
||||
is_pypy = is_pypy)
|
||||
@@ -125,7 +125,7 @@ def align_deparse_code(version, co, out=sys.stderr, showasm=False, showast=False
|
||||
except:
|
||||
pass
|
||||
|
||||
# What we've been waiting for: Generate Python source from the grammar tree!
|
||||
# What we've been waiting for: Generate Python source from the parse tree!
|
||||
deparsed.gen_source(deparsed.ast, co.co_name, customize)
|
||||
|
||||
for g in deparsed.mod_globs:
|
||||
|
Reference in New Issue
Block a user