Sha256: dee9f96ebb8bee6987b29ffe430159096999231705827b527bd506410134fcef

Contents?: true

Size: 478 Bytes

Versions: 19

Compression:

Stored size: 478 Bytes

Contents

module Finitio
  module Syntax
    module Expr
      module ArithOp
        include Expr

        capture :left, :op, :right

        def to_proc_source
          l, r = left.to_proc_source, right.to_proc_source
          "#{l}.#{op.to_str.strip}(#{r})"
        end

        def _free_variables(fvs)
          left._free_variables(fvs)
          right._free_variables(fvs)
        end

      end # module ArithOp
    end # module Expr
  end # module Syntax
end # module Finitio

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
finitio-0.12.0 lib/finitio/syntax/expr/arith_op.rb
finitio-0.11.4 lib/finitio/syntax/expr/arith_op.rb
finitio-0.11.3 lib/finitio/syntax/expr/arith_op.rb
finitio-0.11.2 lib/finitio/syntax/expr/arith_op.rb
finitio-0.11.1 lib/finitio/syntax/expr/arith_op.rb
finitio-0.10.0 lib/finitio/syntax/expr/arith_op.rb
finitio-0.9.1 lib/finitio/syntax/expr/arith_op.rb
finitio-0.9.0 lib/finitio/syntax/expr/arith_op.rb
finitio-0.8.0 lib/finitio/syntax/expr/arith_op.rb
finitio-0.7.0 lib/finitio/syntax/expr/arith_op.rb
finitio-0.7.0.pre.rc4 lib/finitio/syntax/expr/arith_op.rb
finitio-0.7.0.pre.rc3 lib/finitio/syntax/expr/arith_op.rb
finitio-0.7.0.pre.rc2 lib/finitio/syntax/expr/arith_op.rb
finitio-0.7.0.pre.rc1 lib/finitio/syntax/expr/arith_op.rb
finitio-0.6.1 lib/finitio/syntax/expr/arith_op.rb
finitio-0.6.0 lib/finitio/syntax/expr/arith_op.rb
finitio-0.5.2 lib/finitio/syntax/expr/arith_op.rb
finitio-0.5.1 lib/finitio/syntax/expr/arith_op.rb
finitio-0.5.0 lib/finitio/syntax/expr/arith_op.rb