Skip to main content

Module content

Module content 

Source
Expand description

Embedded guide content for the Programmer’s Guide page.

Every section of the Programmer’s Guide as Rust constants: WASM cannot read files at runtime, so the content is embedded at compile time.

Structs§

CodeExample
A code example within a section
Exercise
A “now you try” challenge: the reader writes code (Imperative — graded by exact program output), a page (Web — graded by its own ## Test blocks) or FOL (Logic — graded structurally by the Learn grader), right in the guide.
Misconception
“Coming from X you’d expect A; LOGOS does B because C” — stated first in the reader’s voice, then proven by a runnable example.
RecapQuestion
One end-of-section retrieval prompt: question → recall → reveal → self-mark. Free recall, never multiple-choice (recognition ≠ production).
Section
A section of the guide

Enums§

ExampleMode
Mode for code examples - determines how “Run” executes them
ExerciseKind
The rung an exercise occupies on the worked→completion→free ladder (Sweller/Renkl fading). Within a section, support only ever fades.
Runnability
How an example behaves in the browser playground. The single source of truth shared by the Run-button affordance, the badge, AND the test harness partition (tests/guide_examples.rs) — the three can never disagree.

Constants§

HOLE_MARKER
The canonical hole token for Completion starters: greppable, never valid LOGOS, unmistakably a blank to fill.

Statics§

SECTIONS
All guide sections in display order, concatenated from the per-part modules.