Class: Arithmetic::BinaryOperation
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Arithmetic::BinaryOperation
- Defined in:
- lib/simplesem/arithmetic_node_classes.rb
Instance Method Summary collapse
Instance Method Details
#eval(env = {}) ⇒ Object
3 4 5 |
# File 'lib/simplesem/arithmetic_node_classes.rb', line 3 def eval(env={}) operator.apply(operand_1.eval(env), operand_2.eval(env)) end |