Struct antlr_rust::lexer_atn_simulator::LexerATNSimulator [−][src]
pub struct LexerATNSimulator { /* fields omitted */ }
Expand description
Simple DFA implementation enough for lexer.
Implementations
pub fn new_lexer_atnsimulator(
atn: Arc<ATN>,
decision_to_dfa: Arc<Vec<RwLock<DFA>>>,
shared_context_cache: Arc<PredictionContextCache>
) -> LexerATNSimulator
pub fn new_lexer_atnsimulator(
atn: Arc<ATN>,
decision_to_dfa: Arc<Vec<RwLock<DFA>>>,
shared_context_cache: Arc<PredictionContextCache>
) -> LexerATNSimulator
Creates LexerATNSimulator
instance which creates DFA over atn
Called from generated parser.
Returns current DFA for particular lexer mode