| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
DDC.Driver.Command.ToPHP
- cmdToPHPFromFile :: Config -> Store -> FilePath -> ExceptT String IO ()
- cmdToPHPSourceTetraFromFile :: Config -> Store -> FilePath -> ExceptT String IO ()
- cmdToPHPSourceTetraFromString :: Config -> Store -> Source -> String -> ExceptT String IO ()
- cmdToPHPCoreFromFile :: Config -> Language -> FilePath -> ExceptT String IO ()
- cmdToPHPCoreFromString :: Config -> Language -> Source -> String -> ExceptT String IO ()
Documentation
Arguments
| :: Config | Driver config. |
| -> Store | Interface store. |
| -> FilePath | Core language definition. |
| -> ExceptT String IO () |
Convert a module to PHP.
The output is printed to stdout.
Any errors are thrown in the ExceptT monad.
cmdToPHPSourceTetraFromFile Source #
Arguments
| :: Config | Driver config. |
| -> Store | Interface store. |
| -> FilePath | Module file path. |
| -> ExceptT String IO () |
Convert Disciple Source Tetra to PHP.
The result is printed to stdout.
Any errors are thrown in the ExceptT monad.
cmdToPHPSourceTetraFromString Source #
Arguments
| :: Config | Driver config. |
| -> Store | Interface store. |
| -> Source | Source of the code. |
| -> String | Program module text. |
| -> ExceptT String IO () |
Convert Disciple Source Tetra to PHP.
The result is printed to stdout.
Any errors are thrown in the ExceptT monad.
Arguments
| :: Config | Driver config. |
| -> Language | Core language definition. |
| -> FilePath | Module file path. |
| -> ExceptT String IO () |
Parse, check and convert a Core module to PHP.
Works for the Tetra, and Salt fragments.
The result is printed to stdout.
Any errors are thrown in the ExceptT monad.
cmdToPHPCoreFromString Source #
Arguments
| :: Config | Compiler configuration. |
| -> Language | Language definition. |
| -> Source | Source of the code. |
| -> String | Program module text. |
| -> ExceptT String IO () |
Parse, check, and convert a module to PHP.
The output is printed to stdout.
Any errors are thrown in the ExceptT monad.