Safe Haskell | None |
---|---|
Language | Haskell2010 |
FreeC.Frontend
Description
This module contains the Frontend
data type and all available frontends.
Synopsis
- data Frontend = Frontend {
- frontendName :: String
- frontendParseFile :: FrontendParser decls
- frontendSimplifyModule :: FrontendSimplifier decls
- type FrontendParser decls = SrcFile -> Application (ModuleOf decls)
- type FrontendSimplifier decls = ModuleOf decls -> Application Module
- frontends :: Map String Frontend
- showFrontends :: String
- defaultFrontend :: String
Documentation
Data type that represents a frontend.
Constructors
Frontend | |
Fields
|
type FrontendParser decls = SrcFile -> Application (ModuleOf decls) Source #
Type synonym for a parsing function of a Frontend
.
type FrontendSimplifier decls = ModuleOf decls -> Application Module Source #
Type synonym for a simplification function of a Frontend
.
frontends :: Map String Frontend Source #
A map of all available frontends with the name of those frontends as keys.
showFrontends :: String Source #
Shows a list of all frontends.
defaultFrontend :: String Source #
Shows the name of the default frontend.