Skip to content

Sub bodies

Benedict Albrecht edited this page May 20, 2026 · 4 revisions

Sub-bodies

A sub-body defines where child objects can appear within an object definition. Child objects are listed in a tree-like structure.

Basic Sub-body

The <---> syntax defines a sub-body that accepts any child object.

<*{}*> { <---> } <*>
<:class:> class <<name>> () { <---> } <:>

A sub-body can contain objects which are listed as child nodes in a tree-like structure.

Typed Sub-body

Object types can be listed within sub-bodies to control the dependency structure.

<*{}*> { <---> } <*>
<:class:> class <<name>> () { <-function-> } <:>
<:function:> function <<name>> () { <---> } <:>

Dependency Behavior

  • Default: A parent node has a dependency on its child nodes (both-sided).
  • Typed sub-body: If the object type is specified in the sub-body (e.g., <-function->), only the child node depends on the parent — not the other way around.

This allows you to define structures where certain children are loosely coupled to their parent, such as functions within a class.

Clone this wiki locally