Skip to main contentCrate tiexiu
Source pub use api::*;
- api
- Functional API (free functions) and the OO
TieXiu wrapper. - cfg
- Configuration system for the parser engine.
- context
- Parsing context types (cursor, memoization, state).
- error
- Public error types and result alias.
- input
- Input sources and cursor abstractions.
- peg
- PEG grammar representation, compilation, and parsing.
- tools
- Visualization and diagramming utilities (e.g., railroad diagrams).
- trees
- Parse-tree types including
Tree and TreeMap. - util
- Internal utility modules (string tools, patterns, etc.).
- ensure
- PUBLIC: The standard result-based check.
It uses ensure_error! to do the heavy lifting.
- ensure_error
- INTERNAL: Captures the location and condition.
This is the “raw” macro that doesn’t return a Result,
just the struct itself.
- ParseError
- Error
- Unified error type for all TieXiu operations.
- Result
- Result type alias with
Error as the error variant.