Skip to main content

Module ast

Module ast 

Source
Expand description

AST node definitions for wirespec.

These correspond to the canonical AST schema defined in AST_SCHEMA_SPEC.md. The AST is syntax-oriented: it preserves source structure, declaration order, and field order. It does NOT perform name resolution, type checking, or any semantic analysis.

Structs§

AstAnnotation
AstAssignment
AstCapsuleDecl
AstConstDecl
AstContinuationVarIntDecl
AstDelegateClause
AstDerivedField
AstEnumDecl
AstEnumMember
AstEventDecl
AstEventParam
AstExternAsn1
AstFieldDef
AstFlagsDecl
AstFrameBranch
AstFrameDecl
AstImport
AstMatchBranch
AstModule
Root of a parsed .wspec file.
AstModuleDecl
AstPacketDecl
AstRequireClause
AstStateDecl
AstStateFieldDef
AstStateMachineDecl
AstStaticAssertDecl
AstTransitionDecl
AstTypeDecl

Enums§

Asn1Length
AstAnnotationArg
AstArrayCount
AstBytesKind
AstExpr
AstFieldItem
AstLiteralValue
AstPattern
AstPayloadTagSelector
AstTopItem
AstTypeDeclBody
AstTypeExpr
AstVerifyDecl
AstVerifyFormula
A verify formula — simplified temporal logic expression
BinOp
UnaryOp