cfg-predict 0.0.1

Library for manipulating context-free grammars.
Documentation
1
2
3
4
5
6
7
8
9
10
use std::collections::{BTreeMap, BTreeSet};

use cfg_symbol::Symbol;

/// The representation of FIRST and FOLLOW sets.
pub type PerSymbolSets = BTreeMap<Symbol, BTreeSet<Option<Symbol>>>;

pub trait PredictSets {
    fn predict_sets(&self) -> &PerSymbolSets;
}