marpa 0.3.0

Safe bindings to the libmarpa parsing engine
Documentation
1
2
3
4
5
6
7
use crate::thin::Symbol;
use std::fmt::{Debug, Display};

pub trait Token: From<(Symbol, i32)> + Display + Debug {
    fn sym(&self) -> Symbol;
    fn value(&self) -> i32;
}