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.cr

Constructors

Instance Method Summary

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

id : Int32 id

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

new(id : Int32) 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


[View source]

Instance Method Detail

def production : CLTK::CFG::Production #

[View source]
def to_s #

@return [String] String representation of this action.


[View source]