Module ast

Module ast 

Source
Expand description

Abstract Syntax Tree for Sigil.

Represents the polysynthetic structure with evidentiality markers.

Structs§

ActorDef
Actor definition (concurrency).
Affect
Affective markers for sentiment and emotion tracking.
AsmOperand
An assembly operand (input or output).
AsmOptions
Assembly options/modifiers.
Attribute
An attribute applied to an item or crate. Outer: #[name] or #[name(args)] Inner: #![name] or #![name(args)]
Block
Code block.
ClosureParam
ConstDef
Const definition.
CrateConfig
Crate-level configuration derived from inner attributes.
EnumDef
Enum definition.
EnumVariant
ExternBlock
Foreign function interface block. extern "C" { fn foo(x: c_int) -> c_int; }
ExternFunction
Foreign function declaration (no body).
ExternStatic
Foreign static variable.
FieldDef
FieldInit
FieldPattern
Function
Function definition.
FunctionAttrs
Function attributes for low-level control.
Generics
Generic parameters.
Ident
Identifier with optional evidentiality and affect markers.
ImplBlock
Impl block.
IncorporationSegment
Incorporation segment.
InlineAsm
Inline assembly expression.
LinkerConfig
Linker configuration for bare-metal/OS development.
MatchArm
MemoryAttributes
Memory region attributes.
MemoryRegion
Memory region for linker scripts.
MessageHandler
Module
Module.
Param
Function parameter.
PathSegment
SectionConfig
Output section configuration.
SimdType
SIMD vector type.
SourceFile
A complete Sigil source file.
StaticDef
Static definition.
StructAttrs
Struct attributes including derive.
StructDef
Struct definition.
TargetConfig
Target-specific configuration.
TraitDef
Trait definition.
TypeAlias
Type alias.
TypePath
Type path with optional generics.
UseDecl
Use declaration.
WhereClause
Where clause for bounds.
WherePredicate

Enums§

AsmOperandKind
Assembly operand kind.
Aspect
Verb aspect for function semantics.
AtomicOp
Atomic operations.
AttrArg
A single argument in an attribute.
AttrArgs
Arguments to an attribute.
BinOp
Binary operators.
BuiltinTrait
Built-in trait definitions for game engines.
Confidence
Confidence level markers.
DeriveTrait
Built-in derivable traits.
Emotion
Emotion categories (Plutchik’s wheel).
Evidentiality
Evidentiality markers from the type system.
Expr
Expressions.
ExternItem
Items that can appear in an extern block.
Formality
Formality register.
GenericParam
GraphQLOpKind
GraphQL operation kinds for graphql· incorporation.
HttpMethod
HTTP methods for http· incorporation.
ImplItem
InlineHint
Inline hints for functions.
Intensity
Intensity modifiers.
InterpolationPart
Part of an interpolated string
Item
Top-level items.
KafkaOpKind
Kafka operation kinds for kafka· incorporation.
Literal
Literal values.
MemoryOrdering
Atomic memory ordering.
MorphemeKind
Morpheme kinds.
NumBase
Number bases.
Pattern
Patterns.
PipeOp
Pipe operation in a chain.
ProtocolKind
Protocol kinds for stream expressions.
Sentiment
Sentiment polarity markers.
SimdOp
SIMD intrinsic operations.
Stmt
Statements.
StructFields
StructRepr
Memory representation for structs.
TraitItem
TypeExpr
Type expressions.
UnaryOp
Unary operators.
UseTree
Visibility
Visibility modifier.
WebSocketMessageKind
WebSocket message kinds for ws· incorporation.