cpython/Tools/compiler
Jeremy Hylton 7e30c9bb5a Add lookup_name() to optimize use of stack frames
The use of com_node() introduces a lot of extra stack frames, enough
to cause a stack overflow compiling test.test_parser with the standard
interpreter recursionlimit.  The com_node() is a convenience function
that hides the dispatch details, but comes at a very high cost.  It is
more efficient to dispatch directly in the callers.  In these cases,
use lookup_node() and call the dispatched node directly.

Also handle yield_stmt in a way that will work with Python 2.1
(suggested by Shane Hathaway)
2001-08-27 21:02:51 +00:00
..
compiler Add lookup_name() to optimize use of stack frames 2001-08-27 21:02:51 +00:00
doc Add a little introductory text. 2001-08-18 00:24:46 +00:00
ACKS Why didn't I think of Fred off the top of my head? 2001-08-27 20:44:20 +00:00
ast.txt Add Yield node 2001-08-14 18:57:43 +00:00
astgen.py Generate correct reprs for Mul, Add, etc. 2001-08-18 00:14:37 +00:00
compile.py Add -c option to continue if one file has a SyntaxError 2001-08-27 20:39:21 +00:00
demo.py This script demonstrates use of the visitor interface of the compiler 2000-07-25 16:43:23 +00:00
dumppyc.py read in a .pyc file and disassemble the code objects 2000-10-09 14:35:24 +00:00
README Added README to this directory 2001-08-08 19:10:11 +00:00
regrtest.py Revise regrtest to compile entire standard library. 2001-08-27 20:40:43 +00:00
setup.py Update e-mail address 2001-08-13 15:10:54 +00:00

This directory contains modules for a a Python source to bytecode compiler
written in pure Python.	 To install the compiler modules so they're
available for use by third-party Python software, run 'python setup.py
install'.

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.

setup.py	Setup file for installing the compiler code as a package.