Examples
Executable Cerune examples are maintained in the core repository’s examples/ directory. This site describes their purpose and how to run them without maintaining duplicate source files.
Example list
Section titled “Example list”| Example | Description |
|---|---|
| hello.ceru | Variables and integer addition; prints 42 |
| functions.ceru | Parameters, return values, and calls |
| array_iteration.ceru | Array iteration |
| floating_point.ceru | Calculations using f32 and f64 |
Running an example
Section titled “Running an example”Run these commands from the Cerune repository root with the installed CLI:
cerune run examples/hello.cerucerune run examples/functions.ceru