cpython/Tools/compiler
Jeremy Hylton 3e0055f8c6 Merge ast-branch to head
This change implements a new bytecode compiler, based on a
transformation of the parse tree to an abstract syntax defined in
Parser/Python.asdl.

The compiler implementation is not complete, but it is in stable
enough shape to run the entire test suite excepting two disabled
tests.
2005-10-20 19:59:25 +00:00
..
ACKS Why didn't I think of Fred off the top of my head? 2001-08-27 20:44:20 +00:00
README Remove setup.py, unnecessary since compiler package is the std 2001-09-20 15:02:27 +00:00
ast.txt PEP-0318, @decorator-style. In Guido's words: 2004-08-02 06:10:11 +00:00
astgen.py Fix compiler.ast.flatten function so that it works on lists. 2005-06-02 05:55:20 +00:00
compile.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
demo.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
dumppyc.py Merge ast-branch to head 2005-10-20 19:59:25 +00:00
regrtest.py PEP-0318, @decorator-style. In Guido's words: 2004-08-02 06:10:11 +00:00
stacktest.py Test utility to look for bad stacksize calculations. 2001-10-17 13:39:06 +00:00

README

This directory contains support tools for the Python compiler package,
which is now part of the standard library.

compile.py	Demo that compiles a Python module into a .pyc file
		using the pure-Python compiler code.

demo.py		Prints the names of all the methods defined in a module,
		as a demonstration of walking through the abstract syntax
		tree produced by the parser.

dumppyc.py	Dumps the contents of a .pyc file, printing 
		the attributes of the code object followed by a 
		code disassembly.

regrtest.py	Runs the Python test suite using bytecode generated 
		by the pure-Python compiler code instead of the
		builtin compiler.