parseC input initialPos parses the given preprocessed C-source input and returns the AST or a list of parse errors.
Modulelanguage-c-0.9.3Haskell2010
Language.C.Parser
Language.C parser
- 2 types
- 8 values
- Packagelanguage-c-0.9.3
- Exports10
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceParser.hs
Simple API
1 declarationParser Monad
4 declarationsInstances4Monad, Functor, MonadFail, Applicative
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
4 declarationstranslUnitP 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
1 declarationConstructors
ParseError ([String], Position)
Instances1Show
Show ParseErrorDefined in language-c-0.9.3 · Language.C.Parser.ParserMonad