class

Pegasus::Pda::LookaheadItem

Inherits Pegasus::Pda::DottedItem / Reference / Object

A superclass of the DottedItem which also keeps a lookahead set to further distinguish it in LR(1) parser construction.

Constructors

new(item, lookahead : Set(Pegasus::Elements::LookaheadElement), index = 0_i64)

Creates a new lookahead dotted item.

Source

Instance methods

==(other : LookaheadItem)

Compares this dotted item to another dotted item.

Source
hash(hasher)

Hashes this dotted item.

Source
insert_reduce?(action_table, state, self_index)
Source
insert_shift?(action_table, state)
Source
lookahead

The lookahead set of this dotted item.

Source
to_s(io)
Source