Function enso_flexer::generate::dispatch_in_state[][src]

pub fn dispatch_in_state(dfa: &Dfa, id: usize) -> Result<ImplItem, GenError>
Expand description

Generate the dispatch function for a given lexer state.

This dispatch function is responsible for dispatching based on the sub-state of any given lexer state, and is the main part of implementing the actual lexer transitions.