Expand description
Imperative statement AST types for the LOGOS language.
This module defines statement types for the imperative fragment including:
Stmt: Statement variants (let, if, match, while, for, function defs)Expr: Imperative expressions (field access, method calls, literals)TypeExpr: Type annotations with refinements and genericsLiteral: Literal values (numbers, strings, booleans)Block: Statement blocks with optional return expressions
The imperative AST is used in LOGOS mode for generating executable Rust code.
Structs§
- Case
Table - A table-driven test’s case fixture:
For each of these cases:followed by a markdown pipe table. Columns bind names in the test body’s scope; each data row is a named sub-test. - Failure
Site - One entry in
Parser::failure_sites— everything a runtime failure needs to point BACK at the sentence aStmt::Sitemarker stood in front of. - Match
Arm - Match arm for pattern matching in Inspect statements.
- Secure
Pad - The
with pad "<path>" as <role>binding on aConnect/Listen— activate the PNP one-time-pad session over the pad file atpad, with this peer takingrole. - StmtId
- A statement’s identity: where it lives. Stable for as long as the AST it was taken from is alive; a statement copied into a new block is a new identity. Diagnostics use it to name the exact statement a finding is about, nested ones included.
- Test
Capabilities - Which sealed-world resources a
## Testmay really touch, granted by capability sentences (This test may use the real filesystem.). Everything defaults to sealed; a granted capability moves the test to the--liveset.
Enums§
- Binary
OpKind - Binary operation kinds for imperative expressions.
- Closure
Body - Body of a closure expression.
- Compression
Codec - The wire compression codec a
Send compressed [with <codec>]selects. The transpiler maps this to the runtime’s wire codec; barecompressed=Deflate. - DomQuery
- What
the <thing> of <selector>asks the page. - Expected
Output - Where an
Expect output:snapshot lives: indented in the document, or in an external golden file (Expect output as in "golden/report.txt".). - Expr
- Shared expression type for pure computations (LOGOS §15.0.0).
- Fetch
Method - The HTTP method of a
Stmt::Fetch. - Literal
- Literal values in LOGOS.
- ObsCategory
- The speech-act category of an observation statement: audience + retention, not a numeric level.
- Pattern
- Pattern for loop variable binding. Supports single identifiers and tuple destructuring for Map iteration.
- Prop
Domain - The domain a property quantifies over (
For all integers a and b:). Generation draws from this; shrinking minimizes toward the domain’s zero. - Read
Source - Source for Read statements.
- Role
- Which position a
UiStmtmay be written in — the partitionUiStmt::roleholds to, cross- checked againstaction_verb_tier_lock’s own census (which verbs compile insideActions:) andpage_host::Drive(which verbs carry a## Main/## Teststatement to a page under test), so the two catalogues cannot silently drift apart. - Secure
Role - Imperative statement AST (LOGOS §15.0.0).
- Select
Branch - A branch in a Select statement.
- Send
Layout - The wire LAYOUT a
Sendmodifier picks — the size↔speed dial the sender chooses for their link. The transpiler maps this to the runtime’s numeric codec. The sender knows their use case; this lets them express it in one word. - Stmt
- String
Part - A segment of an interpolated string.
- Type
Expr - Type expression for explicit type annotations.
- UiStmt
- What a component action can do to the page, the browser, storage or a store. Each is a
sentence in the
Actions:vocabulary; the selector forms take a selector TEXT or anElement. - Zone
Source - Backing-file source for a memory-mapped zone (
… mapped from <here>).Inside a zone called "D" mapped from "f.bin"isZoneSource::Literal;… mapped from path(a runtimeTextvariable) isZoneSource::Variable.
Type Aliases§
- Block
- Block is a sequence of statements.