Skip to content

Corelib

The corelib — Quilon’s standard library — ships with the compiler; import a module with << core.<module>. Each has its own API reference under docs/corelib/: signatures, behavior, and a small example per function.

ModuleImportWhat it gives you
core.io<< core.ioOutput to file descriptors and stdin: print / eprint / write, the stdout / stderr descriptors, and the deferred @readStdin line read.
core.test.report<< core.test.reportThe test harness quilon test runs and the report it prints: describe / it and reportSuite / reportCase / reportSummary. Pulls in core.test.
core.test<< core.testWhat a harness and reporter are built from: failAt for a check of your own, the run’s recorded state (casesPassed / casesFailed / nestingDepth), and the case lifecycle (enterSuite / leaveSuite / caseFailing / finishCase). Defines no describe / it / report*, so a reporter of your own can. The assertions need no import at all: assert / expect and their matchers are compiler-provided.
core.cli<< core.cliPipe-friendly helpers over the entry point’s args / env: getEnv / hasFlag / getOpt.
core.time<< core.timeTime primitives: the @sleep pause and the monotonic now() clock.
core.net<< core.netNetworking: the deferred @tcpRequest raw TCP request exchange the HTTP client sits on.

Text and the operators are built-ins and need no import. The concurrency model that governs the @ leaf primitives (@readStdin, @sleep) is language semantics — see that section.