class

Pegasus::Elements::TerminalId

Inherits JSON::Serializable / Pegasus::Elements::IndexableElement / Pegasus::Elements::LookaheadElement / Reference / Object

A terminal, as specified by the user. This is not a special case element, and one terminal ID exists for every token the user registers.

Constructors

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

Instance methods

==(other : TerminalId)
Source
==(other : LookaheadElement)
Source
hash(hasher)

See Object#hash(hasher)

Source
raw_id

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

Source
table_index

Gets the table index of this element.

Source