Module ir

Module ir 

Source
Expand description

AI-Facing Intermediate Representation (IR)

This module provides a JSON-serializable IR designed for consumption by AI agents, language servers, and external tooling. The IR captures:

  • Function definitions with typed parameters and bodies
  • Pipeline operations (morphemes, transformations, forks)
  • Evidentiality annotations throughout
  • Type information including the evidentiality lattice
  • Control flow and data flow structures
  • Protocol operations with their trust boundaries

Structs§

EvidenceLevel
An evidence level in the lattice
EvidentialityLattice
The evidentiality lattice with explicit join/meet rules
IrAffect
Affect markers
IrConstant
Constant definition
IrDumpOptions
Configuration options for IR dump
IrField
A struct field
IrForIterator
For loop iterator
IrFunction
A function definition
IrGenericParam
A generic type parameter
IrImplBlock
Impl block
IrMatchArm
Match arm
IrModule
Top-level IR module representing a complete Sigil program
IrParam
A function parameter
IrPosition
IrSpan
Source location span
IrTraitDef
Trait definition
IrVariant
An enum variant
LatticeRule
A join/meet rule in the lattice

Enums§

BinaryOp
Binary operators
Confidence
Emotion
EvidenceOp
Evidence operations
Formality
HttpMethod
HTTP methods
IncorporationSegment
Incorporation segment (noun-verb)
Intensity
IrEvidence
Evidence marker enum matching AST Evidentiality
IrOperation
Core operation node - the heart of the IR
IrPattern
Pattern in IR
IrPipelineStep
Pipeline step
IrType
Type representation in IR
IrTypeDef
Type definition (struct, enum)
IrVisibility
Function visibility
JoinStrategy
Join strategy for fork operations
KafkaOpKind
Kafka operations
LiteralVariant
Literal variants
LoopVariant
Loop variants
MorphemeKind
Morpheme kinds
ProtocolOp
Protocol operations for pipeline
Sentiment
UnaryOp
Unary operators
WebSocketOp
WebSocket operations

Constants§

IR_VERSION
The version of the IR schema