drasil-gool-0.1.1.0: A framework for code and document generation for scientific software - GOOL SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

GOOL.Drasil.LanguageRenderer.CommonPseudoOO

Description

Implementations defined here are valid in some, but not all, language renderers

Synopsis

Documentation

doxMod :: RenderSym r => String -> String -> [String] -> String -> SFile r -> SFile r Source #

docMod' :: RenderSym r => String -> String -> [String] -> String -> SFile r -> SFile r Source #

classVar :: RenderSym r => (Doc -> Doc -> Doc) -> VSType r -> SVariable r -> SVariable r Source #

intClass :: (RenderSym r, Monad r) => (Label -> Doc -> Doc -> Doc -> Doc -> Doc) -> Label -> r (Scope r) -> r ParentSpec -> [CSStateVar r] -> [SMethod r] -> CS (r Doc) Source #

funcType :: RenderSym r => [VSType r] -> VSType r -> VSType r Source #

buildModule :: RenderSym r => Label -> FS Doc -> FS Doc -> FS Doc -> [SMethod r] -> [SClass r] -> FSModule r Source #

openFileA :: RenderSym r => (SValue r -> VSType r -> SValue r -> SValue r) -> SVariable r -> SValue r -> MSStatement r Source #

forEach :: RenderSym r => Doc -> Doc -> Doc -> Doc -> SVariable r -> SValue r -> MSBody r -> MSStatement r Source #

buildModule' :: RenderSym r => Label -> (String -> r (Import r)) -> [Label] -> [SMethod r] -> [SClass r] -> FSModule r Source #

call' :: RenderSym r => String -> Maybe Library -> Maybe Doc -> MixedCall r Source #

First parameter is language name, rest similar to call from ClassInterface

docInOutFunc :: RenderSym r => ([SVariable r] -> [SVariable r] -> [SVariable r] -> MSBody r -> SMethod r) -> String -> [(String, SVariable r)] -> [(String, SVariable r)] -> [(String, SVariable r)] -> MSBody r -> SMethod r Source #

stateVarDef :: (RenderSym r, Monad r) => r (Scope r) -> r (Permanence r) -> SVariable r -> SValue r -> CS (r Doc) Source #

constVar :: (RenderSym r, Monad r) => Doc -> r (Scope r) -> SVariable r -> SValue r -> CS (r Doc) Source #

litArray :: RenderSym r => (Doc -> Doc) -> VSType r -> [SValue r] -> SValue r Source #

listSetFunc :: RenderSym r => (Doc -> Doc -> Doc) -> SValue r -> SValue r -> SValue r -> VSFunction r Source #

openFileR :: RenderSym r => (SValue r -> VSType r -> SValue r) -> SVariable r -> SValue r -> MSStatement r Source #

openFileW :: RenderSym r => (SValue r -> VSType r -> SValue r -> SValue r) -> SVariable r -> SValue r -> MSStatement r Source #

stateVar :: (RenderSym r, Monad r) => r (Scope r) -> r (Permanence r) -> SVariable r -> CS (r Doc) Source #

multiAssign :: RenderSym r => (Doc -> Doc) -> [SVariable r] -> [SValue r] -> MSStatement r Source #

inOutCall :: RenderSym r => (Label -> VSType r -> [SValue r] -> SValue r) -> Label -> [SValue r] -> [SVariable r] -> [SVariable r] -> MSStatement r Source #

inOutFunc :: RenderSym r => (VSType r -> [MSParameter r] -> MSBody r -> SMethod r) -> [SVariable r] -> [SVariable r] -> [SVariable r] -> MSBody r -> SMethod r Source #

docInOutFunc' :: RenderSym r => FuncDocRenderer -> ([SVariable r] -> [SVariable r] -> [SVariable r] -> MSBody r -> SMethod r) -> String -> [(String, SVariable r)] -> [(String, SVariable r)] -> [(String, SVariable r)] -> MSBody r -> SMethod r Source #