peg 0.8.5

A simple Parsing Expression Grammar (PEG) parser generator.
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate peg;

peg::parser!(grammar foo() for str { 
    #[cache]
    rule foo(x: u32) = "foo" //~ ERROR

    #[cache]
    rule ltarg<'a>() -> &'a str = { "" } //~ ERROR
});

fn main() {}