Language demos
Every .ilu under release/examples/ is a small official demo of the language. Paths below are relative to that folder in your install or tarball. Open Show source under any .ilu to load its full program text here. Run locally with ./ilusm from a checkout-see the embedded README below for conventions.
How to run
export ILUSM_HOME=$(pwd) ./ilusm release/examples/hello.ilu ./ilusm release/examples/domains/trl.ilu
Batch runner (in the repo): sh scripts/run_examples.sh. Recorded transcripts for domain snippets: Domain snippets page.
Examples folder guide
Purpose, conventions, and the full program list for release/examples/ are included below-loaded from the same guide text shipped with the language. Browse filenames in the tables on this page or open release/examples/ on disk after install.
Basics & I/O
hello.iluprn programgreet.ilutxt join and case operationsreverse_line.ilutxt.rev string reversalword_count.ilulen word countingfactorial.ilumth factorial functionfizzbuzz.iluloop_sum.iluwhl loop exampleuse-trl.ilufil and mapuse-txt.iluparse_json.iluread_file_json.iluosrd + JSON parsingenv_home.iluILUSM_HOME environmentargv_echo.iluMini-games
guess_game.ilunim_transcript.iluCapability showcases
showcase_telemetry.ilutrl + mthshowcase_stack.ilutxt, trl, jsn, encshowcase_checked_pipeline.ilutestSVG generators
svg_showcase_particles.iludet, colr, trl, mth)svg_showcase_mandelbrot.ilusvg_showcase_flow.ilusvg_showcase_poster.ilusvg_showcase_obs.iluobs + jsn metrics barsDomain snippets
domains/trl.ilutrl - list transformsdomains/txt.ilutxt - text utilitiesdomains/jsn.ilujsn - JSON streamingdomains/json.ilujson - JSON encode/decodedomains/enc.iluenc - encodingdomains/mth.ilumth - math functionsdomains/sort.ilusort - sortingdomains/bit.ilubit - bitwise operationsCategory composites
category_testing.ilucategory_txt_trl.ilucategory_json_encode.ilucategory_data_wire.ilucategory_mth_sort.ilucategory_results.iluMore context: Category composites on this page, Domain snippets, and under release/examples/ the folders categories/ and domains/.