Cflat.SyntaxTree (cflat v0.2.1)

This module provides functionality for rendering of abstract syntax trees.

Summary

Functions

Produce Mermaid code for illustrating syntax trees.

Functions

as_mermaid(st)

Produce Mermaid code for illustrating syntax trees.

Examples

iex> "int i = 42;" |> Cflat.tokenize() |> Cflat.parse() |> Cflat.SyntaxTree.as_mermaid()