| language-c-0.3.2: Analysis and generation of C code | Source code | Contents | Index

Language.C

Portability | ghc
Stability | experimental
Maintainer | benedikt.huber@gmail.com

Description
Library for analysing and generating C code. See http://www.sivity.net/projects/language.c
Synopsis

parseCFile :: Preprocessor cpp => cpp -> Maybe FilePath -> [String] -> FilePath -> IO (Either ParseError CTranslUnit)
parseCFilePre :: FilePath -> IO (Either ParseError CTranslUnit)
module Language.C.Data
module Language.C.Syntax
module Language.C.Pretty
module Language.C.Parser

Documentation

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

preprocess (if neccessary) 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

module Language.C.Data
module Language.C.Syntax
module Language.C.Pretty
module Language.C.Parser
Produced by Haddock version 2.4.2