class Pegasus::Pda::Item

Overview

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

Included Modules

Defined in:

pegasus/items.cr
pegasus/json.cr

Constructors

Instance Method Summary

Constructor Detail

Creates a new item with the given head and body.


[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : Item) #

Compares equality with the given other item.


[View source]

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


[View source]
def hash(hasher) #

Hashes this item.


[View source]

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


[View source]
def to_s(io) #

[View source]