Trait Lexable
oxlex::lexable
pub trait Lexable: Sized + Clone + Eq + Hash + Debug { fn lexer<'source, S: Source<'source>>(source: S) -> Lexer<Self, S>; fn match_token(slice: &str) -> Vec<Self>; fn get_end_variant() -> Self; fn get_error_variant() -> Self; fn should_skip(&self) -> bool; fn is_inclusive(&self) -> bool; fn prio(&self) -> i8; }
fn lexer<'source, S: Source<'source>>(source: S) -> Lexer<Self, S>
fn match_token(slice: &str) -> Vec<Self>
fn get_end_variant() -> Self
fn get_error_variant() -> Self
fn should_skip(&self) -> bool
fn is_inclusive(&self) -> bool
fn prio(&self) -> i8