Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
The structure for a class of renderers is defined here.
Synopsis
- classDec :: Doc
- dot :: Doc
- commentStart :: Doc
- returnLabel :: Doc
- ifLabel :: Doc
- elseLabel :: Doc
- elseIfLabel :: Doc
- forLabel :: Doc
- inLabel :: Doc
- whileLabel :: Doc
- tryLabel :: Doc
- catchLabel :: Doc
- throwLabel :: Doc
- throwsLabel :: Doc
- importLabel :: Doc
- blockCmtStart :: Doc
- blockCmtEnd :: Doc
- docCmtStart :: Doc
- bodyStart :: Doc
- bodyEnd :: Doc
- endStatement :: Doc
- constDec' :: Doc
- exceptionObj' :: Doc
- new' :: Doc
- this' :: Doc
- self' :: Doc
- array' :: Doc
- listSep' :: Doc
- argc :: String
- argv :: String
- args :: String
- printLabel :: String
- constDec :: String
- exceptionObj :: String
- mainFunc :: String
- new :: String
- this :: String
- self :: String
- nullLabel :: String
- array :: String
- listSep :: String
- sqrt :: String
- abs :: String
- fabs :: String
- log10 :: String
- log :: String
- exp :: String
- sin :: String
- cos :: String
- tan :: String
- asin :: String
- acos :: String
- atan :: String
- floor :: String
- ceil :: String
- pow :: String
- piLabel :: String
- access :: String -> String -> String
- containing :: String -> String -> String
- tuple :: [String] -> String
- mathFunc :: String -> String
- addExt :: String -> String -> String
- package :: Label -> Doc -> FileData -> FileData
- file :: Doc -> Doc -> Doc -> Doc
- module' :: Doc -> Doc -> Doc -> Doc
- class' :: Label -> Doc -> Doc -> Doc -> Doc -> Doc
- multiStmt :: [(Doc, Terminator)] -> (Doc, Terminator)
- block :: [Doc] -> Doc
- body :: [Doc] -> Doc
- print :: RenderSym r => r (Value r) -> r (Value r) -> Doc
- printFile :: Label -> Doc -> Doc
- param :: RenderSym r => r (Variable r) -> Doc
- method :: RenderSym r => Label -> r (Scope r) -> r (Permanence r) -> r (Type r) -> [r (Parameter r)] -> r (Body r) -> Doc
- stateVar :: Doc -> Doc -> Doc -> Doc
- constVar :: Doc -> Doc -> Doc -> VarData -> Doc
- stateVarList :: [Doc] -> Doc
- switch :: RenderSym r => (Doc -> Doc) -> r (Statement r) -> r (Value r) -> r (Body r) -> [(r (Value r), r (Body r))] -> Doc
- assign :: RenderSym r => r (Variable r) -> r (Value r) -> Doc
- addAssign :: RenderSym r => r (Variable r) -> r (Value r) -> Doc
- subAssign :: RenderSym r => r (Variable r) -> r (Value r) -> Doc
- increment :: RenderSym r => r (Variable r) -> Doc
- decrement :: RenderSym r => r (Variable r) -> Doc
- listDec :: RenderSym r => r (Variable r) -> r (Value r) -> Doc
- getTerm :: Terminator -> Doc
- return' :: RenderSym r => [r (Value r)] -> Doc
- comment :: Label -> Doc -> Doc
- var :: Label -> Doc
- extVar :: Library -> Label -> Doc
- arg :: RenderSym r => r (Value r) -> r (Value r) -> Doc
- classVar :: Doc -> Doc -> Doc
- objVar :: Doc -> Doc -> Doc
- unOpDocD :: Doc -> Doc -> Doc
- unOpDocD' :: Doc -> Doc -> Doc
- binOpDocD :: Doc -> Doc -> Doc -> Doc
- binOpDocD' :: Doc -> Doc -> Doc -> Doc
- constDecDef :: RenderSym r => r (Variable r) -> r (Value r) -> Doc
- func :: Doc -> Doc
- cast :: Doc -> Doc
- listAccessFunc :: RenderSym r => r (Value r) -> Doc
- listSetFunc :: Doc -> Doc -> Doc
- objAccess :: Doc -> Doc -> Doc
- castObj :: Doc -> Doc -> Doc
- break :: Doc
- continue :: Doc
- static :: Doc
- dynamic :: Doc
- private :: Doc
- public :: Doc
- blockCmt :: [String] -> Doc -> Doc -> Doc
- docCmt :: [String] -> Doc -> Doc -> Doc
- commentedItem :: Doc -> Doc -> Doc
- addComments :: Label -> Doc -> Doc -> Doc
- type FuncDocRenderer = String -> [(String, String)] -> [String] -> [String]
- functionDox :: FuncDocRenderer
- type ClassDocRenderer = String -> [String]
- classDox :: ClassDocRenderer
- type ModuleDocRenderer = String -> [String] -> String -> String -> [String]
- moduleDox :: ModuleDocRenderer
- commentedMod :: FileData -> Doc -> FileData
- valueList :: RenderSym r => [r (Value r)] -> Doc
- variableList :: RenderSym r => [r (Variable r)] -> Doc
- parameterList :: RenderSym r => [r (Parameter r)] -> Doc
- namedArgList :: RenderSym r => Doc -> [(r (Variable r), r (Value r))] -> Doc
- prependToBody :: (Doc, Terminator) -> Doc -> Doc
- appendToBody :: Doc -> (Doc, Terminator) -> Doc
- surroundBody :: (Doc, Terminator) -> Doc -> (Doc, Terminator) -> Doc
- getterName :: String -> String
- setterName :: String -> String
- intValue :: RenderSym r => SValue r -> SValue r
Common Syntax
commentStart :: Doc Source #
returnLabel :: Doc Source #
elseIfLabel :: Doc Source #
whileLabel :: Doc Source #
catchLabel :: Doc Source #
throwLabel :: Doc Source #
throwsLabel :: Doc Source #
importLabel :: Doc Source #
blockCmtStart :: Doc Source #
blockCmtEnd :: Doc Source #
docCmtStart :: Doc Source #
endStatement :: Doc Source #
exceptionObj' :: Doc Source #
printLabel :: String Source #
Default Functions available for use in renderers
multiStmt :: [(Doc, Terminator)] -> (Doc, Terminator) Source #
method :: RenderSym r => Label -> r (Scope r) -> r (Permanence r) -> r (Type r) -> [r (Parameter r)] -> r (Body r) -> Doc Source #
stateVarList :: [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 #
getTerm :: Terminator -> Doc Source #
type ClassDocRenderer = String -> [String] Source #
prependToBody :: (Doc, Terminator) -> Doc -> Doc Source #
appendToBody :: Doc -> (Doc, Terminator) -> Doc Source #
surroundBody :: (Doc, Terminator) -> Doc -> (Doc, Terminator) -> Doc Source #
getterName :: String -> String Source #
setterName :: String -> String Source #