Safe Haskell | Safe-Inferred |
---|
ASTGen
Description
ASTGen provides a function to render the program’s Abstract Syntax Tree as a Graphviz DOT graph.
Synopsis
- programToDot :: Program -> Text
Documentation
programToDot :: Program -> Text Source #
Convert an entire Program
AST into a DOT-formatted graph.
Each top-level function declaration is numbered sequentially and rendered as a subgraph. The output is a valid Graphviz DOT description of the AST.