AttractorEx.Parser (attractor_phoenix v0.1.0)

Copy Markdown View Source

Parses the supported Attractor DOT subset into AttractorEx.Graph.

The parser focuses on the executable subset used by the engine rather than full Graphviz grammar parity. It also finalizes parsed graphs by applying model stylesheet rules and normalizing nodes into runtime structs.

Summary

Functions

Parses DOT source into a normalized AttractorEx.Graph.

Types

parse_scope()

@type parse_scope() :: %{
  node_defaults: map(),
  edge_defaults: map(),
  classes: [String.t()],
  graph_attrs: map()
}

Functions

parse(dot)

Parses DOT source into a normalized AttractorEx.Graph.