language-c-0.4.7: Analysis and generation of C code

CopyrightCopyright (c) 2007 Bertram Felgenhauer (c) 2008 Benedikt Huber
LicenseBSD-style
Maintainerbenedikt.huber@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Language.C.Pretty

Contents

Description

This module provides a pretty printer for the parse tree (AST).

Synopsis

Pretty Printing

Testing

prettyUsingInclude :: CTranslUnit -> Doc Source

Pretty print the given tranlation unit, but replace declarations from header files with #include directives.

The resulting file may not compile (because of missing #define directives and similar things), but is very useful for testing, as otherwise the pretty printed file will be cluttered with declarations from system headers.