Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Examples

Real Crush programs drawn from the exosphere workspace and the broader Crush ecosystem. Each demonstrates a distinct pattern or capability domain.

ExamplePattern
Fibonacci & FunctionsRecursion, function calls, type hints
Arrays & LoopsArray literals, for-in, break/continue
Exception Handlingtry/catch/throw
Concurrency & StructsStruct instantiation, spawn/yield
Lambdas & PipesLambda syntax, pipeline operator
Import StylesModule, MCP, capability, polyglot, external imports
System InfoSys/math capabilities, HTML generation
Build PipelineMulti-function decomposition, event sourcing, fail-fast
Async LLM Dashboardasync/await, DOM API, seahorse LLM integration

Source locations:

  • exosphere/crates/core/crush-lang/tests/fixtures/ — core language fixtures (exosphere repo)
  • exosphere/tests/language/ — integration tests
  • exosphere/examples/crush-pipefish-dashboard/ — real app
  • exosphere-apps/crates/apps/super-surfer/apps/ — web apps
  • exosphere/crates/core/crush-lang/examples/ — documented examples