Crate synkit
Source - config
- Parser configuration for resource limits and behavior tuning.
- traits
- Core traits for the synkit parsing framework.
- declare_tokens
- Generates a token enum with Logos lexer integration.
- parser_kit
- Generates a complete parser infrastructure from a token specification.
- Delimited
- A value enclosed by delimiters (e.g., brackets, braces, parentheses).
- ParseConfig
- Configuration for parser behavior and resource limits.
- Punctuated
- A punctuated sequence with optional trailing separator.
- PunctuatedInner
- Internal storage for punctuated sequences.
- RecursionGuard
- Tracks recursion depth during parsing.
- Repeated
- A sequence of repeated items with separators.
- RepeatedItem
- A single item in a
Repeated sequence, holding a value and optional separator. - Separated
- A punctuated sequence where trailing separator is forbidden.
- Terminated
- A punctuated sequence with required trailing separator.
- Error
- Core synkit error type.
- TrailingPolicy
- Policy for trailing punctuation in punctuated sequences.
- Diagnostic
- Diagnostic formatting for error messages.
- Parse
- Trait for types that can be parsed from a token stream.
- Peek
- Trait for lookahead without consuming tokens.
- Printer
- Trait for building formatted text output.
- SpanLike
- A span representing a source location range.
- SpannedError
- Error that can have a span attached.
- SpannedLike
- A value paired with its source location span.
- ToTokens
- Trait for converting AST nodes back to text.
- TokenStream
- A stream of tokens for parsing.