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.crcltk/parser/msgpack.cr
Class Method Summary
-
.new(production : CLTK::CFG::Production)
@param [Production] production Production to reduce by
- .new(__temp_70 : MessagePack::Unpacker)
Instance Method Summary
- #id : Int32
- #id=(_id : Int32)
- #production : CLTK::CFG::Production
- #production=(_production : CLTK::CFG::Production)
- #to_msgpack(packer : MessagePack::Packer)
-
#to_s
@return [String] String representation of this action.
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