Canonical examples
These examples demonstrate the v0.1 language using the resolved syntax rules. All examples from earlier design iterations have been rewritten to follow:
=for all assignments,:only for type annotationsgoalalways internal to@flexible/@guarded- Assignment capture only (
result = @block { ... }) @guardedwith explicitguard/validateon_failureerror model in@flexibleenum[...]for compile-time symbols,"a" | "b"for string unions@conversation_policyas language primitive@budget,@debugblocks where appropriate- No
@adaptive(deferred — useif+@checkpointpattern, see §6.8),@operator,@registry,goto, orany
In this section#
- Example: invoice processor — extract structured invoice data from a PDF, validate it, and route to a human reviewer.
- Example: customer support agent — entity-mode flow with memory, plugins, and an escalation path.
- Example: content pipeline — multi-stage content generation and review using pipeline operators.