Skip to content

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 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

Run these commands from the Cerune repository root with the installed CLI:

ターミナルウィンドウ
cerune run examples/hello.ceru
cerune run examples/functions.ceru