Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Err = Either String
- bnfc :: IO ()
- bnfcArgs :: [String] -> IO ()
- bnfcOptions :: Options -> IO ()
- bnfcGrammar :: Options -> Grammar -> IO ()
- type Msgs = [String]
- execRun :: ((Maybe Result, Maybe FilePath), Msgs) -> IO ()
- runBnfcArgs :: [String] -> IO ((Maybe Result, Maybe FilePath), Msgs)
- runBnfcOptions :: Options -> IO ((Maybe Result, Maybe FilePath), Msgs)
- runBnfcGrammar :: Options -> Grammar -> ((Maybe Result, Maybe FilePath), Msgs)
- writeResult :: Maybe FilePath -> Result -> IO ()
- getAbs :: LBNF -> String
- parseFile :: FilePath -> IO Grammar
- dieIfError :: Err a -> IO a
Documentation
bnfcOptions :: Options -> IO () Source #
Entrypoint with parsed options.
bnfcGrammar :: Options -> Grammar -> IO () Source #
Entrypoint with parsed options and parsed grammar.
Entrypoints that do not exitFailure
unless I/O errors or options errors (TODO: also handle option errors).
runBnfcArgs :: [String] -> IO ((Maybe Result, Maybe FilePath), Msgs) Source #
Entrypoint with argument vector.
runBnfcOptions :: Options -> IO ((Maybe Result, Maybe FilePath), Msgs) Source #
Entrypoint with parsed options.
runBnfcGrammar :: Options -> Grammar -> ((Maybe Result, Maybe FilePath), Msgs) Source #
Entrypoint with parsed options and grammar.
Utilities
dieIfError :: Err a -> IO a Source #