Examples
Real Crush programs drawn from the exosphere workspace and the broader Crush ecosystem. Each demonstrates a distinct pattern or capability domain.
| Example | Pattern |
|---|---|
| Fibonacci & Functions | Recursion, function calls, type hints |
| Arrays & Loops | Array literals, for-in, break/continue |
| Exception Handling | try/catch/throw |
| Concurrency & Structs | Struct instantiation, spawn/yield |
| Lambdas & Pipes | Lambda syntax, pipeline operator |
| Import Styles | Module, MCP, capability, polyglot, external imports |
| System Info | Sys/math capabilities, HTML generation |
| Build Pipeline | Multi-function decomposition, event sourcing, fail-fast |
| Async LLM Dashboard | async/await, DOM API, seahorse LLM integration |
Source locations:
exosphere/crates/core/crush-lang/tests/fixtures/— core language fixtures (exosphere repo)exosphere/tests/language/— integration testsexosphere/examples/crush-pipefish-dashboard/— real appexosphere-apps/crates/apps/super-surfer/apps/— web appsexosphere/crates/core/crush-lang/examples/— documented examples