ipmtext

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ipmtext serializes a model.IpmGraph back to canonical ipmt text — the inverse of ipm-tools' ipmt parser. Used by cmd-dev/ipm-to-ipmt and by cmd-dev/corpus-gallery (to emit an editable .ipmt next to each graph).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serialize

func Serialize(g *model.IpmGraph) (string, error)

Serialize renders the graph as ipmt: one alias-tagged node declaration per node (`a::a name ::type ["tooltip" ::tip]`), then one line per edge using `--::L-->`, `--::P-->`, `--::X-->`, and `--::N--`. Reconstructed from graph structure only (ignores src.ipmt / src.positions), so it round-trips through the parser to an equivalent graph.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL