class

Pegasus::Elements::NonterminalId

Inherits JSON::Serializable / Reference / Object

A nonterminal, as specified by the user. Nonterminals are on the left of production rules (though they can also appear on the right).

Constructors

new(id : Int64, start : Bool = false)

Creates a new NonterminalId with the given ID.

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

Instance methods

==(other : NonterminalId)

Compares this nonterminal to another nonterminal.

Source
hash(hasher)

Creates a hash of this NonterminalId.

Source
raw_id

Gets the raw ID of this nonterminal. This should be used with caution.

Source
start?

Checks if this nonterminal is a "start" nonterminal (i.e., a potentially top level node)

Source
table_index

Gets the table index of this nonterminal.

Source
to_s(io)
Source