Registry / other / pom
library3.4.0rscratesunverified

PEG parser combinators using operator overloading without macros.

# Cargo.toml [dependencies] pom = "3.4.0"
INSTALL
IMPORT
SIG · POM
P
pom
otherrustv3.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Parser
use pom::parser::Parser;

Parse a simple sequence 'ab' using PEG combinators.

use pom::parser::Parser; use pom::parser::*; fn main() { let parser = sym(b'a') * sym(b'b'); let result = parser.parse(b"ab"); assert!(result.is_ok()); }
Debug
Known issues
gotchaOperator overloading can lead to confusing error messages and debugging difficulty.
fix
Use explicit combinator methods (e.g., `seq`, `one_of`) instead of overloaded operators for clarity.
affects: *
Upgrade
Version history
3.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
pom — cargo add pom · libregistry