Logo FS-Skia-UI

CodeGen Module

Functions and values

Function or value Description

asciiTree roots children

Full Usage: asciiTree roots children

Parameters:
    roots : 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.

roots : string list
children : string -> string list
Returns: string

markdownTable headers rows

Full Usage: markdownTable headers rows

Parameters:
    headers : 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.

headers : string list
rows : string list list
Returns: string

mermaidGraph nodes edges

Full Usage: mermaidGraph nodes edges

Parameters:
    nodes : 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.

nodes : string list
edges : (string * string) list
Returns: string

Type something to start searching.