struct CLTK::Parser::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.crConstructors
-
.new(production : CLTK::CFG::Production)
@param [Production] production Production to reduce by
Instance Method Summary
-
#to_s
@return [String] String representation of this action.
Instance methods inherited from struct CLTK::Parser::Action
id : Int32?
id
Constructor methods inherited from struct CLTK::Parser::Action
new(id : Int32 | Nil = nil)
new
Instance methods inherited from class Object
in?(collection : Array | Set)
in?
Constructor Detail
def self.new(production : CLTK::CFG::Production)
#
@param [Production] production Production to reduce by