camxes-rs 0.1.0

A Parsing Expression Grammar (PEG) parser generator with zero-copy parsing and rich debugging capabilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! A Parsing Expression Grammar (PEG) parser generator
//!
//! # Example
//! ```rust
//! use camxes_rs::peg::grammar::Peg;
//!
//! let grammar = r#"
//! start <- 'hello' 'world'
//! "#;
//!
//! let parser = Peg::new("start", grammar).unwrap();
//! let result = parser.parse("hello world");
//! ```

pub mod peg;