Expand description
Abstract Syntax Tree definitions for the Symbiont DSL
Structs§
- Agent
Definition - Agent definition
- Agent
Metadata - Agent metadata
- Assignment
- Assignment expression
- Behavior
Definition - Behavior definition
- Binary
Operation - Binary operation
- Block
- Block of statements
- Check
Statement - Check statement for policies
- Conditional
Expression - Conditional expression (ternary operator)
- Duration
Value - Duration value with unit
- ElseIf
- Else-if clause
- Emit
Statement - Emit statement for events
- Event
Handler - Event handler definition
- Field
Access - Field access (e.g., obj.field)
- ForStatement
- For loop statement
- Function
Call - Function call
- Function
Definition - Function definition
- Identifier
- Identifier
- IfStatement
- If statement
- Index
Access - Index access (e.g., arr[0])
- Invoke
Expression - Invoke expression for behavior invocation
- Lambda
Expression - Lambda expression
- LetStatement
- Let statement for variable binding
- List
Expression - List expression
- MapEntry
- Map entry
- MapExpression
- Map expression
- Match
Arm - Match arm
- Match
Statement - Match statement for pattern matching
- Method
Call - Method call (e.g., obj.method(args))
- Parameter
- Parameter definition
- Parameter
List - Parameter list for functions and behaviors
- Policy
Config - Policy configuration
- Program
- Root AST node representing a complete DSL program
- Require
Statement - Require statement for capabilities
- Resource
Config - Resource configuration
- Return
Statement - Return statement
- Security
Config - Security configuration
- Size
Value - Size value with unit
- Source
Location - Source location information for error reporting and debugging
- Span
- Span of source code
- Struct
Definition - Struct definition
- Struct
Field - Struct field
- TryStatement
- Try-catch statement
- Unary
Operation - Unary operation
- While
Statement - While loop statement
Enums§
- Binary
Operator - Binary operators
- Declaration
- Top-level declarations in the DSL
- Duration
Unit - Duration units
- Expression
- Expression types
- Failure
Action - Failure actions
- Literal
- Literal values
- Pattern
- Pattern for matching
- Requirement
Type - Requirement types
- Sandbox
Mode - Sandbox modes
- Security
Tier - Security tier levels
- Size
Unit - Size units
- Statement
- Statement types
- Type
- Type definitions
- Unary
Operator - Unary operators
Traits§
- AstVisitor
- Visitor trait for traversing the AST
- AstVisitor
Mut - Mutable visitor trait for transforming the AST