drasil-gool-0.1.1.0: A framework for code and document generation for scientific software - GOOL SubPackage
Safe HaskellNone
LanguageGHC2024

Drasil.GProc.LanguageRenderer.AbstractProc

Synopsis

Documentation

fileDoc :: RenderFile r file mod => String -> FS (r mod) -> FS (r file) Source #

fileFromData :: forall {k} r (mod :: k) (file :: k). ModuleElim r mod => (FilePath -> r mod -> r file) -> FilePath -> FS (r mod) -> FS (r file) Source #

buildModule :: forall {k} r (mthd :: k) (mod :: k). (MethodElim r mthd, RenderMod r mod) => Label -> FS Doc -> FS Doc -> [MS (r mthd)] -> FS (r mod) Source #

docMod :: RenderFile r file mod => String -> String -> String -> [String] -> String -> FS (r file) -> FS (r file) Source #

modFromData :: forall {k} r (mod :: k). Label -> (Doc -> r mod) -> FS Doc -> FS (r mod) Source #

listAppend :: (ValueStatement r stmt, ValueExpression r) => String -> SValue r -> SValue r -> MS (r stmt) Source #

Call to append a value to a list using a function call

listAdd :: (IndexTranslator r, ValueStatement r stmt, ValueExpression r) => String -> SValue r -> SValue r -> SValue r -> MS (r stmt) Source #

Call to insert a value into a list as a function call

funcDecDef :: ProcRenderSym r vis stmt mthd file mod bod block => SVariable r -> r ScopeData -> [SVariable r] -> MS (r bod) -> MS (r stmt) Source #

function :: ProcRenderMethod r vis mthd bod => Label -> r vis -> VS (r TypeData) -> [MS (r ParamData)] -> MS (r bod) -> MS (r mthd) Source #