|
| Language.C.Parser | | Portability | ghc | | Stability | experimental | | Maintainer | benedikt.huber@gmail.com |
|
|
|
|
|
| Description |
| Language.C parser
|
|
| Synopsis |
|
|
|
|
| Simple API
|
|
|
| parseC input initialPos parses the given preprocessed C-source input and returns the AST or a list of parse errors.
|
|
| Parser Monad
|
|
|
|
|
execute the given parser on the supplied input stream.
returns ParseError if the parser failed, and a pair of
result and remaining name supply otherwise
Synopsis: execParser parser inputStream initialPos predefinedTypedefs uniqNameSupply
|
|
|
run the given parser using a new name supply and builtin typedefs
see execParser
Synopsis: runParser parser inputStream initialPos
|
|
|
|
| Exposed Parsers
|
|
|
| translUnitP provides a parser for a complete C translation unit, i.e. a list of external declarations.
|
|
|
| extDeclP provides a parser for an external (file-scope) declaration
|
|
|
| statementP provides a parser for C statements
|
|
|
| expressionP provides a parser for C expressions
|
|
| Parser Monad
|
|
|
|
|
| Produced by Haddock version 2.6.0 |