Expand description
For an introduction and context view, read…
A very basic example…
extern crate dpr;
fn main() -> Result<(), dpr::Error> {
let result = dpr::Peg::new(
"
main = char+
char = 'a' -> A
/ 'b' -> B
/ .
",
)
.gen_rules()?
.parse("aaacbbabdef")?
.replace()?
// ...
;
println!("{:#?}", result);
Ok(())
}
Please, read README.md for more context information
Structs§
- FnCall
Back - Type to user defined funtions callbacks
- Peg
- Peg type for fluent API
Enums§
- Error
- Errors for fluent API
Functions§
- print_
rules2parse_ peg2 - A parser for the parser.