Sample Echo programs that exercise the language and toolchain.
| Path | Role |
|---|---|
misc/ |
Tiny programs for xo run (codegen v1 demos) |
app/ |
Kitchen-sink surface + multi-file HTTP demo (xo check) |
algos/ |
Classic algorithms (mostly xo check until surface expands) |
cargo build -p xo
./target/debug/xo run examples/misc/hello.echo
./target/debug/xo run examples/misc/multi/main.echo
./target/debug/xo run examples/misc/sum_list.echo
./target/debug/xo run examples/app/surface.echo
./target/debug/xo run examples/algos/factorial.echo
./target/debug/xo run examples/algos/sort.echoImports use module scope: / std/io → io.print, not bare print.