Sha256: 9e106d605b24fb22103c3312d76a929ac93d0d45a86e934252d8d9cbd2edae39

Contents?: true

Size: 306 Bytes

Versions: 2

Compression:

Stored size: 306 Bytes

Contents

module Finitio
  module Syntax
    module LambdaExpr

      def compile(factory)
        expression.compile(var_name)
      end

      def to_ast
        [:fn, [:parameters, var_name.to_s], [:source, expression.to_s.strip]]
      end

    end # module LambdaExpr
  end # module Syntax
end # module Finitio

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
finitio-0.4.1 lib/finitio/syntax/lambda_expr.rb
finitio-0.4.0 lib/finitio/syntax/lambda_expr.rb