class Pegasus::Elements::TerminalId

Overview

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.

Included Modules

Defined in:

pegasus/elements.cr
pegasus/json.cr

Constructors

Instance Method Summary

Instance methods inherited from class Pegasus::Elements::IndexableElement

table_index : Int64 table_index

Constructor Detail

def self.new(id : Int64) #

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

[View source]

Instance Method Detail

def ==(other : TerminalId) #

[View source]
def ==(other : LookaheadElement) #

[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


[View source]
def raw_id #

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


[View source]
def table_index : Int64 #
Description copied from class Pegasus::Elements::IndexableElement

Gets the table index of this element.


[View source]