drasil-gool-0.1.1.0: A framework for code and document generation for scientific software - GOOL SubPackage
Safe HaskellNone
LanguageGHC2024

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 bod, StatementElim r stmt, ValueElim r) => (Doc -> Doc) -> r stmt -> r Value -> r bod -> [(r Value, r bod)] -> Doc Source #

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

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

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