HTC API Documentation
Safe HaskellSafe-Inferred

GraphGen

Description

GraphGen provides a renderer from the internal AST to a DOT-formatted dataflow graph following the TALM model.

The generated graph can be visualized with Graphviz or further processed by a code generator to emit TALM assembly.

Synopsis

Documentation

programToDataflowDot :: Program -> Text Source #

Render an entire program as a DOT graph in the TALM dataflow style.

Each top-level function declaration is numbered and converted into a subgraph containing nodes for parameter inputs, internal computations, and return outputs. The result is a fully connected dataflow graph in Graphviz DOT format.