Skip to main content

Module ir

Module ir 

Source
Expand description

Core IR types for surface syntax translation.

This IR is deliberately minimal and opcode-agnostic. It represents common programming constructs without domain-specific knowledge.

Domain operations like lotus.spawn_entity(x) are just function calls - the runtime (spore) provides the actual implementations.

Structs§

Function
A function definition.
Program
A complete program/module.

Enums§

BinaryOp
Binary operators.
Expr
An expression that produces a value.
Literal
Literal values.
Stmt
A statement (doesn’t produce a value directly).
UnaryOp
Unary operators.

Traits§

StructureEq
Trait for structural equality comparison.