Class: Arithmetic::BinaryOperation
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Arithmetic::BinaryOperation
- Defined in:
- lib/mail/vendor/treetop-1.4.3/examples/lambda_calculus/arithmetic_node_classes.rb
Instance Attribute Summary
Attributes inherited from Treetop::Runtime::SyntaxNode
#dot_id, #input, #interval, #parent
Instance Method Summary collapse
Methods inherited from Treetop::Runtime::SyntaxNode
#<=>, #elements, #empty?, #extension_modules, #initialize, #inspect, #interesting_methods, #method_missing, #nonterminal?, #terminal?, #text_value, #to_hash, #write_dot, #write_dot_file
Constructor Details
This class inherits a constructor from Treetop::Runtime::SyntaxNode
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Treetop::Runtime::SyntaxNode
Instance Method Details
#eval(env = {}) ⇒ Object
3 4 5 |
# File 'lib/mail/vendor/treetop-1.4.3/examples/lambda_calculus/arithmetic_node_classes.rb', line 3 def eval(env={}) operator.apply(operand_1.eval(env), operand_2.eval(env)) end |