class RLTK::Parser::ParseStack::Reduce
The Reduce
class indicates to the parser that it should reduce the input stack by the rule specified by Reduce.id
.
Public Class Methods
new(production)
click to toggle source
@param [Production] production Production to reduce by
Calls superclass method
RLTK::Parser::ParseStack::Action::new
# File lib/rltk/parser.rb, line 1661 def initialize(production) super(production.id) @production = production end
Public Instance Methods
to_s()
click to toggle source
@return [String] String representation of this action.
# File lib/rltk/parser.rb, line 1668 def to_s "Reduce by Production #{self.id} : #{@production}" end