Skip to main content

Lexer

Trait Lexer 

Source
pub trait Lexer: Recognizer {
    // Required methods
    fn mode(&self) -> i32;
    fn set_mode(&mut self, mode: i32);
    fn push_mode(&mut self, mode: i32);
    fn pop_mode(&mut self) -> Option<i32>;
}

Required Methods§

Source

fn mode(&self) -> i32

Source

fn set_mode(&mut self, mode: i32)

Source

fn push_mode(&mut self, mode: i32)

Source

fn pop_mode(&mut self) -> Option<i32>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<I> Lexer for BaseLexer<I>
where I: CharStream,