Module ast

Module ast 

Source
Expand description

Abstract Syntax Tree for Seq

Minimal AST sufficient for hello-world and basic programs. Will be extended as we add more language features.

Structs§

MatchArm
A single arm in a match expression
Program
QuotationSpan
Source span for a quotation, supporting multi-line ranges
SourceLocation
Source location for error reporting and tooling
Span
Source span for a single token or expression
UnionDef
A union type definition Example:
UnionField
A field in a union variant Example: response-chan: Int
UnionVariant
A variant in a union type Example: Get { response-chan: Int }
WordDef

Enums§

Include
Include statement
Pattern
A pattern in a match expression For Phase 1: just the variant name (stack-based matching) Later phases will add field bindings: Get { chan }
Statement