[−][src]Struct antlr_rust::lexer_atn_simulator::LexerATNSimulator
Methods
impl LexerATNSimulator
[src]
pub fn new_lexer_atnsimulator(
atn: Arc<ATN>,
decision_to_dfa: Arc<Vec<DFA>>,
shared_context_cache: Arc<PredictionContextCache>
) -> LexerATNSimulator
[src]
atn: Arc<ATN>,
decision_to_dfa: Arc<Vec<DFA>>,
shared_context_cache: Arc<PredictionContextCache>
) -> LexerATNSimulator
pub fn get_dfa(&self) -> &DFA
[src]
pub fn get_dfa_for_mode(&self, mode: usize) -> &DFA
[src]
Trait Implementations
impl IATNSimulator for LexerATNSimulator
[src]
fn shared_context_cache(&self) -> &PredictionContextCache
[src]
fn atn(&self) -> &ATN
[src]
fn decision_to_dfa(&self) -> &Vec<DFA>
[src]
impl ILexerATNSimulator for LexerATNSimulator
[src]
fn reset(&mut self)
[src]
fn match_token(
&mut self,
mode: usize,
lexer: &mut dyn Lexer
) -> Result<isize, ANTLRError>
[src]
&mut self,
mode: usize,
lexer: &mut dyn Lexer
) -> Result<isize, ANTLRError>
fn get_char_position_in_line(&self) -> isize
[src]
fn set_char_position_in_line(&mut self, column: isize)
[src]
fn get_line(&self) -> isize
[src]
fn set_line(&mut self, line: isize)
[src]
fn get_text(&self, _input: &dyn CharStream) -> String
[src]
fn consume(&self, _input: &mut dyn CharStream)
[src]
fn recover(&mut self, _re: ANTLRError, input: &mut dyn CharStream)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for LexerATNSimulator
impl !Send for LexerATNSimulator
impl !Sync for LexerATNSimulator
impl Unpin for LexerATNSimulator
impl !UnwindSafe for LexerATNSimulator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,