]> granicus.if.org Git - python/commit
add ExampleASTVisitor:
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 10 Feb 2000 00:47:08 +0000 (00:47 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 10 Feb 2000 00:47:08 +0000 (00:47 +0000)
commit5e0ce53e0ed0785535ca8fe56dfaa283e48062ca
treea521b4f7e454163552e238e2391b43d99de3bb93
parent69926eaee050674b12c55ca6f476f1d1dc5b7db3
add ExampleASTVisitor:
* prints out examples of nodes that are handled by visitor.  simply a
  development convenience

remove NestedCodeGenerator -- it was bogus after all
replace with generateFunctionCode, a method to call to generate code
  for a function instead of a top-level module

fix impl of visitDiscard (most pop stack)
emit lineno for pass

handle the following new node types: Import, From, Getattr, Subscript,
Slice, AssAttr, AssTuple, Mod, Not, And, Or, List

LocalNameFinder: remove names declared as globals for locals

PythonVMCode: pass arg names to constructor, force varnames to contain
them all (even if they aren't referenced)

add -q option on command line to disable stdout
Lib/compiler/pycodegen.py
Tools/compiler/compiler/pycodegen.py