ddc-driver-0.4.1.3: Disciplined Disciple Compiler top-level driver.

Safe HaskellNone

DDC.Driver.Command.Parse

Synopsis

Documentation

cmdParseFromFileSource

Arguments

:: Config

Driver config.

-> FilePath

Module file name.

-> ErrorT String IO () 

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

Arguments

:: Config

Driver config.

-> FilePath

Module file path.

-> ErrorT String IO () 

Parse a Disciple Source Tetra module from a file. The result AST is printed to stdout. Any errors are thrown in the ErrorT monad.

cmdParseCoreFromFileSource

Arguments

:: Config

Driver config

-> Language

Core language definition.

-> FilePath

Module file path.

-> ErrorT String IO () 

Parse a Disciple Core module from a file. The AST is printed to stdout. Any errors are thrown in the ErrorT monad.