language-python-0.5.4: Parsing and pretty printing of Python code.

Copyright | (c) 2009 Bernie Pope
License | BSD-style
Maintainer | bjpop@csse.unimelb.edu.au
Stability | experimental
Portability | ghc
Safe Haskell | Safe
Language | Haskell98

Language.Python.Common

Contents

- Pretty printing infrastructure
- Lexical tokens
- Abstract Syntax Tree
- Source locations
- Pretty printing the Abstract Syntax Tree to concrete Python syntax
- Pretty printing tokens
- Parse errors
- Pretty printing parse errors

Description

Convenient re-export of common code, which works with both version 2.x and 3.x of Python.

Synopsis

- module Language.Python.Common.Pretty
- module Language.Python.Common.Token
- module Language.Python.Common.AST
- module Language.Python.Common.SrcLocation
- module Language.Python.Common.PrettyAST
- module Language.Python.Common.PrettyToken
- module Language.Python.Common.ParseError
- module Language.Python.Common.PrettyParseError

# Pretty printing infrastructure

module Language.Python.Common.Pretty

# Lexical tokens

module Language.Python.Common.Token

# Abstract Syntax Tree

module Language.Python.Common.AST

# Source locations

module Language.Python.Common.SrcLocation

# Pretty printing the Abstract Syntax Tree to concrete Python syntax

module Language.Python.Common.PrettyAST

# Pretty printing tokens

module Language.Python.Common.PrettyToken

# Parse errors

module Language.Python.Common.ParseError

# Pretty printing parse errors

module Language.Python.Common.PrettyParseError