skeem 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,19 +0,0 @@
1
- require_relative 's_expr_nodes'
2
-
3
- module Skeem
4
- class PrimitiveProcedure
5
- attr_reader(:identifier)
6
- attr_reader(:code)
7
-
8
- def initialize(anId, aRubyLambda)
9
- @identifier = anId.kind_of?(String) ? SkmIdentifier.create(anId) : anId
10
- @code = aRubyLambda
11
- end
12
-
13
- # Arguments are positional in a primitive procedure.
14
- def call(aRuntime, aProcedureCall)
15
- args = aProcedureCall.operands
16
- return @code.call(aRuntime, args)
17
- end
18
- end # class
19
- end # module