pub trait LexingRule {
// Required method
fn lex(&self, text: &str, state: &mut LexState) -> usize;
}
Expand description
This trait is used by the crate::parser::lex_next_token
function and is implemented
for rule passed to the macro which can be either a string literal, or a function