Sha256: 829ab6b07f24083c5285a24d3b33fecf2707b1421549045ca7bde94dbef30d69

Contents?: true

Size: 180 Bytes

Versions: 117

Compression:

Stored size: 180 Bytes

Contents

module Arithmetic
  class BinaryOperation < Treetop::Runtime::SyntaxNode
    def eval(env={})
      operator.apply(operand_1.eval(env), operand_2.eval(env))      
    end
  end
end

Version data entries

117 entries across 87 versions & 11 rubygems

Version Path
cognita-treetop-1.2.4 examples/lambda_calculus/arithmetic_node_classes.rb
robolson-simplesem-0.1.0 lib/simplesem/arithmetic_node_classes.rb
robolson-simplesem-0.1.1 lib/simplesem/arithmetic_node_classes.rb
robolson-simplesem-0.1.2 lib/simplesem/arithmetic_node_classes.rb
robolson-simplesem-0.1.3 lib/simplesem/arithmetic_node_classes.rb
depengine-0.0.31 etc/isolate/jruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.31 etc/isolate/ruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.30 etc/isolate/jruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.30 etc/isolate/ruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.29 etc/isolate/jruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.29 etc/isolate/ruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.28 etc/isolate/ruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.28 etc/isolate/jruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.27 etc/isolate/ruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.27 etc/isolate/jruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.26 etc/isolate/jruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.26 etc/isolate/ruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.25 etc/isolate/ruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.25 etc/isolate/jruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb
depengine-0.0.24 etc/isolate/jruby-1.8/gems/treetop-1.4.8/examples/lambda_calculus/arithmetic_node_classes.rb