struct CLTK::Parser::Actions::Reduce

Overview

The Reduce class indicates to the parser that it should reduce the input stack by the rule specified by Reduce.id.

Defined in:

cltk/parser/actions.cr
cltk/parser/msgpack.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from struct CLTK::Parser::Action

id : Int32 id, to_msgpack(packer : MessagePack::Packer) to_msgpack

Class methods inherited from struct CLTK::Parser::Action

from_msgpack(pull : MessagePack::Unpacker) from_msgpack, new(id : Int32)
new(packer : MessagePack::Unpacker)
new

Instance methods inherited from class Object

in?(collection : Array | Set) in?

Class Method Detail

def self.new(production : CLTK::CFG::Production) #

@param [Production] production Production to reduce by


[View source]
def self.new(__temp_70 : MessagePack::Unpacker) #

[View source]

Instance Method Detail

def id : Int32 #

[View source]
def id=(_id : Int32) #

[View source]
def production : CLTK::CFG::Production #

[View source]
def production=(_production : CLTK::CFG::Production) #

[View source]
def to_msgpack(packer : MessagePack::Packer) #

[View source]
def to_s #

@return [String] String representation of this action.


[View source]