Struct cfg::prediction::FollowSets
[−]
[src]
pub struct FollowSets { // some fields omitted }
FOLLOW sets.
Methods
impl FollowSets
fn new<'a, G>(grammar: &'a G, start_sym: Symbol, first_sets: &FirstSets) -> Self where G: ContextFree, &'a G: ContextFreeRef<'a, Target=G>
Compute all FOLLOW sets of the grammar. Returns FollowSets.
fn follow_sets(&self) -> &PerSymbolSets
Returns a reference to FOLLOW sets.