1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
//! Prediction for predictive parsers.

// Based on code by Niko Matsakis.

mod distance;
mod first;
mod follow;

use std::collections::{BTreeMap, BTreeSet};

use symbol::Symbol;

pub use self::distance::MinimalDistance;
pub use self::first::FirstSets;
pub use self::follow::FollowSets;

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