1 2 3 4 5 6 7 8 9
use crate::cursor::Position; // A context for a lexer / parser (flexar) pub trait Flext { fn advance(&mut self); fn revance(&mut self); fn spawn(&self) -> Self; fn position(&self) -> Position; }