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.
| Module | Import | What it gives you |
|---|---|---|
core.io | << core.io | Output to file descriptors and stdin: print / eprint / write, the stdout / stderr descriptors, and the deferred @readStdin line read. |
core.test.report | << core.test.report | The test harness quilon test runs and the report it prints: describe / it and reportSuite / reportCase / reportSummary. Pulls in core.test. |
core.test | << core.test | What 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.cli | Pipe-friendly helpers over the entry point’s args / env: getEnv / hasFlag / getOpt. |
core.time | << core.time | Time primitives: the @sleep pause and the monotonic now() clock. |
core.net | << core.net | Networking: 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.