class Pegasus::Pda::DottedItem

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(item : Pegasus::Pda::Item, index : Int64 = 0_i64) #

Creates a new dotted item.


[View source]

Instance Method Detail

def ==(other : DottedItem) #

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


[View source]
def done? #

Checks if this dotted item is done.


[View source]
def hash(hasher) #

Hashes this dotted item.


[View source]
def index : Int64 #

The index in the body of the production rule.


[View source]
def item : Item #

The production rule this dotted item wraps.


[View source]
def next_item #

Creates a new item assuming a shift took place.


[View source]
def next_item! #

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


[View source]
def to_s(io) #

[View source]