Safe Haskell | None |
---|
DDC.Driver.Command.ToC
- cmdToSeaFromFile :: Config -> FilePath -> ErrorT String IO ()
- cmdToSeaSourceTetraFromFile :: Config -> FilePath -> ErrorT String IO ()
- cmdToSeaSourceTetraFromString :: Config -> Source -> String -> ErrorT String IO ()
- cmdToSeaCoreFromFile :: Config -> Language -> FilePath -> ErrorT String IO ()
- cmdToSeaCoreFromString :: Config -> Language -> Source -> String -> ErrorT String IO ()
Documentation
Convert a module to C.
The output is printed to stdout
.
Any errors are thrown in the ErrorT
monad.
cmdToSeaSourceTetraFromFileSource
Convert Disciple Source Tetra to C.
The result is printed to stdout
.
Any errors are thrown in the ErrorT
monad.
cmdToSeaSourceTetraFromStringSource
Arguments
:: Config | Driver config. |
-> Source | Source of the code. |
-> String | Program module text. |
-> ErrorT String IO () |
Convert Disciple Source Tetra to C.
The result is printed to stdout
.
Any errors are thrown in the ErrorT
monad.
Arguments
:: Config | Driver config. |
-> Language | Core language definition. |
-> FilePath | Module file path. |
-> ErrorT String IO () |
Parse, check and convert a Core module to Sea.
Works for the Tetra
, Lite
and Salt
fragments.
The result is printed to stdout
.
Any errors are thrown in the ErrorT
monad.