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§
- 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.
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. - Expr
- Shared expression type for pure computations (LOGOS §15.0.0).
- Literal
- Literal values in LOGOS.
- Pattern
- Pattern for loop variable binding. Supports single identifiers and tuple destructuring for Map iteration.
- Read
Source - Source for Read statements.
- 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.
- 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.