Safe Haskell | None |
---|
- cmdParseFromFile :: Config -> FilePath -> ErrorT String IO ()
- cmdParseSourceTetraFromFile :: Config -> FilePath -> ErrorT String IO ()
- cmdParseCoreFromFile :: Config -> Language -> FilePath -> ErrorT String IO ()
Documentation
Parse a module.
The result AST is printed to stdout
.
Any errors are thrown in the ErrorT
monad.
This function handle fragments of Disciple Core, as well as Source Tetra modules. The language to use is determined by inspecting the file name extension.
cmdParseSourceTetraFromFileSource
Parse a Disciple Source Tetra module from a file.
The result AST is printed to stdout
.
Any errors are thrown in the ErrorT
monad.