CodeGen Module
Functions and values
| Function or value |
Description
|
Full Usage:
asciiTree roots children
Parameters:
string list
children : string -> string list
Returns: string
|
Render a stable ASCII tree. `roots` are the top-level node labels; `children` maps a node label to its ordered child labels. Uses `├─`/`└─`/`│` connectors.
|
Full Usage:
markdownTable headers rows
Parameters:
string list
rows : string list list
Returns: string
|
Render a GitHub-flavoured Markdown table. `headers` defines the columns; each row is rendered in order. Cell counts are not padded — callers supply rows matching the header arity.
|
Full Usage:
mermaidGraph nodes edges
Parameters:
string list
edges : (string * string) list
Returns: string
|
Render a Mermaid `graph TD` block from nodes and directed edges. Node and edge order is preserved; output is deterministic.
|