Skip to main content

Module ast

Module ast 

Source

Structs§

AgentDef
Top-level agent definition: agent Name { fn handle(msg: trit) -> trit { ... } } v0.1: agents have a single handle method that processes each incoming message.
Function
ImportSpec
A from <source> import <names> statement.
Program
StructDef
Top-level struct definition: struct Name { field: type, ... }

Enums§

BinOp
Expr
ImportNames
What to pull out of the import source.
ImportSource
Source of a from ... import statement.
Stmt
Type
UnOp