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 :: CommonRenderSym r => r (Value r) -> r (Value r) -> Doc
- printFile :: Label -> Doc -> Doc
- param :: CommonRenderSym r => r (Variable r) -> Doc
- method :: OORenderSym r => Label -> r (Visibility 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 :: CommonRenderSym r => (Doc -> Doc) -> r (Statement r) -> r (Value r) -> r (Body r) -> [(r (Value r), r (Body r))] -> Doc
- assign :: CommonRenderSym r => r (Variable r) -> r (Value r) -> Doc
- addAssign :: CommonRenderSym r => r (Variable r) -> r (Value r) -> Doc
- subAssign :: CommonRenderSym r => r (Variable r) -> r (Value r) -> Doc
- increment :: CommonRenderSym r => r (Variable r) -> Doc
- decrement :: CommonRenderSym r => r (Variable r) -> Doc
- listDec :: CommonRenderSym r => r (Variable r) -> r (Value r) -> Doc
- getTerm :: Terminator -> Doc
- return' :: CommonRenderSym r => [r (Value r)] -> Doc
- comment :: Label -> Doc -> Doc
- var :: Label -> Doc
- extVar :: Library -> Label -> Doc
- arg :: CommonRenderSym 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 :: CommonRenderSym r => r (Variable r) -> r (Value r) -> Doc
- func :: Doc -> Doc
- cast :: Doc -> Doc
- listAccessFunc :: CommonRenderSym 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 :: CommonRenderSym r => [r (Value r)] -> Doc
- variableList :: CommonRenderSym r => [r (Variable r)] -> Doc
- parameterList :: CommonRenderSym r => [r (Parameter r)] -> Doc
- namedArgList :: CommonRenderSym 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 :: CommonRenderSym 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 :: OORenderSym r => Label -> r (Visibility r) -> r (Permanence r) -> r (Type r) -> [r (Parameter r)] -> r (Body r) -> Doc Source #
stateVarList :: [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 #
getTerm :: Terminator -> Doc Source #
constDecDef :: CommonRenderSym r => r (Variable r) -> r (Value r) -> Doc Source #
listAccessFunc :: CommonRenderSym r => r (Value r) -> Doc Source #
type ClassDocRenderer = String -> [String] Source #
variableList :: CommonRenderSym r => [r (Variable r)] -> Doc Source #
parameterList :: CommonRenderSym r => [r (Parameter r)] -> Doc Source #
namedArgList :: CommonRenderSym r => Doc -> [(r (Variable r), r (Value r))] -> Doc 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 #