Expand description
Scheme (R7RS-small) surface profile for the SIM runtime.
The kernel defines the codec, eval-policy, and Expr contracts; this crate
is a loadable language profile presenting a Scheme surface syntax over the
shared Expr graph, not a standalone interpreter.
Structs§
- Located
Scheme Lowering - A
SchemeLoweredvalue paired with its source origin. - Scheme
Base Export - A Scheme base-library export: a surface symbol and its description.
- Scheme
Codec - Decoder turning Scheme surface text into the shared
Exprgraph. - Scheme
Codec Lib - Loadable
Libthat registersSchemeCodecas a runtime codec. - Scheme
Form Spec - Specification of one R7RS-small surface form: its symbol, doc, match shape, and support status.
Enums§
- Scheme
Form Status - Whether a Scheme surface form is supported by this profile.
- Scheme
Lowered - Result of lowering a Scheme
Exprto a runtime value.
Functions§
- decode_
scheme_ tree - Decodes Scheme surface text into a located
Exprtree under codec budgets. - diagnose_
unsupported_ forms - Collects diagnostics for any deferred R7RS-small forms reachable in
expr. - install_
r7rs_ small_ profile - Installs the R7RS-small profile into a
ProfileRegistry, publishing its base-export card claims. - lower_
scheme_ expr - Lowers a single Scheme
Exprto aSchemeLoweredterm or datum. - lower_
scheme_ tree - Lowers a located Scheme tree, preserving its origin.
- parse_
scheme_ source - Parses one top-level Scheme form from source text into a located
Exprtree. - publish_
scheme_ base_ claims - Publishes idempotent base-export card claims for the supported forms.
- publish_
scheme_ base_ claims_ for_ lib - Publishes base-export card claims as part of a loaded lib receipt.
- r7rs_
small_ base_ exports - Returns the supported R7RS-small forms as base-library exports.
- r7rs_
small_ expr_ cases - R7RS-small expression round-trip cases for the Scheme row.
- r7rs_
small_ form_ specs - Returns the R7RS-small surface form specifications and their support status.
- r7rs_
small_ matrix_ row - Builds the Scheme R7RS-small matrix row.
- r7rs_
small_ profile - Builds the R7RS-small
LanguageProfile: reader, lowering, eval policy, organ uses, numeric tower, conformance test, fidelity badge, and the unsupported-form set. - r7rs_
small_ profile_ symbol - Stable identity symbol for the R7RS-small language profile.
- r7rs_
small_ stub_ cases - Minimal R7RS-small source cases for the matrix.
- run_
r7rs_ small_ conformance_ case - Runs one Scheme source conformance case through the R7RS-small restricted runner.
- run_
r7rs_ small_ restricted - Decodes and lowers Scheme
sourceunder untrusted, restricted capabilities. - run_
scheme_ matrix_ row - Runs the Scheme matrix row and publishes one claim-backed evidence record for each source case.
- scheme_
base_ export_ kind_ symbol - Card-kind symbol tagging published Scheme base-library exports.
- scheme_
conformance_ test_ symbol - Symbol naming the profile’s conformance test.
- scheme_
language_ card - Builds the Scheme profile Card with browseable conformance fields.
- scheme_
language_ card_ with_ generated_ coverage - Builds the Scheme profile Card and appends generated coverage fields.
- scheme_
lowering_ symbol - Symbol naming the Scheme surface-to-
Exprlowering pass. - scheme_
reader_ symbol - Codec symbol naming the Scheme surface reader.