eval::examples
eval/src/examples.mo
The /try page's example programs, in one place so the UI
(motes/try_ui/src/app.mo) and the engine's end-to-end tests
(motes/try_engine/src/tests/pipeline_tests.mo) cannot drift: the tests
evaluate every source below through the real pipeline on every sweep.
Each source is a complete module for the scratchpad contract: a zero-arg,
pure main, no std/lib:: imports, no floats, and small enough for the
engine's 2,000,000-step / depth-200 budget. use init::… is allowed.
pub struct TryExample {
name : String,
source : String
}The /try page's example programs, in one place so the UI
(motes/try_ui/src/app.mo) and the engine's end-to-end tests
(motes/try_engine/src/tests/pipeline_tests.mo) cannot drift: the tests
evaluate every source below through the real pipeline on every sweep.
Each source is a complete module for the scratchpad contract: a zero-arg,
pure main, no std/lib:: imports, no floats, and small enough for the
engine's 2,000,000-step / depth-200 budget. use init::… is allowed.
pub def try_examples : List TryExample