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

Drasil.Shared.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 :: ValueElim r => r Value -> r Value -> Doc Source #

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

switch :: (BodyElim r, StatementElim r smt, ValueElim r) => (Doc -> Doc) -> r smt -> r Value -> r Body -> [(r Value, r Body)] -> Doc Source #

arg :: ValueElim r => r Value -> r Value -> Doc Source #

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

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