Safe Haskell | None |
---|
Generates HTML and plain text rendering of a Clafer model.
- genHtml :: Module -> IModule -> String
- genText :: Module -> IModule -> String
- genTooltip :: Module -> Map Span [Ir] -> String
- printModule :: Module -> Map Span [Ir] -> Bool -> String
- printDeclaration :: Declaration -> Int -> Map Span [Ir] -> Bool -> [(Span, String)] -> String
- printDecl :: Decl -> Int -> Map Span [Ir] -> Bool -> [(Span, String)] -> String
- traceAstModule :: Module -> Map Span [Ast]
- traceIrModule :: IModule -> Map Span [Ir]
- cleanOutput :: String -> String
- revertLayout :: String -> String
- printComment :: Span -> [(Span, String)] -> ([(Span, String)], String)
- printPreComment :: Span -> [(Span, String)] -> ([(Span, String)], String)
- printStandaloneComment :: String -> String
- printInlineComment :: String -> String
- highlightErrors :: String -> [ClaferErr] -> String
Documentation
genText :: Module -> IModule -> StringSource
Generate the model as plain text | This is used by the graph generator for tooltips
genTooltip :: Module -> Map Span [Ir] -> StringSource
printModule :: Module -> Map Span [Ir] -> Bool -> StringSource
printDeclaration :: Declaration -> Int -> Map Span [Ir] -> Bool -> [(Span, String)] -> StringSource
traceAstModule :: Module -> Map Span [Ast]Source
traceIrModule :: IModule -> Map Span [Ir]Source
cleanOutput :: String -> StringSource
revertLayout :: String -> StringSource
printComment :: Span -> [(Span, String)] -> ([(Span, String)], String)Source
printPreComment :: Span -> [(Span, String)] -> ([(Span, String)], String)Source
printStandaloneComment :: String -> StringSource
printInlineComment :: String -> StringSource
highlightErrors :: String -> [ClaferErr] -> StringSource