Safe Haskell | None |
---|
Imparse Cross-platform and -language parser generator.
Text/Imparse.hs
Haskell implementation of the Imparse parser parser. Useful functions for the imparser parser generator.
- type HaskellModulePrefix = String
- data OutputTarget
- = HTML
- | ASCII
- | UXADT
- | HASKELL HaskellModulePrefix
- emitHaskell :: [OutputTarget] -> Maybe HaskellModulePrefix
- parseShow :: String -> IO ()
- parse :: String -> IO (Maybe (Parser Analysis))
- nothing :: IO ()
- createDirectoryIfNotExists :: FilePath -> IO ()
- removeIfExists :: FilePath -> IO ()
- fileNamePrefix :: String -> String
- fileNameDir :: String -> String
- writeAndPutStr :: String -> String -> String -> IO ()
- procWrite :: [OutputTarget] -> Maybe String -> IO ()
- usage :: IO ()
- cmd :: [OutputTarget] -> [String] -> IO ()
Documentation
type HaskellModulePrefix = StringSource
The target of the output, as specified by the command-line arguments.
parseShow :: String -> IO ()Source
Take a file path in the form of a string, and try to parse the contents of the file into abstract syntax.
Take a file path in the form of a string, read it, and process it as specified by the command line.
createDirectoryIfNotExists :: FilePath -> IO ()Source
removeIfExists :: FilePath -> IO ()Source
fileNamePrefix :: String -> StringSource
fileNameDir :: String -> StringSource
cmd :: [OutputTarget] -> [String] -> IO ()Source