Sha256: 51af84e4939edf435916f13b4d4eb9301c1832dea5cb1893aae8e6ac476c8065
Contents?: true
Size: 212 Bytes
Versions: 2
Compression:
Stored size: 212 Bytes
Contents
module SimpleSem module Arithmetic class BinaryOperation < Treetop::Runtime::SyntaxNode def eval(env={}) operator.apply(operand_1.eval(env), operand_2.eval(env)) end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
robolson-simplesem-0.1.4 | lib/simplesem/arithmetic_node_classes.rb |
simplesem-0.1.4 | lib/simplesem/arithmetic_node_classes.rb |