pub trait Config {
// Required methods
fn cat_code(&self, c: char) -> CatCode;
fn end_line_char(&self) -> Option<char>;
}
Expand description
Configuration for a specific instance of the Lexer
.
A Rust type implementing this trait is provided when getting the next token from the lexer.
Required Methods§
sourcefn cat_code(&self, c: char) -> CatCode
fn cat_code(&self, c: char) -> CatCode
Return the current category code of the provided character.
sourcefn end_line_char(&self) -> Option<char>
fn end_line_char(&self) -> Option<char>
Return the current end of line character.