Safe Haskell | None |
---|---|
Language | Haskell98 |
Generates a visual representation of a control flow graph, by overlaying a pretty-printed syntax output with a graphviz-generated graph.
This code uses the command line tools "neato", "pdf2ps" and "pdftk".
- font :: PDFFont
- theCharWidth :: PDFFloat
- theCharHeight :: PDFFloat
- renderCodeToFile :: FilePath -> String -> IO ()
- createDotFromGraph :: Integer -> Integer -> [Label :× Label] -> (Label :⇀ (Integer, Integer)) -> Graph
- createDotFromCode :: (Prog -> [Label :× Label]) -> Prog -> Graph
- createCodeWithGraph :: (Prog -> [Label :× Label]) -> FilePath -> Prog -> IO ()
Documentation
theCharWidth :: PDFFloat Source
Assuming a mono-spaced font, this is the width of a character.
theCharHeight :: PDFFloat Source
The height of a character.
renderCodeToFile :: FilePath -> String -> IO () Source
Creates a PDF file containing the given text, without any padding or
borders, using the font specified by font
:: Integer | number of lines |
-> Integer | number of columns |
-> [Label :× Label] | the list of edges to draw |
-> (Label :⇀ (Integer, Integer)) | the position of the nodes, in characters |
-> Graph |
Creates a Graph