Struct perplex::first::FirstSets [−][src]
pub struct FirstSets(_);
All first sets of a grammar.
Methods
impl FirstSets
[src]
impl FirstSets
pub fn compute(grammar: &Grammar) -> FirstSets
[src]
pub fn compute(grammar: &Grammar) -> FirstSets
Compute the first sets of a grammar.
pub fn all(&self) -> &[FirstSet]
[src]
pub fn all(&self) -> &[FirstSet]
Get the first sets in the grammar.
pub fn get(&self, nt: NonterminalId) -> &FirstSet
[src]
pub fn get(&self, nt: NonterminalId) -> &FirstSet
Get the first set of a specific nonterminal in the grammar.
Trait Implementations
impl Debug for FirstSets
[src]
impl Debug for FirstSets
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for FirstSets
[src]
impl Clone for FirstSets
fn clone(&self) -> FirstSets
[src]
fn clone(&self) -> FirstSets
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for FirstSets
[src]
impl PartialEq for FirstSets
fn eq(&self, other: &FirstSets) -> bool
[src]
fn eq(&self, other: &FirstSets) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FirstSets) -> bool
[src]
fn ne(&self, other: &FirstSets) -> bool
This method tests for !=
.
impl Eq for FirstSets
[src]
impl Eq for FirstSets
impl Hash for FirstSets
[src]
impl Hash for FirstSets