Class: RLTK::Parser::Reduce

Inherits:
Action
  • Object
show all
Defined in:
lib/rltk/parser.rb

Overview

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

Instance Attribute Summary

Attributes inherited from Action

#id

Instance Method Summary (collapse)

Methods inherited from Action

#initialize

Constructor Details

This class inherits a constructor from RLTK::Parser::Action

Instance Method Details

- (Object) to_s



1341
1342
1343
# File 'lib/rltk/parser.rb', line 1341

def to_s
	"Reduce by Production #{self.id}"
end