Function enso_flexer::generate::specialize[][src]

pub fn specialize(
    definition: &impl State,
    state_type_name: impl Str,
    output_type_name: impl Str
) -> Result<String, GenError>
Expand description

Generate specialized code for the provided lexer definition.

This specialized code is a highly-optimised and tailored lexer that dispatches based on simple code-point switches, with no dynamic lookup. This means that it is very fast, and very low overhead.