State monad with goodies.
Author: Lasse Züngel
rwNaming
:: Naming Default naming for the ReadWrite code generation |
get
:: RWM Runtime |
put
:: Runtime -> RWM () |
getFunctionLayouts
:: RWM [FunctionLayout] |
getModuleName
:: RWM String |
getProgram
:: RWM CurryProg |
logIllTypedDefinition
:: String -> RWM () |
getIllTypedDefinitions
:: Runtime -> [String] |
logError
:: String -> RWM () |
getErrors
:: Runtime -> [String] |
Runtime data for the code generation:
Constructors:
Runtime
:: String -> [FunctionLayout] -> CurryProg -> [String] -> [String] -> Runtime
Fields:
moduleName
:: String
functionLayouts
:: [FunctionLayout]
program
:: CurryProg
errors
:: [String]
illTypedDefintions
:: [String]
Command line options:
Constructors:
CLOptions
:: Int -> Int -> String -> Bool -> Bool -> CLOptions
Fields:
optStringLength
:: Int
optAlphabetLength
:: Int
optOutDir
:: String
optGenOpsFile
:: Bool
optHelp
:: Bool
newtype
RWM
Constructor:
A function layout describes how a function is generated.
Constructors:
FunctionLayout
:: String -> CTypeExpr -> FunctionGenerator -> FunctionLayout
Fields:
funcName
:: String
funcType
:: CTypeExpr
funcGenerator
:: FunctionGenerator
A function generator is a function that takes a type declaration and returns the appropriate function rule(s).
Type synonym: FunctionGenerator = CTypeDecl -> RWM [CRule]
Constructors:
Naming
:: String -> String -> String -> Naming
Fields:
rwBaseModuleName
:: String
rwClassName
:: String
rwParametrizedModuleName
:: String
Default naming for the ReadWrite code generation
|
|
|
|