Skip to main content

Module stmt

Module stmt 

Source
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 generics
  • Literal: 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§

CaseTable
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.
FailureSite
One entry in Parser::failure_sites — everything a runtime failure needs to point BACK at the sentence a Stmt::Site marker stood in front of.
MatchArm
Match arm for pattern matching in Inspect statements.
SecurePad
The with pad "<path>" as <role> binding on a Connect/Listen — activate the PNP one-time-pad session over the pad file at pad, with this peer taking role.
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.
TestCapabilities
Which sealed-world resources a ## Test may 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 --live set.

Enums§

BinaryOpKind
Binary operation kinds for imperative expressions.
ClosureBody
Body of a closure expression.
CompressionCodec
The wire compression codec a Send compressed [with <codec>] selects. The transpiler maps this to the runtime’s wire codec; bare compressed = Deflate.
DomQuery
What the <thing> of <selector> asks the page.
ExpectedOutput
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).
FetchMethod
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.
PropDomain
The domain a property quantifies over (For all integers a and b:). Generation draws from this; shrinking minimizes toward the domain’s zero.
ReadSource
Source for Read statements.
Role
Which position a UiStmt may be written in — the partition UiStmt::role holds to, cross- checked against action_verb_tier_lock’s own census (which verbs compile inside Actions:) and page_host::Drive (which verbs carry a ## Main/## Test statement to a page under test), so the two catalogues cannot silently drift apart.
SecureRole
Imperative statement AST (LOGOS §15.0.0).
SelectBranch
A branch in a Select statement.
SendLayout
The wire LAYOUT a Send modifier 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
StringPart
A segment of an interpolated string.
TypeExpr
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 an Element.
ZoneSource
Backing-file source for a memory-mapped zone (… mapped from <here>). Inside a zone called "D" mapped from "f.bin" is ZoneSource::Literal; … mapped from path (a runtime Text variable) is ZoneSource::Variable.

Type Aliases§

Block
Block is a sequence of statements.