class

Pegasus::Pda::DottedItem

Inherits Reference / Object

An item with a "dot", which keeps track of how far the item is in terms of being parsed.

Constructors

new(item : Pegasus::Pda::Item, index : Int64 = 0_i64)

Creates a new dotted item.

Source

Instance methods

==(other : DottedItem)

Compares this item to another dotted item, including the index.

Source
done?

Checks if this dotted item is done.

Source
hash(hasher)

Hashes this dotted item.

Source
index

The index in the body of the production rule.

Source
item

The production rule this dotted item wraps.

Source
next_item

Creates a new item assuming a shift took place.

Source
next_item!

Turns this item into the next item assuming a shift took place.

Source
to_s(io)
Source