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

Description

The structure for a class of renderers is defined here.

Synopsis

Common Syntax

Default Functions available for use in renderers

file :: Doc -> Doc -> Doc -> Doc Source #

module' :: Doc -> Doc -> Doc -> Doc Source #

class' :: Label -> Doc -> Doc -> Doc -> Doc -> Doc Source #

block :: [Doc] -> Doc Source #

body :: [Doc] -> Doc Source #

print :: RenderSym r => r (Value r) -> r (Value r) -> Doc Source #

param :: RenderSym r => r (Variable r) -> Doc Source #

method :: RenderSym r => Label -> r (Scope r) -> r (Permanence r) -> r (Type r) -> [r (Parameter r)] -> r (Body r) -> Doc Source #

stateVar :: Doc -> Doc -> Doc -> Doc Source #

switch :: RenderSym r => (Doc -> Doc) -> r (Statement r) -> r (Value r) -> r (Body r) -> [(r (Value r), r (Body r))] -> Doc Source #

assign :: RenderSym r => r (Variable r) -> r (Value r) -> Doc Source #

addAssign :: RenderSym r => r (Variable r) -> r (Value r) -> Doc Source #

subAssign :: RenderSym r => r (Variable r) -> r (Value r) -> Doc Source #

listDec :: RenderSym r => r (Variable r) -> r (Value r) -> Doc Source #

return' :: RenderSym r => [r (Value r)] -> Doc Source #

arg :: RenderSym r => r (Value r) -> r (Value r) -> Doc Source #

constDecDef :: RenderSym r => r (Variable r) -> r (Value r) -> Doc Source #

blockCmt :: [String] -> Doc -> Doc -> Doc Source #

docCmt :: [String] -> Doc -> Doc -> Doc Source #

valueList :: RenderSym r => [r (Value r)] -> Doc Source #

namedArgList :: RenderSym r => Doc -> [(r (Variable r), r (Value r))] -> Doc Source #