BNFC3-3.0: A compiler front-end generator.
Safe HaskellNone
LanguageHaskell2010

BNFC.Main

Synopsis

Documentation

bnfc :: IO () Source #

BNFC main.

bnfcArgs :: [String] -> IO () Source #

Entrypoint with argument vector.

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).

type Msgs = [String] Source #

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.

writeResult :: Maybe FilePath -> Result -> IO () Source #

Write to files.

Utilities