grammar tree -> parse tree

This commit is contained in:
rocky
2018-02-22 14:34:42 -05:00
parent 09efb24a3e
commit a2b6ebc669
8 changed files with 15 additions and 14 deletions

View File

@@ -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: