Struct hime_redist::parsers::LRExpected [] [src]

pub struct LRExpected {
    pub shifts: Vec<Symbol>,
    pub reductions: Vec<Symbol>,
}

Container for the expected terminals for a LR state

Fields

The terminals expected for shift actions

The terminals expected for reduction actions

Methods

impl LRExpected
[src]

[src]

Initializes this container

[src]

Adds the specified terminal as expected on a shift action If the terminal is already added to the reduction collection it is removed from it.

[src]

Adds the specified terminal as expected on a reduction action If the terminal is in the shift collection, nothing happens.

Trait Implementations

Auto Trait Implementations

impl Send for LRExpected

impl Sync for LRExpected