Pegasus::Pda::Item
Inherits JSON::Serializable / Reference / Object
An single production item, without a dot or any kind of state.
Constructors
new(head : Pegasus::Elements::NonterminalId, body : Array(Pegasus::Elements::NonterminalId | Pegasus::Elements::TerminalId))
Creates a new item with the given head and body.
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
head
The nonterminal on the left of the production rule, into which the right hand side is converted.
to_s(io)
Source