Class: SimpleSem::Arithmetic::BinaryOperation

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/simplesem/arithmetic_node_classes.rb

Instance Method Summary collapse

Instance Method Details

#eval(env = {}) ⇒ Object



5
6
7
# File 'lib/simplesem/arithmetic_node_classes.rb', line 5

def eval(env={})
  operator.apply(operand_1.eval(env), operand_2.eval(env))
end