lyn 0.1.0

A scanner useful for creating recursive descent parsers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(Debug, PartialEq, Clone)]
pub enum Action<T> {
    /// If next iteration returns None, return T without advancing
    /// the cursor.
    Request(T),

    /// If the next iteration returns None, return None without advancing
    /// the cursor.
    Require,

    /// Immediately advance the cursor and return T.
    Return(T),
}