Module parser
[hide private]
[frames] | no frames]

Module parser

This is an interface to Python's internal parser.


Version: 0.5

Copyright: Copyright 1995-1996 by Virginia Polytechnic Institute & State University, Blacksburg, Virginia, USA, and Fred L. Drake, Jr., Reston, Virginia, USA. Portions copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, The Netherlands.

Classes [hide private]
ASTType
Intermediate representation of a Python parse tree.
ParserError
STType
Intermediate representation of a Python parse tree.
Functions [hide private]
 
_pickler(...)
Returns the pickle magic to allow ST objects to be pickled.
 
ast2list(...)
Creates a list-tree representation of an ST.
 
ast2tuple(...)
Creates a tuple-tree representation of an ST.
 
compileast(...)
Compiles an ST object into a code object.
 
compilest(...)
Compiles an ST object into a code object.
 
expr(...)
Creates an ST object from an expression.
 
isexpr(...)
Determines if an ST object was created from an expression.
 
issuite(...)
Determines if an ST object was created from a suite.
 
sequence2ast(...)
Creates an ST object from a tree representation.
 
sequence2st(...)
Creates an ST object from a tree representation.
 
st2list(...)
Creates a list-tree representation of an ST.
 
st2tuple(...)
Creates a tuple-tree representation of an ST.
 
suite(...)
Creates an ST object from a suite.
 
tuple2ast(...)
Creates an ST object from a tree representation.
 
tuple2st(...)
Creates an ST object from a tree representation.