Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- codeType :: HasSpace c => c -> GenState CodeType
- spaceCodeType :: Space -> GenState CodeType
- publicFunc :: OOProg r => Label -> VSType r -> Description -> [ParameterChunk] -> Maybe Description -> [MSBlock r] -> GenState (SMethod r)
- privateMethod :: OOProg r => Label -> VSType r -> Description -> [ParameterChunk] -> Maybe Description -> [MSBlock r] -> GenState (SMethod r)
- publicInOutFunc :: OOProg r => Label -> Description -> [CodeVarChunk] -> [CodeVarChunk] -> [MSBlock r] -> GenState (SMethod r)
- privateInOutMethod :: OOProg r => Label -> Description -> [CodeVarChunk] -> [CodeVarChunk] -> [MSBlock r] -> GenState (SMethod r)
- genConstructor :: OOProg r => Label -> Description -> [ParameterChunk] -> [MSBlock r] -> GenState (SMethod r)
- mkVar :: OOProg r => CodeVarChunk -> GenState (SVariable r)
- mkVal :: OOProg r => CodeVarChunk -> GenState (SValue r)
- convExpr :: OOProg r => CodeExpr -> GenState (SValue r)
- convStmt :: OOProg r => FuncStmt -> GenState (MSStatement r)
- genModDef :: OOProg r => Mod -> GenState (SFile r)
- genModFuncs :: OOProg r => Mod -> [GenState (SMethod r)]
- genModClasses :: OOProg r => Mod -> [GenState (SClass r)]
- readData :: OOProg r => DataDesc -> GenState [MSBlock r]
- renderC :: (HasUID c, HasSymbol c) => c -> Constraint CodeExpr -> CodeExpr
Documentation
publicFunc :: OOProg r => Label -> VSType r -> Description -> [ParameterChunk] -> Maybe Description -> [MSBlock r] -> GenState (SMethod r) Source #
Generates a public function.
privateMethod :: OOProg r => Label -> VSType r -> Description -> [ParameterChunk] -> Maybe Description -> [MSBlock r] -> GenState (SMethod r) Source #
Generates a private method.
publicInOutFunc :: OOProg r => Label -> Description -> [CodeVarChunk] -> [CodeVarChunk] -> [MSBlock r] -> GenState (SMethod r) Source #
Generates a public function, defined by its inputs and outputs.
privateInOutMethod :: OOProg r => Label -> Description -> [CodeVarChunk] -> [CodeVarChunk] -> [MSBlock r] -> GenState (SMethod r) Source #
Generates a private method, defined by its inputs and outputs.
genConstructor :: OOProg r => Label -> Description -> [ParameterChunk] -> [MSBlock r] -> GenState (SMethod r) Source #
Generates a constructor.
mkVar :: OOProg r => CodeVarChunk -> GenState (SVariable r) Source #
Generates a GOOL Variable for a variable represented by a CodeVarChunk
.
mkVal :: OOProg r => CodeVarChunk -> GenState (SValue r) Source #
Generates a GOOL Value for a variable represented by a CodeVarChunk
.
convStmt :: OOProg r => FuncStmt -> GenState (MSStatement r) Source #
Converts a FuncStmt
to a GOOL Statement.
genModFuncs :: OOProg r => Mod -> [GenState (SMethod r)] Source #
Converts a Mod
's functions to GOOL.
readData :: OOProg r => DataDesc -> GenState [MSBlock r] Source #
Read from a data description into a MSBlock
of MSStatement
s.
renderC :: (HasUID c, HasSymbol c) => c -> Constraint CodeExpr -> CodeExpr Source #
Converts a Constraint
to a CodeExpr
.