Metadata-Version: 1.0
Name: sourcecodegen
Version: 0.1
Summary: A Python source-code generator based on the ``compiler.ast`` abstract syntax tree.
Home-page: UNKNOWN
Author: Malthe Borch
Author-email: mborch@gmail.com
License: BSD
Description: Overview
        ========
        
        This package provides a module-level source-code generator which
        operates on the AST from the built-in ``compiler.ast`` module.
        
        Note that this AST is not compatible with the new ``ast`` module in
        Python 2.6.
        
        Usage
        -----
        
        The generator works on AST parse trees.
        
        >>> from compiler import parse
        >>> tree = parse("""\
        ...     print 'Hello, world!'
        ... """)
        
        We can now generate Python-code equivalent to the original using the
        source-code generator.
        
        >>> from sourcecodegen import ModuleSourceCodeGenerator
        >>> generator = ModuleSourceCodeGenerator(tree)
        >>> print generator.getSourceCode()
        print 'Hello, world!'
        
        Author
        ------
        
        Malthe Borch <mborch@gmail.com>
        
        
        Changelog
        =========
        
        0.1 (released 26/11/2008)
        ~~~~~~~~~~~~~~~~~~~~~~~~~
        
        - Initial release.
        
Keywords: python source-code generation ast
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
