Skip to content

Dependency Structure

Benedict Albrecht edited this page Jun 2, 2026 · 4 revisions

Dependency Structure

Crodox resolves variables and dependencies using a scoping system that controls visibility between objects.


Variable Scoping Rules

Scope Visibility
:following Forward siblings + own downstream (default)
:down All downstream elements
:siblings All siblings' elements (no downstream)
:up Siblings + downstream + parent. If parent is file → file references
:global Entire file + all referencing files
:hook Any matching variable in the project (cross-file)

Dependency Modifiers

Syntax Creates Dependency Overwrites Variable Notes
title:any Standard behavior
TITLE:any Uppercase - no dependency
'title' Reference - no overwrite
"title" File path - Must match file path bridge definitions
![x|y]title! ✅ (sub-body) - Limits to object types x, y
<-A,B-> One-sided - Child → parent only for types A, B

Children Dependencies

Relationship Default Typed <-A-> File Objects
Parent → Child
Child → Parent

See also: Variables - Types and scoping · Grammar Structure - File composition

Clone this wiki locally