class Pegasus::Pda::DottedItem
- Pegasus::Pda::DottedItem
- Reference
- Object
Overview
An item with a "dot", which keeps track of how far the item is in terms of being parsed.
Direct Known Subclasses
Defined in:
pegasus/items.crConstructors
-
.new(item : Pegasus::Pda::Item, index : Int64 = 0_i64)
Creates a new dotted item.
Instance Method Summary
-
#==(other : DottedItem)
Compares this item to another dotted item, including the index.
-
#done?
Checks if this dotted item is done.
-
#hash(hasher)
Hashes this dotted item.
-
#index : Int64
The index in the body of the production rule.
-
#item : Item
The production rule this dotted item wraps.
-
#next_item
Creates a new item assuming a shift took place.
-
#next_item!
Turns this item into the next item assuming a shift took place.
- #to_s(io)
Constructor Detail
Creates a new dotted item.