Sha256: 05edb481e03deb0fd13fd933770bb601ecf04cd0cb5c5fc323a7f0b1c4520ec3

Contents?: true

Size: 298 Bytes

Versions: 1

Compression:

Stored size: 298 Bytes

Contents

module Qrb
  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 Qrb

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qrb-0.3.0 lib/qrb/syntax/lambda_expr.rb