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

Copyright(c) 2008 Benedikt Huber [1995..2007] Manuel M. T. Chakravarty Duncan Coutts Betram Felgenhauer
LicenseBSD-style
Maintainerbenedikt.huber@gmail.com
Stabilityexperimental
Portabilityghc
Safe HaskellNone
LanguageHaskell98

Language.C

Description

Library for analysing and generating C code.

See http://www.sivity.net/projects/language.c

Synopsis

Documentation

parseCFile :: Preprocessor cpp => cpp -> Maybe FilePath -> [String] -> FilePath -> IO (Either ParseError CTranslUnit) Source

preprocess (if necessary) and parse a C source file

Synopsis: parseCFile preprocesssor tmp-dir? cpp-opts file
Example:  parseCFile (newGCC "gcc") Nothing ["-I/usr/include/gtk-2.0"] my-gtk-exts.c

parseCFilePre :: FilePath -> IO (Either ParseError CTranslUnit) Source

parse an already preprocessed C file

Synopsis: parseCFilePre file.i