Enum hime_redist::lexers::impls::Lexer
source · pub enum Lexer<'s, 't, 'a> {
ContextFree(ContextFreeLexer<'s, 't, 'a>),
ContextSensitive(ContextSensitiveLexer<'s, 't, 'a>),
}
Expand description
Represents a lexer
Variants§
ContextFree(ContextFreeLexer<'s, 't, 'a>)
A context-free lexer
ContextSensitive(ContextSensitiveLexer<'s, 't, 'a>)
A context-sensitive lexer
Implementations§
source§impl<'s, 't, 'a> Lexer<'s, 't, 'a>
impl<'s, 't, 'a> Lexer<'s, 't, 'a>
sourcepub fn get_data_mut(&mut self) -> &mut LexerData<'s, 't, 'a>
pub fn get_data_mut(&mut self) -> &mut LexerData<'s, 't, 'a>
Gets the data for the lexer
sourcepub fn get_next_token(
&mut self,
contexts: &dyn ContextProvider
) -> Option<TokenKernel>
pub fn get_next_token( &mut self, contexts: &dyn ContextProvider ) -> Option<TokenKernel>
Gets the next token in the input
Auto Trait Implementations§
impl<'s, 't, 'a> RefUnwindSafe for Lexer<'s, 't, 'a>
impl<'s, 't, 'a> Send for Lexer<'s, 't, 'a>
impl<'s, 't, 'a> Sync for Lexer<'s, 't, 'a>
impl<'s, 't, 'a> Unpin for Lexer<'s, 't, 'a>
impl<'s, 't, 'a> !UnwindSafe for Lexer<'s, 't, 'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more