Expand description
Parser for choreographic protocol syntax.
This module provides a full implementation using Pest grammar for parsing choreographic DSL specifications into the Protocol AST.
§Module Structure
error: Error types and span information for diagnosticstypes: Internal AST types for parsing (Statement, ChoiceBranch, etc.)role: Role parsing (declarations, references, indices, ranges)statement: Statement parsing (send, choice, loop, etc.)conversion: Protocol conversion and call inlining
Structs§
- Error
Span - Span information for error reporting
- Lint
Diagnostic - Structured lint diagnostic with optional fix suggestion.
Enums§
- Lint
Level - Lint level for parser diagnostics.
- Parse
Error - Parse errors that can occur during choreography parsing
- Rule
Constants§
- DEFAULT_
SOURCE_ EXTENSION - Canonical source-file extension for Telltale choreography files.
Functions§
- choreography_
macro - Example of how the macro entry point works.
- collect_
dsl_ lints - Collect DSL lint diagnostics for a parsed choreography.
- explain_
lowering - Produce a canonical lowering report for a DSL snippet.
- parse_
choreography - Parse a choreographic protocol from a token stream for macro use.
- parse_
choreography_ file - Parse a choreography from a file
- parse_
choreography_ str - Parse a choreographic protocol from a string
- parse_
choreography_ str_ with_ extensions - Parse a choreographic protocol from a string with extension support
- parse_
dsl - Parse choreography DSL
- render_
lsp_ lint_ diagnostics - Render lint diagnostics into a lightweight LSP-like JSON string.