pub struct LastSets { /* private fields */ }
Expand description
FIRST sets.
Implementations§
Source§impl LastSets
impl LastSets
Sourcepub fn new<G>(grammar: &G) -> Selfwhere
G: RuleContainer + Default,
pub fn new<G>(grammar: &G) -> Selfwhere
G: RuleContainer + Default,
Compute all LAST sets of the grammar.
We define a binary relation LAST(N, S), in which N is related to S
if the grammar has a production of the form N ⸬= α S β
, where
β is a nullable string of symbols.
We compute the transitive closure of this relation.
Trait Implementations§
Source§impl PredictSets for LastSets
impl PredictSets for LastSets
Source§fn predict_sets(&self) -> &PerSymbolSets
fn predict_sets(&self) -> &PerSymbolSets
Returns a reference to FIRST sets.
Auto Trait Implementations§
impl Freeze for LastSets
impl RefUnwindSafe for LastSets
impl Send for LastSets
impl Sync for LastSets
impl Unpin for LastSets
impl UnwindSafe for LastSets
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more