The module declaration_eval
Sandboxed .lex declaration evaluator module .
Runs inside a call host with zero grants: no writable store, no network and no root ring. The caller passes a .lex source, an optional dotted field path to force lazily, a read-only bundle of referenced files and declarations, and a lent memory object for the canonical serialized output or refusal.
See: Declarations: Text stops at the evaluation in the repository
declaration_eval module with no entry
- Hash
1b0271efc1c8272db4d938059c5b4c0f531b380651ed3dec995c7448eb5b31b8- Size
196608 bytes- Exports
1- Imports
0- Imported by
0- License
- MIT
Sandboxed .lex declaration evaluator module
| Fact | Value |
|---|---|
| Kind | Modules with no entry |
| Source | src/modules/system/declaration_eval |
| Boot image | yes: in the boot image, 196608 bytes in this build |
| Build settings | none: the defaults of the source |
| Imports | none |
| Imported by | none |
Neighbours
It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.
Exports
| Export | What it does |
|---|---|
evaluate(source: Bytes(Read), field_path: Bytes(Read), bundle: Bytes(Read), output: Handle(Read, Write)) -> Integer | parses and lazily evaluates a .lex declaration in mode declaration with zero side effects, forces field_path when non-empty, and writes the canonical serialized result or typed refusal record into output, returning the byte count written |
evaluate
evaluate(source: (Read), field_path: (Read), bundle: (Read), output: (Read, Write)) ->
evaluate parses and lazily evaluates a .lex declaration in mode declaration with zero side effects, forces field_path when non-empty, and writes the canonical serialized result or typed refusal record into output, returning the byte count written.
source: (Read)field_path: (Read)bundle: (Read)output: (Read, Write)
- When it fails
- a negative result, and the error record
src/modules/system/declaration_eval/declaration_eval.odin:62
Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).
Bytes wire form
A wire form of the module contract: one word of a call. Bytes with no description.
Handle wire form
A wire form of the module contract: one word of a call. A handle that the caller lends for the time of the call, in a register.
Integer wire form
A wire form of the module contract: one word of a call. A signed integer of 64 bits, in a register.
Error_Record record of a module
A record of the module declaration_eval: 56 bytes, aligned on 8 bytes, 0 bytes of padding.
kindi6408 bytesuniti6488 bytesoperationi64168 bytesargumenti64248 bytesvaluei64328 byteslimiti64408 bytesfoundi64488 bytes
