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

Drasil.GOOL.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 :: CommonRenderSym r => r (Value r) -> r (Value r) -> Doc Source #

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

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

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

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

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

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

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

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

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

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

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