cpython/Tools/compiler
Jeremy Hylton 37c9351cf6 Handle more syntax errors.
Invoke compiler.syntax.check() after building AST.  If a SyntaxError
occurs, print the error and exit without generating a .pyc file.

Refactor code to use compiler.misc.set_filename() rather than passing
filename argument around to each CodeGenerator instance.
2001-09-17 18:03:55 +00:00
..
compiler Handle more syntax errors. 2001-09-17 18:03:55 +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
README
ast.txt the names attribute of Global is not a node 2001-09-14 22:40:36 +00:00
astgen.py Revise implementations of getChildren() and getChildNodes(). 2001-08-29 18:08:02 +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
dumppyc.py
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

README

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.