Safe Haskell | None |
---|
Imparse Cross-platform and -language parser generator.
Text/Imparse/Compile/Haskell.hs
Compilation from an Imparse parser definition to a Haskell implementation of a abstract syntax data type and Parsec parser.
- data State = State StateExtensionFresh StateExtensionString
- toLowerFirst :: String -> String
- toAbstractSyntax :: String -> Parser a -> Compile State ()
- toDatatype :: Parser a -> Compile State ()
- toRichReport :: String -> Parser a -> Compile State ()
- toReportFuns :: Parser a -> Compile State ()
- toParsec :: String -> Parser Analysis -> Compile State ()
- toParsecDefs :: Parser Analysis -> Compile State ()
Documentation
State data structure
toLowerFirst :: String -> StringSource
Helper functions.
toAbstractSyntax :: String -> Parser a -> Compile State ()Source
Compilation to abstract syntax data type definition.
toDatatype :: Parser a -> Compile State ()Source
toRichReport :: String -> Parser a -> Compile State ()Source
Compilation to rich reporting instance declarations.
toReportFuns :: Parser a -> Compile State ()Source