class

Pegasus::Pda::Item

Inherits JSON::Serializable / Reference / Object

An single production item, without a dot or any kind of state.

Constructors

Creates a new item with the given head and body.

Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

==(other : Item)

Compares equality with the given other item.

Source
body

The body of terminals and nonterminals on the right of the production rule.

Source
hash(hasher)

Hashes this item.

Source
head

The nonterminal on the left of the production rule, into which the right hand side is converted.

Source
to_s(io)
Source