Function parol::analysis::first::first_k

source ยท
pub fn first_k(
    grammar_config: &GrammarConfig,
    k: usize,
    first_cache: &FirstCache,
) -> FirstSet
Expand description

Calculates the FIRST k sets for all productions of the given grammar. The indices in the returned vector correspond to the production number.