pub fn detect_left_recursions(grammar: &Cfg) -> HashSet<Vec<NtNodeType>>
Expand description

Detects left recursions. The result is a collection of vectors of NtNodeType. The vectors of nodes are cycles in the NtGrammarGraph.