Learn
02 · Language core
02: Language Core
Goal: understand the primitives that make workflows readable and composable.
Concepts to Learn
- Executables (
query,mutation,iterator,glyph) - Parameters (0.7.0):
$paramlists, defaults,--args-json - Tags /
using(0.7.0): ambient bindings scoped to a block - State shaping with
set,pick,map,get_path - Control-flow with
if,match,return - Lifecycle transitions with
transition
Recommended examples
grapheme run examples/hello-world.gr --json
grapheme run examples/params-call-bind.gr --args-json '{"label":"grapheme"}' --json
grapheme run examples/tag-using-scope.gr --json
grapheme run examples/core-merge.gr --json
grapheme run examples/core-filter.gr --json
grapheme run examples/mutation-state-machine-apply.gr --json
Author extract: docs/internal/language/params-and-tags-v1.md.
Exercise
Take one example and:
- add one state field or one executable parameter,
- route one new branch or one scoped
usingblock, - keep output contract readable.
If teammates can review your flow quickly, you are using Grapheme correctly.