Skip to content

Objects

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

Objects

Objects are the fundamental building blocks of a Crodox grammar definition. There are two types of objects: visible and invisible (hidden).

Visible Objects <: :>

Visible objects can be referenced by other objects and appear in the dependency graph.

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

Invisible (Hidden) Objects <* *>

Invisible objects are used for structural purposes. They cannot be referenced by other objects.

<*invisible*> { <---> } <*>

Key Difference

Both <:> and <*> define objects. However, only visible objects can be referenced. Invisible objects are mainly used for structural definitions that organize the grammar without participating in the dependency graph.

Clone this wiki locally