Expand description
Flexible Parser System for Advanced CSS Parsing
This module provides enhanced parser combinators that overcome the limitations of the current TokenParser system:
- Heterogeneous Sequences: Parse sequences with mixed types
- Context-Aware Parsing: Switch behavior based on parsing context
- Backtracking Support: Try multiple parsing strategies
- Dynamic Type Handling: Flexible value mixing
Key features:
- FlexParser for mixed-type parsing
- Advanced combinators (try_all, mixed_sequence, context_parser)
- Enhanced error handling with suggestions
- Performance optimizations
Modules§
- smart_
tokens - Smart token parsers with automatic value extraction
Structs§
- Flex
Combinators - Enhanced combinators for flexible parsing
Enums§
- Parse
Context - Parse context for context-aware parsing
Traits§
Functions§
Type Aliases§
- Flex
Parser - Parser that can return any CSS value type - enables flexible parsing