Skip to main content

Module topology_decl

Module topology_decl 

Source
Expand description

Declarative VibeScript geometry and topology complex parser and capability lowerer.

Implements §6 of the POET Geometry-Topology Complex architecture (“Geometries Harbour Many Graphs”):

  • geometry <Name> : <ComplexKind> { ... graph <G> : <Morphology> { ... } }
  • Standalone topology <Name> : <Morphology> { ... } syntactic sugar (desugars into a host GeometryDecl of kind MetricPointCloud10D harbouring a single primary HarbouredGraphDecl at slot = 0).
  • Deterministic lowering to Topology.define_geometry, Topology.harbour_graph, and Poet.topology_bind.

Structs§

BoundaryDecl
Boundary source/sink degree predicates on a harboured graph (boundary { sources: ...; sinks: ...; }).
GeometryDecl
A declarative geometry <Name> : <ComplexKind> { ... } harbouring $M \ge 1$ graphs.
HarbouredGraphDecl
A single graph <Name> : <Morphology> { ... } harboured inside a host GeometryDecl.
TopologyInvokeDescriptor
Deterministic capability.invoke call descriptor lowered from a GeometryDecl.

Functions§

parse_geometry_blocks
Parses all geometry and topology declarations in a VibeScript source snippet, skipping construct or other items.
parse_geometry_or_topology
Parses a single geometry <Name> : <ComplexKind> { ... } or standalone topology <Name> : <Morphology> { ... }.