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.CLike

Description

Implementations for C-like renderers are defined here.

Documentation

notOp :: Monad r => VSOp r Source #

andOp :: Monad r => VSOp r Source #

orOp :: Monad r => VSOp r Source #

inlineIf :: RenderSym r => SValue r -> SValue r -> SValue r -> SValue r Source #

varDec :: RenderSym r => r (Permanence r) -> r (Permanence r) -> Doc -> SVariable r -> MSStatement r Source #

listDec :: RenderSym r => (r (Value r) -> Doc) -> SValue r -> SVariable r -> MSStatement r Source #

switch :: RenderSym r => (Doc -> Doc) -> MSStatement r -> SValue r -> [(SValue r, MSBody r)] -> MSBody r -> MSStatement r Source #

while :: RenderSym r => (Doc -> Doc) -> Doc -> Doc -> SValue r -> MSBody r -> MSStatement r Source #

intFunc :: RenderSym r => Bool -> Label -> r (Scope r) -> r (Permanence r) -> MSMthdType r -> [MSParameter r] -> MSBody r -> SMethod r Source #