Macro dynparser::dot

source ·
macro_rules! dot {
    () => { ... };
}
Expand description

Atom::Dot (any character)

example

#[macro_use]  extern crate dynparser;
use dynparser::parse;

fn main() {
    let rules = rules!{
       "main"   =>  and!(dot!(), dot!())
    };

    assert!(parse("aa", &rules).is_ok())
}