@tuprolog/arg2p 0.13.2 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-core.js +2267 -2267
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +442 -442
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +246 -246
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +152 -152
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +15 -15
- package/2p-parser-core.js +160 -160
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +1 -1
- package/2p-parser-theory.js +17 -17
- package/2p-solve-classic.js +869 -869
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve.js +3095 -3095
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1351 -1351
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +227 -227
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +323 -323
- package/2p-utils.js.map +1 -1
- package/arg2p-causality-solver.js +90 -90
- package/arg2p-causality-solver.js.map +1 -1
- package/arg2p-core.js +1707 -1488
- package/arg2p-core.js.map +1 -1
- package/arg2p.js +89 -88
- package/arg2p.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +1784 -1225
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1514 -1512
- package/kt-math.js.map +1 -1
- package/package.json +1 -1
package/2p-dsl-core.js
CHANGED
|
@@ -21,58 +21,58 @@
|
|
|
21
21
|
}(function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_utils, kotlin_io_github_gciatto_kt_math) {
|
|
22
22
|
'use strict';
|
|
23
23
|
//region block: imports
|
|
24
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
25
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
24
|
+
var THROW_CCE = kotlin_kotlin.$_$.qa;
|
|
25
|
+
var Unit_instance = kotlin_kotlin.$_$.l1;
|
|
26
26
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
27
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
28
|
-
var toString = kotlin_kotlin.$_$.
|
|
27
|
+
var protoOf = kotlin_kotlin.$_$.n6;
|
|
28
|
+
var toString = kotlin_kotlin.$_$.q6;
|
|
29
29
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
30
30
|
var Term = kotlin_it_unibo_tuprolog_core.$_$.r2;
|
|
31
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
31
|
+
var isInterface = kotlin_kotlin.$_$.h6;
|
|
32
32
|
var TermConvertible = kotlin_it_unibo_tuprolog_core.$_$.u1;
|
|
33
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
34
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
33
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.e7;
|
|
34
|
+
var getKClass = kotlin_kotlin.$_$.f7;
|
|
35
35
|
var toString_0 = kotlin_kotlin.$_$.h1;
|
|
36
36
|
var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.a1;
|
|
37
|
-
var asIterable = kotlin_kotlin.$_$.
|
|
37
|
+
var asIterable = kotlin_kotlin.$_$.v1;
|
|
38
38
|
var assertItemsAreNotNull = kotlin_it_unibo_tuprolog_utils.$_$.s;
|
|
39
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
39
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.c2;
|
|
40
40
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.c;
|
|
41
41
|
var assertItemsAreNotNull_0 = kotlin_it_unibo_tuprolog_utils.$_$.r;
|
|
42
|
-
var map = kotlin_kotlin.$_$.
|
|
42
|
+
var map = kotlin_kotlin.$_$.g8;
|
|
43
43
|
var assertItemsAreNotNull_1 = kotlin_it_unibo_tuprolog_utils.$_$.t;
|
|
44
|
-
var Char = kotlin_kotlin.$_$.
|
|
44
|
+
var Char = kotlin_kotlin.$_$.ea;
|
|
45
45
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.j1;
|
|
46
46
|
var BigInteger = kotlin_io_github_gciatto_kt_math.$_$.g;
|
|
47
47
|
var BigDecimal = kotlin_io_github_gciatto_kt_math.$_$.f;
|
|
48
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
49
|
-
var Iterable = kotlin_kotlin.$_$.
|
|
50
|
-
var KtList = kotlin_kotlin.$_$.
|
|
51
|
-
var KtSet = kotlin_kotlin.$_$.
|
|
52
|
-
var Pair = kotlin_kotlin.$_$.
|
|
53
|
-
var Triple = kotlin_kotlin.$_$.
|
|
54
|
-
var Entry = kotlin_kotlin.$_$.
|
|
55
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
56
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
48
|
+
var Sequence = kotlin_kotlin.$_$.j7;
|
|
49
|
+
var Iterable = kotlin_kotlin.$_$.n1;
|
|
50
|
+
var KtList = kotlin_kotlin.$_$.o1;
|
|
51
|
+
var KtSet = kotlin_kotlin.$_$.r1;
|
|
52
|
+
var Pair = kotlin_kotlin.$_$.oa;
|
|
53
|
+
var Triple = kotlin_kotlin.$_$.sa;
|
|
54
|
+
var Entry = kotlin_kotlin.$_$.p1;
|
|
55
|
+
var KtMap = kotlin_kotlin.$_$.q1;
|
|
56
|
+
var initMetadataForClass = kotlin_kotlin.$_$.a6;
|
|
57
57
|
var VOID = kotlin_kotlin.$_$.b;
|
|
58
58
|
var Struct = kotlin_it_unibo_tuprolog_core.$_$.s1;
|
|
59
59
|
var Scope = kotlin_it_unibo_tuprolog_core.$_$.r1;
|
|
60
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
60
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.c6;
|
|
61
61
|
var Companion_instance = kotlin_it_unibo_tuprolog_core.$_$.t;
|
|
62
62
|
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.b1;
|
|
63
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
63
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.b6;
|
|
64
64
|
var logicListFromFrom = kotlin_it_unibo_tuprolog_core.$_$.d;
|
|
65
65
|
var logicListFromIterable = kotlin_it_unibo_tuprolog_core.$_$.b;
|
|
66
66
|
var logicListFromSequence = kotlin_it_unibo_tuprolog_core.$_$.c;
|
|
67
|
-
var plus = kotlin_kotlin.$_$.
|
|
67
|
+
var plus = kotlin_kotlin.$_$.v3;
|
|
68
68
|
var Tuple = kotlin_it_unibo_tuprolog_core.$_$.s2;
|
|
69
69
|
var Companion_instance_1 = kotlin_it_unibo_tuprolog_core.$_$.z;
|
|
70
70
|
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
71
71
|
var Var = kotlin_it_unibo_tuprolog_core.$_$.t2;
|
|
72
72
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
73
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
74
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
75
|
-
var listOf = kotlin_kotlin.$_$.
|
|
73
|
+
var sequenceOf = kotlin_kotlin.$_$.m8;
|
|
74
|
+
var copyToArray = kotlin_kotlin.$_$.k2;
|
|
75
|
+
var listOf = kotlin_kotlin.$_$.e3;
|
|
76
76
|
var Rule = kotlin_it_unibo_tuprolog_core.$_$.q1;
|
|
77
77
|
var Directive = kotlin_it_unibo_tuprolog_core.$_$.j1;
|
|
78
78
|
var Fact = kotlin_it_unibo_tuprolog_core.$_$.k1;
|
|
@@ -80,13 +80,13 @@
|
|
|
80
80
|
//endregion
|
|
81
81
|
//region block: pre-declaration
|
|
82
82
|
function copy(scope, $super) {
|
|
83
|
-
scope = scope === VOID ? this.
|
|
84
|
-
return $super === VOID ? this.
|
|
83
|
+
scope = scope === VOID ? this.x1g() : scope;
|
|
84
|
+
return $super === VOID ? this.y1g(scope) : $super.y1g.call(this, scope);
|
|
85
85
|
}
|
|
86
86
|
initMetadataForInterface(Termificator, 'Termificator');
|
|
87
87
|
initMetadataForClass(AbstractTermificator, 'AbstractTermificator', VOID, VOID, [Termificator]);
|
|
88
88
|
function convertToTerm(_this__u8e3s4) {
|
|
89
|
-
return this.
|
|
89
|
+
return this.i2y().toTerm(_this__u8e3s4);
|
|
90
90
|
}
|
|
91
91
|
function convertToSpecificSubTypeOfTerm(_this__u8e3s4, type, converter) {
|
|
92
92
|
var t = this.convertToTerm(_this__u8e3s4);
|
|
@@ -104,39 +104,193 @@
|
|
|
104
104
|
}
|
|
105
105
|
initMetadataForInterface(BaseLogicProgrammingScope, 'BaseLogicProgrammingScope', VOID, VOID, [Scope]);
|
|
106
106
|
initMetadataForCompanion(Companion);
|
|
107
|
-
function
|
|
108
|
-
return
|
|
107
|
+
function at_end_of_stream1(alias) {
|
|
108
|
+
return this.structOf('at_end_of_stream', [this.convertToTerm(alias)]);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
110
|
+
function call1(goal) {
|
|
111
|
+
return this.structOf('call', [this.convertToTerm(goal)]);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
115
|
-
var tmp;
|
|
116
|
-
if (isInterface(t, Var)) {
|
|
117
|
-
tmp = _this__u8e3s4.h2(t);
|
|
118
|
-
} else {
|
|
119
|
-
raiseErrorConvertingTo(term, getKClass(Var));
|
|
120
|
-
}
|
|
121
|
-
return tmp;
|
|
113
|
+
function catch3(goal, error, continuation) {
|
|
114
|
+
return this.structOf('catch', [this.convertToTerm(goal), this.convertToTerm(error), this.convertToTerm(continuation)]);
|
|
122
115
|
}
|
|
123
|
-
function
|
|
124
|
-
|
|
125
|
-
var tmp;
|
|
126
|
-
if (isInterface(t, Var)) {
|
|
127
|
-
tmp = _this__u8e3s4.f2(t);
|
|
128
|
-
} else {
|
|
129
|
-
raiseErrorConvertingTo(term, getKClass(Var));
|
|
130
|
-
}
|
|
131
|
-
return tmp;
|
|
116
|
+
function throw1(error) {
|
|
117
|
+
return this.structOf('throw', [this.convertToTerm(error)]);
|
|
132
118
|
}
|
|
133
|
-
function
|
|
134
|
-
return this.
|
|
119
|
+
function not1(goal) {
|
|
120
|
+
return this.structOf('not', [this.convertToTerm(goal)]);
|
|
135
121
|
}
|
|
136
|
-
function
|
|
137
|
-
return
|
|
122
|
+
function naf1(goal) {
|
|
123
|
+
return this.structOf('\\+', [this.convertToTerm(goal)]);
|
|
138
124
|
}
|
|
139
|
-
|
|
125
|
+
function assert1(clause) {
|
|
126
|
+
return this.structOf('assert', [this.convertToTerm(clause)]);
|
|
127
|
+
}
|
|
128
|
+
function asserta1(clause) {
|
|
129
|
+
return this.structOf('asserta', [this.convertToTerm(clause)]);
|
|
130
|
+
}
|
|
131
|
+
function assertz1(clause) {
|
|
132
|
+
return this.structOf('assertz', [this.convertToTerm(clause)]);
|
|
133
|
+
}
|
|
134
|
+
function arg3(index, compound, argument) {
|
|
135
|
+
return this.structOf('arg', [this.convertToTerm(index), this.convertToTerm(compound), this.convertToTerm(argument)]);
|
|
136
|
+
}
|
|
137
|
+
function atom1(atom) {
|
|
138
|
+
return this.structOf('atom', [this.convertToTerm(atom)]);
|
|
139
|
+
}
|
|
140
|
+
function atomic1(atomic) {
|
|
141
|
+
return this.structOf('atomic', [this.convertToTerm(atomic)]);
|
|
142
|
+
}
|
|
143
|
+
function between3(min, max, number) {
|
|
144
|
+
return this.structOf('between', [this.convertToTerm(min), this.convertToTerm(max), this.convertToTerm(number)]);
|
|
145
|
+
}
|
|
146
|
+
function callable1(goal) {
|
|
147
|
+
return this.structOf('callable', [this.convertToTerm(goal)]);
|
|
148
|
+
}
|
|
149
|
+
function compound1(struct) {
|
|
150
|
+
return this.structOf('compound', [this.convertToTerm(struct)]);
|
|
151
|
+
}
|
|
152
|
+
function current_op3(precedence, specifier, functor) {
|
|
153
|
+
return this.structOf('current_op', [this.convertToTerm(precedence), this.convertToTerm(specifier), this.convertToTerm(functor)]);
|
|
154
|
+
}
|
|
155
|
+
function op3(precedence, specifier, functor) {
|
|
156
|
+
return this.structOf('op', [this.convertToTerm(precedence), this.convertToTerm(specifier), this.convertToTerm(functor)]);
|
|
157
|
+
}
|
|
158
|
+
function findall3(template, goal, bag) {
|
|
159
|
+
return this.structOf('findall', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
160
|
+
}
|
|
161
|
+
function float1(number) {
|
|
162
|
+
return this.structOf('float', [this.convertToTerm(number)]);
|
|
163
|
+
}
|
|
164
|
+
function functor3(struct, functor, arity) {
|
|
165
|
+
return this.structOf('functor', [this.convertToTerm(struct), this.convertToTerm(functor), this.convertToTerm(arity)]);
|
|
166
|
+
}
|
|
167
|
+
function ground1(term) {
|
|
168
|
+
return this.structOf('ground', [this.convertToTerm(term)]);
|
|
169
|
+
}
|
|
170
|
+
function integer1(number) {
|
|
171
|
+
return this.structOf('integer', [this.convertToTerm(number)]);
|
|
172
|
+
}
|
|
173
|
+
function natural(number) {
|
|
174
|
+
return this.structOf('natural', [this.convertToTerm(number)]);
|
|
175
|
+
}
|
|
176
|
+
function nonvar1(number) {
|
|
177
|
+
return this.structOf('nonvar', [this.convertToTerm(number)]);
|
|
178
|
+
}
|
|
179
|
+
function number1(number) {
|
|
180
|
+
return this.structOf('number', [this.convertToTerm(number)]);
|
|
181
|
+
}
|
|
182
|
+
function var1(term) {
|
|
183
|
+
return this.structOf('var', [this.convertToTerm(term)]);
|
|
184
|
+
}
|
|
185
|
+
function write1(term) {
|
|
186
|
+
return this.structOf('write', [this.convertToTerm(term)]);
|
|
187
|
+
}
|
|
188
|
+
function univ2(_this__u8e3s4, other) {
|
|
189
|
+
return this.structOf('=..', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
190
|
+
}
|
|
191
|
+
function eq2(_this__u8e3s4, right) {
|
|
192
|
+
return this.structOf('=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
193
|
+
}
|
|
194
|
+
function neq2(_this__u8e3s4, right) {
|
|
195
|
+
return this.structOf('\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
196
|
+
}
|
|
197
|
+
function id2(_this__u8e3s4, right) {
|
|
198
|
+
return this.structOf('==', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
199
|
+
}
|
|
200
|
+
function nid2(_this__u8e3s4, right) {
|
|
201
|
+
return this.structOf('\\==', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
202
|
+
}
|
|
203
|
+
function arithEq2(_this__u8e3s4, right) {
|
|
204
|
+
return this.structOf('=:=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
205
|
+
}
|
|
206
|
+
function arithNeq2(_this__u8e3s4, right) {
|
|
207
|
+
return this.structOf('=\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
208
|
+
}
|
|
209
|
+
function member2(item, list) {
|
|
210
|
+
return this.structOf('member', [this.convertToTerm(item), this.convertToTerm(list)]);
|
|
211
|
+
}
|
|
212
|
+
function retract1(clause) {
|
|
213
|
+
return this.structOf('retract', [this.convertToTerm(clause)]);
|
|
214
|
+
}
|
|
215
|
+
function append3(left, right, result) {
|
|
216
|
+
return this.structOf('append', [this.convertToTerm(left), this.convertToTerm(right), this.convertToTerm(result)]);
|
|
217
|
+
}
|
|
218
|
+
function retractall1(clause) {
|
|
219
|
+
return this.structOf('retractall', [this.convertToTerm(clause)]);
|
|
220
|
+
}
|
|
221
|
+
function abolish1(indicator) {
|
|
222
|
+
return this.structOf('abolish', [this.convertToTerm(indicator)]);
|
|
223
|
+
}
|
|
224
|
+
function atom_chars2(atom, chars) {
|
|
225
|
+
return this.structOf('atom_chars', [this.convertToTerm(atom), this.convertToTerm(chars)]);
|
|
226
|
+
}
|
|
227
|
+
function atom_codes2(atom, codes) {
|
|
228
|
+
return this.structOf('atom_codes', [this.convertToTerm(atom), this.convertToTerm(codes)]);
|
|
229
|
+
}
|
|
230
|
+
function atom_concat3(first, second, result) {
|
|
231
|
+
return this.structOf('atom_concat', [this.convertToTerm(first), this.convertToTerm(second), this.convertToTerm(result)]);
|
|
232
|
+
}
|
|
233
|
+
function atom_length2(atom, length) {
|
|
234
|
+
return this.structOf('atom_length', [this.convertToTerm(atom), this.convertToTerm(length)]);
|
|
235
|
+
}
|
|
236
|
+
function char_code2(char, code) {
|
|
237
|
+
return this.structOf('char_code', [this.convertToTerm(char), this.convertToTerm(code)]);
|
|
238
|
+
}
|
|
239
|
+
function clause2(head, body) {
|
|
240
|
+
return this.structOf('clause', [this.convertToTerm(head), this.convertToTerm(body)]);
|
|
241
|
+
}
|
|
242
|
+
function copy_term2(term, copy) {
|
|
243
|
+
return this.structOf('copy_term', [this.convertToTerm(term), this.convertToTerm(copy)]);
|
|
244
|
+
}
|
|
245
|
+
function current_flag2(name, value) {
|
|
246
|
+
return this.structOf('current_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
247
|
+
}
|
|
248
|
+
function current_prolog_flag2(name, value) {
|
|
249
|
+
return this.structOf('current_prolog_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
250
|
+
}
|
|
251
|
+
function sub_atom5(atom, before, length, after, sub_atom) {
|
|
252
|
+
return this.structOf('sub_atom', [this.convertToTerm(atom), this.convertToTerm(before), this.convertToTerm(length), this.convertToTerm(after), this.convertToTerm(sub_atom)]);
|
|
253
|
+
}
|
|
254
|
+
function number_chars2(first, second) {
|
|
255
|
+
return this.structOf('number_chars', [this.convertToTerm(first), this.convertToTerm(second)]);
|
|
256
|
+
}
|
|
257
|
+
function number_codes2(first, second) {
|
|
258
|
+
return this.structOf('number_codes', [this.convertToTerm(first), this.convertToTerm(second)]);
|
|
259
|
+
}
|
|
260
|
+
function bagof3(template, goal, bag) {
|
|
261
|
+
return this.structOf('bagof', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
262
|
+
}
|
|
263
|
+
function setof3(template, goal, bag) {
|
|
264
|
+
return this.structOf('setof', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
265
|
+
}
|
|
266
|
+
function consult1(url) {
|
|
267
|
+
return this.structOf('consult', [this.convertToTerm(url)]);
|
|
268
|
+
}
|
|
269
|
+
function set_flag2(name, value) {
|
|
270
|
+
return this.structOf('set_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
271
|
+
}
|
|
272
|
+
function set_prolog_flag2(name, value) {
|
|
273
|
+
return this.structOf('set_prolog_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
274
|
+
}
|
|
275
|
+
function dynamic1(indicator) {
|
|
276
|
+
return this.structOf('dynamic', [this.convertToTerm(indicator)]);
|
|
277
|
+
}
|
|
278
|
+
function static1(indicator) {
|
|
279
|
+
return this.structOf('static', [this.convertToTerm(indicator)]);
|
|
280
|
+
}
|
|
281
|
+
function solve1(goal) {
|
|
282
|
+
return this.structOf('solve', [this.convertToTerm(goal)]);
|
|
283
|
+
}
|
|
284
|
+
function initialization1(goal) {
|
|
285
|
+
return this.structOf('initialization', [this.convertToTerm(goal)]);
|
|
286
|
+
}
|
|
287
|
+
function load1(url) {
|
|
288
|
+
return this.structOf('load', [this.convertToTerm(url)]);
|
|
289
|
+
}
|
|
290
|
+
function include1(url) {
|
|
291
|
+
return this.structOf('include', [this.convertToTerm(url)]);
|
|
292
|
+
}
|
|
293
|
+
initMetadataForInterface(LogicProgrammingScopeWithPrologStandardLibrary, 'LogicProgrammingScopeWithPrologStandardLibrary', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
140
294
|
function termPlus(_this__u8e3s4, other) {
|
|
141
295
|
return this.structOf('+', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
142
296
|
}
|
|
@@ -242,7 +396,7 @@
|
|
|
242
396
|
var otherTerm = this.convertToTerm(other);
|
|
243
397
|
var tmp;
|
|
244
398
|
if (isInterface(it, Tuple)) {
|
|
245
|
-
tmp = this.tupleOfIterable(plus(it.
|
|
399
|
+
tmp = this.tupleOfIterable(plus(it.sw(), otherTerm));
|
|
246
400
|
} else {
|
|
247
401
|
tmp = this.tupleOf([this.convertToTerm(_this__u8e3s4), otherTerm]);
|
|
248
402
|
}
|
|
@@ -404,7 +558,7 @@
|
|
|
404
558
|
// Inline function 'kotlin.let' call
|
|
405
559
|
var tmp;
|
|
406
560
|
if (!(tail == null)) {
|
|
407
|
-
tmp = this.
|
|
561
|
+
tmp = this.w10(destination, this.convertToTerm(tail));
|
|
408
562
|
} else {
|
|
409
563
|
tmp = this.logicListOfIterable(destination);
|
|
410
564
|
}
|
|
@@ -412,7 +566,7 @@
|
|
|
412
566
|
}
|
|
413
567
|
function logicList_0(items, tail, $super) {
|
|
414
568
|
tail = tail === VOID ? null : tail;
|
|
415
|
-
return $super === VOID ? this.
|
|
569
|
+
return $super === VOID ? this.o2y(items, tail) : logicList(items, tail);
|
|
416
570
|
}
|
|
417
571
|
function rule(function_0) {
|
|
418
572
|
var tmp = this.convertToTerm(function_0(this.newScope()));
|
|
@@ -429,194 +583,40 @@
|
|
|
429
583
|
return this.convertToSpecificSubTypeOfTerm(tmp, tmp_0, MinimalLogicProgrammingScope$factOf$ref(this));
|
|
430
584
|
}
|
|
431
585
|
initMetadataForInterface(MinimalLogicProgrammingScope, 'MinimalLogicProgrammingScope', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
432
|
-
function
|
|
433
|
-
return
|
|
434
|
-
}
|
|
435
|
-
function call1(goal) {
|
|
436
|
-
return this.structOf('call', [this.convertToTerm(goal)]);
|
|
437
|
-
}
|
|
438
|
-
function catch3(goal, error, continuation) {
|
|
439
|
-
return this.structOf('catch', [this.convertToTerm(goal), this.convertToTerm(error), this.convertToTerm(continuation)]);
|
|
440
|
-
}
|
|
441
|
-
function throw1(error) {
|
|
442
|
-
return this.structOf('throw', [this.convertToTerm(error)]);
|
|
443
|
-
}
|
|
444
|
-
function not1(goal) {
|
|
445
|
-
return this.structOf('not', [this.convertToTerm(goal)]);
|
|
446
|
-
}
|
|
447
|
-
function naf1(goal) {
|
|
448
|
-
return this.structOf('\\+', [this.convertToTerm(goal)]);
|
|
449
|
-
}
|
|
450
|
-
function assert1(clause) {
|
|
451
|
-
return this.structOf('assert', [this.convertToTerm(clause)]);
|
|
452
|
-
}
|
|
453
|
-
function asserta1(clause) {
|
|
454
|
-
return this.structOf('asserta', [this.convertToTerm(clause)]);
|
|
455
|
-
}
|
|
456
|
-
function assertz1(clause) {
|
|
457
|
-
return this.structOf('assertz', [this.convertToTerm(clause)]);
|
|
458
|
-
}
|
|
459
|
-
function arg3(index, compound, argument) {
|
|
460
|
-
return this.structOf('arg', [this.convertToTerm(index), this.convertToTerm(compound), this.convertToTerm(argument)]);
|
|
461
|
-
}
|
|
462
|
-
function atom1(atom) {
|
|
463
|
-
return this.structOf('atom', [this.convertToTerm(atom)]);
|
|
464
|
-
}
|
|
465
|
-
function atomic1(atomic) {
|
|
466
|
-
return this.structOf('atomic', [this.convertToTerm(atomic)]);
|
|
467
|
-
}
|
|
468
|
-
function between3(min, max, number) {
|
|
469
|
-
return this.structOf('between', [this.convertToTerm(min), this.convertToTerm(max), this.convertToTerm(number)]);
|
|
470
|
-
}
|
|
471
|
-
function callable1(goal) {
|
|
472
|
-
return this.structOf('callable', [this.convertToTerm(goal)]);
|
|
473
|
-
}
|
|
474
|
-
function compound1(struct) {
|
|
475
|
-
return this.structOf('compound', [this.convertToTerm(struct)]);
|
|
476
|
-
}
|
|
477
|
-
function current_op3(precedence, specifier, functor) {
|
|
478
|
-
return this.structOf('current_op', [this.convertToTerm(precedence), this.convertToTerm(specifier), this.convertToTerm(functor)]);
|
|
479
|
-
}
|
|
480
|
-
function op3(precedence, specifier, functor) {
|
|
481
|
-
return this.structOf('op', [this.convertToTerm(precedence), this.convertToTerm(specifier), this.convertToTerm(functor)]);
|
|
482
|
-
}
|
|
483
|
-
function findall3(template, goal, bag) {
|
|
484
|
-
return this.structOf('findall', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
485
|
-
}
|
|
486
|
-
function float1(number) {
|
|
487
|
-
return this.structOf('float', [this.convertToTerm(number)]);
|
|
488
|
-
}
|
|
489
|
-
function functor3(struct, functor, arity) {
|
|
490
|
-
return this.structOf('functor', [this.convertToTerm(struct), this.convertToTerm(functor), this.convertToTerm(arity)]);
|
|
491
|
-
}
|
|
492
|
-
function ground1(term) {
|
|
493
|
-
return this.structOf('ground', [this.convertToTerm(term)]);
|
|
494
|
-
}
|
|
495
|
-
function integer1(number) {
|
|
496
|
-
return this.structOf('integer', [this.convertToTerm(number)]);
|
|
497
|
-
}
|
|
498
|
-
function natural(number) {
|
|
499
|
-
return this.structOf('natural', [this.convertToTerm(number)]);
|
|
500
|
-
}
|
|
501
|
-
function nonvar1(number) {
|
|
502
|
-
return this.structOf('nonvar', [this.convertToTerm(number)]);
|
|
503
|
-
}
|
|
504
|
-
function number1(number) {
|
|
505
|
-
return this.structOf('number', [this.convertToTerm(number)]);
|
|
506
|
-
}
|
|
507
|
-
function var1(term) {
|
|
508
|
-
return this.structOf('var', [this.convertToTerm(term)]);
|
|
509
|
-
}
|
|
510
|
-
function write1(term) {
|
|
511
|
-
return this.structOf('write', [this.convertToTerm(term)]);
|
|
512
|
-
}
|
|
513
|
-
function univ2(_this__u8e3s4, other) {
|
|
514
|
-
return this.structOf('=..', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
515
|
-
}
|
|
516
|
-
function eq2(_this__u8e3s4, right) {
|
|
517
|
-
return this.structOf('=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
518
|
-
}
|
|
519
|
-
function neq2(_this__u8e3s4, right) {
|
|
520
|
-
return this.structOf('\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
521
|
-
}
|
|
522
|
-
function id2(_this__u8e3s4, right) {
|
|
523
|
-
return this.structOf('==', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
524
|
-
}
|
|
525
|
-
function nid2(_this__u8e3s4, right) {
|
|
526
|
-
return this.structOf('\\==', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
527
|
-
}
|
|
528
|
-
function arithEq2(_this__u8e3s4, right) {
|
|
529
|
-
return this.structOf('=:=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
530
|
-
}
|
|
531
|
-
function arithNeq2(_this__u8e3s4, right) {
|
|
532
|
-
return this.structOf('=\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
533
|
-
}
|
|
534
|
-
function member2(item, list) {
|
|
535
|
-
return this.structOf('member', [this.convertToTerm(item), this.convertToTerm(list)]);
|
|
536
|
-
}
|
|
537
|
-
function retract1(clause) {
|
|
538
|
-
return this.structOf('retract', [this.convertToTerm(clause)]);
|
|
539
|
-
}
|
|
540
|
-
function append3(left, right, result) {
|
|
541
|
-
return this.structOf('append', [this.convertToTerm(left), this.convertToTerm(right), this.convertToTerm(result)]);
|
|
542
|
-
}
|
|
543
|
-
function retractall1(clause) {
|
|
544
|
-
return this.structOf('retractall', [this.convertToTerm(clause)]);
|
|
545
|
-
}
|
|
546
|
-
function abolish1(indicator) {
|
|
547
|
-
return this.structOf('abolish', [this.convertToTerm(indicator)]);
|
|
548
|
-
}
|
|
549
|
-
function atom_chars2(atom, chars) {
|
|
550
|
-
return this.structOf('atom_chars', [this.convertToTerm(atom), this.convertToTerm(chars)]);
|
|
551
|
-
}
|
|
552
|
-
function atom_codes2(atom, codes) {
|
|
553
|
-
return this.structOf('atom_codes', [this.convertToTerm(atom), this.convertToTerm(codes)]);
|
|
554
|
-
}
|
|
555
|
-
function atom_concat3(first, second, result) {
|
|
556
|
-
return this.structOf('atom_concat', [this.convertToTerm(first), this.convertToTerm(second), this.convertToTerm(result)]);
|
|
557
|
-
}
|
|
558
|
-
function atom_length2(atom, length) {
|
|
559
|
-
return this.structOf('atom_length', [this.convertToTerm(atom), this.convertToTerm(length)]);
|
|
560
|
-
}
|
|
561
|
-
function char_code2(char, code) {
|
|
562
|
-
return this.structOf('char_code', [this.convertToTerm(char), this.convertToTerm(code)]);
|
|
563
|
-
}
|
|
564
|
-
function clause2(head, body) {
|
|
565
|
-
return this.structOf('clause', [this.convertToTerm(head), this.convertToTerm(body)]);
|
|
566
|
-
}
|
|
567
|
-
function copy_term2(term, copy) {
|
|
568
|
-
return this.structOf('copy_term', [this.convertToTerm(term), this.convertToTerm(copy)]);
|
|
569
|
-
}
|
|
570
|
-
function current_flag2(name, value) {
|
|
571
|
-
return this.structOf('current_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
572
|
-
}
|
|
573
|
-
function current_prolog_flag2(name, value) {
|
|
574
|
-
return this.structOf('current_prolog_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
575
|
-
}
|
|
576
|
-
function sub_atom5(atom, before, length, after, sub_atom) {
|
|
577
|
-
return this.structOf('sub_atom', [this.convertToTerm(atom), this.convertToTerm(before), this.convertToTerm(length), this.convertToTerm(after), this.convertToTerm(sub_atom)]);
|
|
578
|
-
}
|
|
579
|
-
function number_chars2(first, second) {
|
|
580
|
-
return this.structOf('number_chars', [this.convertToTerm(first), this.convertToTerm(second)]);
|
|
581
|
-
}
|
|
582
|
-
function number_codes2(first, second) {
|
|
583
|
-
return this.structOf('number_codes', [this.convertToTerm(first), this.convertToTerm(second)]);
|
|
584
|
-
}
|
|
585
|
-
function bagof3(template, goal, bag) {
|
|
586
|
-
return this.structOf('bagof', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
587
|
-
}
|
|
588
|
-
function setof3(template, goal, bag) {
|
|
589
|
-
return this.structOf('setof', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
590
|
-
}
|
|
591
|
-
function consult1(url) {
|
|
592
|
-
return this.structOf('consult', [this.convertToTerm(url)]);
|
|
593
|
-
}
|
|
594
|
-
function set_flag2(name, value) {
|
|
595
|
-
return this.structOf('set_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
596
|
-
}
|
|
597
|
-
function set_prolog_flag2(name, value) {
|
|
598
|
-
return this.structOf('set_prolog_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
599
|
-
}
|
|
600
|
-
function dynamic1(indicator) {
|
|
601
|
-
return this.structOf('dynamic', [this.convertToTerm(indicator)]);
|
|
586
|
+
function varTo(_this__u8e3s4, termObject) {
|
|
587
|
+
return Companion_getInstance_0().of(_this__u8e3s4, this.convertToTerm(termObject));
|
|
602
588
|
}
|
|
603
|
-
function
|
|
604
|
-
return this.
|
|
589
|
+
function stringTo(_this__u8e3s4, termObject) {
|
|
590
|
+
return Companion_getInstance_0().of(this.varOf(_this__u8e3s4), this.convertToTerm(termObject));
|
|
605
591
|
}
|
|
606
|
-
function
|
|
607
|
-
|
|
592
|
+
function substitutionGet(_this__u8e3s4, term) {
|
|
593
|
+
var t = this.convertToTerm(term);
|
|
594
|
+
var tmp;
|
|
595
|
+
if (isInterface(t, Var)) {
|
|
596
|
+
tmp = _this__u8e3s4.h2(t);
|
|
597
|
+
} else {
|
|
598
|
+
raiseErrorConvertingTo(term, getKClass(Var));
|
|
599
|
+
}
|
|
600
|
+
return tmp;
|
|
608
601
|
}
|
|
609
|
-
function
|
|
610
|
-
|
|
602
|
+
function substitutionContainsKey(_this__u8e3s4, term) {
|
|
603
|
+
var t = this.convertToTerm(term);
|
|
604
|
+
var tmp;
|
|
605
|
+
if (isInterface(t, Var)) {
|
|
606
|
+
tmp = _this__u8e3s4.f2(t);
|
|
607
|
+
} else {
|
|
608
|
+
raiseErrorConvertingTo(term, getKClass(Var));
|
|
609
|
+
}
|
|
610
|
+
return tmp;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
return this.
|
|
612
|
+
function substitutionContains(_this__u8e3s4, term) {
|
|
613
|
+
return this.substitutionContainsKey(_this__u8e3s4, term);
|
|
614
614
|
}
|
|
615
|
-
function
|
|
616
|
-
return
|
|
615
|
+
function substitutionContainsValue(_this__u8e3s4, term) {
|
|
616
|
+
return _this__u8e3s4.g2(this.convertToTerm(term));
|
|
617
617
|
}
|
|
618
|
-
initMetadataForInterface(
|
|
619
|
-
initMetadataForClass(LogicProgrammingScopeImpl, 'LogicProgrammingScopeImpl', VOID, VOID, [
|
|
618
|
+
initMetadataForInterface(LogicProgrammingScopeWithSubstitutions, 'LogicProgrammingScopeWithSubstitutions', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
619
|
+
initMetadataForClass(LogicProgrammingScopeImpl, 'LogicProgrammingScopeImpl', VOID, VOID, [LogicProgrammingScopeWithPrologStandardLibrary, LogicProgrammingScopeWithOperators, MinimalLogicProgrammingScope, LogicProgrammingScopeWithSubstitutions, BaseLogicProgrammingScope, Scope]);
|
|
620
620
|
initMetadataForCompanion(Companion_0);
|
|
621
621
|
initMetadataForClass(DefaultTermificator, 'DefaultTermificator', VOID, AbstractTermificator);
|
|
622
622
|
//endregion
|
|
@@ -627,193 +627,193 @@
|
|
|
627
627
|
}
|
|
628
628
|
function AbstractTermificator$handleSequenceAsList$lambda(this$0) {
|
|
629
629
|
return function (it) {
|
|
630
|
-
return this$0.
|
|
630
|
+
return this$0.o2x(it);
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
633
|
function AbstractTermificator$handleCharAsString$ref(p0) {
|
|
634
634
|
var l = function (_this__u8e3s4) {
|
|
635
|
-
return p0.
|
|
635
|
+
return p0.p2x(_this__u8e3s4.q1_1);
|
|
636
636
|
};
|
|
637
637
|
l.callableName = 'handleCharAsString';
|
|
638
638
|
return l;
|
|
639
639
|
}
|
|
640
640
|
function AbstractTermificator$handleBooleanAsTruth$ref(p0) {
|
|
641
641
|
var l = function (_this__u8e3s4) {
|
|
642
|
-
return p0.
|
|
642
|
+
return p0.q2x(_this__u8e3s4);
|
|
643
643
|
};
|
|
644
644
|
l.callableName = 'handleBooleanAsTruth';
|
|
645
645
|
return l;
|
|
646
646
|
}
|
|
647
647
|
function AbstractTermificator$handleStringAsAtomOrVariable$ref(p0) {
|
|
648
648
|
var l = function (_this__u8e3s4) {
|
|
649
|
-
return p0.
|
|
649
|
+
return p0.r2x(_this__u8e3s4);
|
|
650
650
|
};
|
|
651
651
|
l.callableName = 'handleStringAsAtomOrVariable';
|
|
652
652
|
return l;
|
|
653
653
|
}
|
|
654
654
|
function AbstractTermificator$handleBigIntegerAsInteger$ref(p0) {
|
|
655
655
|
var l = function (_this__u8e3s4) {
|
|
656
|
-
return p0.
|
|
656
|
+
return p0.s2x(_this__u8e3s4);
|
|
657
657
|
};
|
|
658
658
|
l.callableName = 'handleBigIntegerAsInteger';
|
|
659
659
|
return l;
|
|
660
660
|
}
|
|
661
661
|
function AbstractTermificator$handleBigDecimalAsReal$ref(p0) {
|
|
662
662
|
var l = function (_this__u8e3s4) {
|
|
663
|
-
return p0.
|
|
663
|
+
return p0.t2x(_this__u8e3s4);
|
|
664
664
|
};
|
|
665
665
|
l.callableName = 'handleBigDecimalAsReal';
|
|
666
666
|
return l;
|
|
667
667
|
}
|
|
668
668
|
function AbstractTermificator$handleNumberAsNumeric$ref(p0) {
|
|
669
669
|
var l = function (_this__u8e3s4) {
|
|
670
|
-
return p0.
|
|
670
|
+
return p0.u2x(_this__u8e3s4);
|
|
671
671
|
};
|
|
672
672
|
l.callableName = 'handleNumberAsNumeric';
|
|
673
673
|
return l;
|
|
674
674
|
}
|
|
675
675
|
function AbstractTermificator$handleArrayAsList$ref(p0) {
|
|
676
676
|
var l = function (_this__u8e3s4) {
|
|
677
|
-
return p0.
|
|
677
|
+
return p0.v2x(_this__u8e3s4);
|
|
678
678
|
};
|
|
679
679
|
l.callableName = 'handleArrayAsList';
|
|
680
680
|
return l;
|
|
681
681
|
}
|
|
682
682
|
function AbstractTermificator$handleSequenceAsList$ref(p0) {
|
|
683
683
|
var l = function (_this__u8e3s4) {
|
|
684
|
-
return p0.
|
|
684
|
+
return p0.w2x(_this__u8e3s4);
|
|
685
685
|
};
|
|
686
686
|
l.callableName = 'handleSequenceAsList';
|
|
687
687
|
return l;
|
|
688
688
|
}
|
|
689
689
|
function AbstractTermificator$handleIterableAsList$ref(p0) {
|
|
690
690
|
var l = function (_this__u8e3s4) {
|
|
691
|
-
return p0.
|
|
691
|
+
return p0.x2x(_this__u8e3s4);
|
|
692
692
|
};
|
|
693
693
|
l.callableName = 'handleIterableAsList';
|
|
694
694
|
return l;
|
|
695
695
|
}
|
|
696
696
|
function AbstractTermificator$handleCharAsString$ref_0(p0) {
|
|
697
697
|
var l = function (_this__u8e3s4) {
|
|
698
|
-
return p0.
|
|
698
|
+
return p0.p2x(_this__u8e3s4.q1_1);
|
|
699
699
|
};
|
|
700
700
|
l.callableName = 'handleCharAsString';
|
|
701
701
|
return l;
|
|
702
702
|
}
|
|
703
703
|
function AbstractTermificator$handleBooleanAsTruth$ref_0(p0) {
|
|
704
704
|
var l = function (_this__u8e3s4) {
|
|
705
|
-
return p0.
|
|
705
|
+
return p0.q2x(_this__u8e3s4);
|
|
706
706
|
};
|
|
707
707
|
l.callableName = 'handleBooleanAsTruth';
|
|
708
708
|
return l;
|
|
709
709
|
}
|
|
710
710
|
function AbstractTermificator$handleStringAsAtomOrVariable$ref_0(p0) {
|
|
711
711
|
var l = function (_this__u8e3s4) {
|
|
712
|
-
return p0.
|
|
712
|
+
return p0.r2x(_this__u8e3s4);
|
|
713
713
|
};
|
|
714
714
|
l.callableName = 'handleStringAsAtomOrVariable';
|
|
715
715
|
return l;
|
|
716
716
|
}
|
|
717
717
|
function AbstractTermificator$handleBigIntegerAsInteger$ref_0(p0) {
|
|
718
718
|
var l = function (_this__u8e3s4) {
|
|
719
|
-
return p0.
|
|
719
|
+
return p0.s2x(_this__u8e3s4);
|
|
720
720
|
};
|
|
721
721
|
l.callableName = 'handleBigIntegerAsInteger';
|
|
722
722
|
return l;
|
|
723
723
|
}
|
|
724
724
|
function AbstractTermificator$handleBigDecimalAsReal$ref_0(p0) {
|
|
725
725
|
var l = function (_this__u8e3s4) {
|
|
726
|
-
return p0.
|
|
726
|
+
return p0.t2x(_this__u8e3s4);
|
|
727
727
|
};
|
|
728
728
|
l.callableName = 'handleBigDecimalAsReal';
|
|
729
729
|
return l;
|
|
730
730
|
}
|
|
731
731
|
function AbstractTermificator$handleNumberAsNumeric$ref_0(p0) {
|
|
732
732
|
var l = function (_this__u8e3s4) {
|
|
733
|
-
return p0.
|
|
733
|
+
return p0.u2x(_this__u8e3s4);
|
|
734
734
|
};
|
|
735
735
|
l.callableName = 'handleNumberAsNumeric';
|
|
736
736
|
return l;
|
|
737
737
|
}
|
|
738
738
|
function AbstractTermificator$handleArrayAsList$ref_0(p0) {
|
|
739
739
|
var l = function (_this__u8e3s4) {
|
|
740
|
-
return p0.
|
|
740
|
+
return p0.v2x(_this__u8e3s4);
|
|
741
741
|
};
|
|
742
742
|
l.callableName = 'handleArrayAsList';
|
|
743
743
|
return l;
|
|
744
744
|
}
|
|
745
745
|
function AbstractTermificator$handleSequenceAsList$ref_0(p0) {
|
|
746
746
|
var l = function (_this__u8e3s4) {
|
|
747
|
-
return p0.
|
|
747
|
+
return p0.w2x(_this__u8e3s4);
|
|
748
748
|
};
|
|
749
749
|
l.callableName = 'handleSequenceAsList';
|
|
750
750
|
return l;
|
|
751
751
|
}
|
|
752
752
|
function AbstractTermificator$handleKotlinListAsLogicList$ref(p0) {
|
|
753
753
|
var l = function (_this__u8e3s4) {
|
|
754
|
-
return p0.
|
|
754
|
+
return p0.y2x(_this__u8e3s4);
|
|
755
755
|
};
|
|
756
756
|
l.callableName = 'handleKotlinListAsLogicList';
|
|
757
757
|
return l;
|
|
758
758
|
}
|
|
759
759
|
function AbstractTermificator$handleSetAsBlock$ref(p0) {
|
|
760
760
|
var l = function (_this__u8e3s4) {
|
|
761
|
-
return p0.
|
|
761
|
+
return p0.z2x(_this__u8e3s4);
|
|
762
762
|
};
|
|
763
763
|
l.callableName = 'handleSetAsBlock';
|
|
764
764
|
return l;
|
|
765
765
|
}
|
|
766
766
|
function AbstractTermificator$handlePairAsTuple$ref(p0) {
|
|
767
767
|
var l = function (_this__u8e3s4) {
|
|
768
|
-
return p0.
|
|
768
|
+
return p0.a2y(_this__u8e3s4);
|
|
769
769
|
};
|
|
770
770
|
l.callableName = 'handlePairAsTuple';
|
|
771
771
|
return l;
|
|
772
772
|
}
|
|
773
773
|
function AbstractTermificator$handleTripletAsTuple$ref(p0) {
|
|
774
774
|
var l = function (_this__u8e3s4) {
|
|
775
|
-
return p0.
|
|
775
|
+
return p0.b2y(_this__u8e3s4);
|
|
776
776
|
};
|
|
777
777
|
l.callableName = 'handleTripletAsTuple';
|
|
778
778
|
return l;
|
|
779
779
|
}
|
|
780
780
|
function AbstractTermificator$handleKeyValuePairAsStruct$ref(p0) {
|
|
781
781
|
var l = function (_this__u8e3s4) {
|
|
782
|
-
return p0.
|
|
782
|
+
return p0.c2y(_this__u8e3s4);
|
|
783
783
|
};
|
|
784
784
|
l.callableName = 'handleKeyValuePairAsStruct';
|
|
785
785
|
return l;
|
|
786
786
|
}
|
|
787
787
|
function AbstractTermificator$handleMapAsBlock$ref(p0) {
|
|
788
788
|
var l = function (_this__u8e3s4) {
|
|
789
|
-
return p0.
|
|
789
|
+
return p0.d2y(_this__u8e3s4);
|
|
790
790
|
};
|
|
791
791
|
l.callableName = 'handleMapAsBlock';
|
|
792
792
|
return l;
|
|
793
793
|
}
|
|
794
794
|
function AbstractTermificator$handleIterableAsList$ref_0(p0) {
|
|
795
795
|
var l = function (_this__u8e3s4) {
|
|
796
|
-
return p0.
|
|
796
|
+
return p0.x2x(_this__u8e3s4);
|
|
797
797
|
};
|
|
798
798
|
l.callableName = 'handleIterableAsList';
|
|
799
799
|
return l;
|
|
800
800
|
}
|
|
801
801
|
function AbstractTermificator(scope) {
|
|
802
|
-
this.
|
|
802
|
+
this.m2x_1 = scope;
|
|
803
803
|
var tmp = this;
|
|
804
804
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
805
|
-
tmp.
|
|
805
|
+
tmp.n2x_1 = LinkedHashMap_init_$Create$();
|
|
806
806
|
}
|
|
807
|
-
protoOf(AbstractTermificator).
|
|
808
|
-
return this.
|
|
807
|
+
protoOf(AbstractTermificator).x1g = function () {
|
|
808
|
+
return this.m2x_1;
|
|
809
809
|
};
|
|
810
|
-
protoOf(AbstractTermificator).
|
|
811
|
-
var tmp0 = this.
|
|
810
|
+
protoOf(AbstractTermificator).e2y = function (type, conversion) {
|
|
811
|
+
var tmp0 = this.n2x_1;
|
|
812
812
|
// Inline function 'kotlin.collections.set' call
|
|
813
813
|
var value = AbstractTermificator$handleType$lambda(conversion);
|
|
814
814
|
tmp0.k4(type, value);
|
|
815
815
|
};
|
|
816
|
-
protoOf(AbstractTermificator).
|
|
816
|
+
protoOf(AbstractTermificator).o2x = function (value) {
|
|
817
817
|
$l$block: {
|
|
818
818
|
// Inline function 'kotlin.requireNotNull' call
|
|
819
819
|
if (value == null) {
|
|
@@ -830,12 +830,12 @@
|
|
|
830
830
|
return value.toTerm();
|
|
831
831
|
}
|
|
832
832
|
var type = getKClassFromExpression(value);
|
|
833
|
-
var exactConverter = this.
|
|
833
|
+
var exactConverter = this.n2x_1.h2(type);
|
|
834
834
|
if (!(exactConverter == null)) {
|
|
835
835
|
return exactConverter(value);
|
|
836
836
|
}
|
|
837
837
|
// Inline function 'kotlin.collections.iterator' call
|
|
838
|
-
var _iterator__ex2g4s = this.
|
|
838
|
+
var _iterator__ex2g4s = this.n2x_1.f1().p();
|
|
839
839
|
while (_iterator__ex2g4s.s()) {
|
|
840
840
|
var _destruct__k2r9zo = _iterator__ex2g4s.t();
|
|
841
841
|
// Inline function 'kotlin.collections.component1' call
|
|
@@ -849,32 +849,32 @@
|
|
|
849
849
|
raiseErrorConvertingTo(value, getKClass(Term));
|
|
850
850
|
};
|
|
851
851
|
protoOf(AbstractTermificator).toTerm = function (value) {
|
|
852
|
-
return this.
|
|
852
|
+
return this.o2x(value);
|
|
853
853
|
};
|
|
854
|
-
protoOf(AbstractTermificator).
|
|
855
|
-
return this.
|
|
854
|
+
protoOf(AbstractTermificator).q2x = function (value) {
|
|
855
|
+
return this.x1g().truthOf(value);
|
|
856
856
|
};
|
|
857
|
-
protoOf(AbstractTermificator).
|
|
858
|
-
return this.
|
|
857
|
+
protoOf(AbstractTermificator).p2x = function (value) {
|
|
858
|
+
return this.o2x(toString_0(value));
|
|
859
859
|
};
|
|
860
|
-
protoOf(AbstractTermificator).
|
|
860
|
+
protoOf(AbstractTermificator).r2x = function (value) {
|
|
861
861
|
var tmp;
|
|
862
862
|
// Inline function 'kotlin.text.matches' call
|
|
863
|
-
if (Companion_getInstance().
|
|
864
|
-
tmp = this.
|
|
863
|
+
if (Companion_getInstance().p13_1.ua(value)) {
|
|
864
|
+
tmp = this.x1g().varOf(value);
|
|
865
865
|
} else {
|
|
866
|
-
tmp = this.
|
|
866
|
+
tmp = this.x1g().atomOf(value);
|
|
867
867
|
}
|
|
868
868
|
return tmp;
|
|
869
869
|
};
|
|
870
|
-
protoOf(AbstractTermificator).
|
|
871
|
-
return this.
|
|
870
|
+
protoOf(AbstractTermificator).s2x = function (value) {
|
|
871
|
+
return this.x1g().intOfBigInteger(value);
|
|
872
872
|
};
|
|
873
|
-
protoOf(AbstractTermificator).
|
|
874
|
-
return this.
|
|
873
|
+
protoOf(AbstractTermificator).t2x = function (value) {
|
|
874
|
+
return this.x1g().realOfBigDecimal(value);
|
|
875
875
|
};
|
|
876
|
-
protoOf(AbstractTermificator).
|
|
877
|
-
var tmp = this.
|
|
876
|
+
protoOf(AbstractTermificator).v2x = function (value) {
|
|
877
|
+
var tmp = this.x1g();
|
|
878
878
|
// Inline function 'kotlin.collections.map' call
|
|
879
879
|
var this_0 = assertItemsAreNotNull(asIterable(value));
|
|
880
880
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -882,18 +882,18 @@
|
|
|
882
882
|
var _iterator__ex2g4s = this_0.p();
|
|
883
883
|
while (_iterator__ex2g4s.s()) {
|
|
884
884
|
var item = _iterator__ex2g4s.t();
|
|
885
|
-
var tmp$ret$0 = this.
|
|
885
|
+
var tmp$ret$0 = this.o2x(item);
|
|
886
886
|
destination.m(tmp$ret$0);
|
|
887
887
|
}
|
|
888
888
|
return tmp.logicListOfIterable(destination);
|
|
889
889
|
};
|
|
890
|
-
protoOf(AbstractTermificator).
|
|
891
|
-
var tmp = this.
|
|
890
|
+
protoOf(AbstractTermificator).w2x = function (value) {
|
|
891
|
+
var tmp = this.x1g();
|
|
892
892
|
var tmp_0 = assertItemsAreNotNull_0(value);
|
|
893
893
|
return tmp.logicListOfSequence(map(tmp_0, AbstractTermificator$handleSequenceAsList$lambda(this)));
|
|
894
894
|
};
|
|
895
|
-
protoOf(AbstractTermificator).
|
|
896
|
-
var tmp = this.
|
|
895
|
+
protoOf(AbstractTermificator).x2x = function (value) {
|
|
896
|
+
var tmp = this.x1g();
|
|
897
897
|
// Inline function 'kotlin.collections.map' call
|
|
898
898
|
var this_0 = assertItemsAreNotNull(value);
|
|
899
899
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -901,13 +901,13 @@
|
|
|
901
901
|
var _iterator__ex2g4s = this_0.p();
|
|
902
902
|
while (_iterator__ex2g4s.s()) {
|
|
903
903
|
var item = _iterator__ex2g4s.t();
|
|
904
|
-
var tmp$ret$0 = this.
|
|
904
|
+
var tmp$ret$0 = this.o2x(item);
|
|
905
905
|
destination.m(tmp$ret$0);
|
|
906
906
|
}
|
|
907
907
|
return tmp.logicListOfIterable(destination);
|
|
908
908
|
};
|
|
909
|
-
protoOf(AbstractTermificator).
|
|
910
|
-
var tmp = this.
|
|
909
|
+
protoOf(AbstractTermificator).y2x = function (value) {
|
|
910
|
+
var tmp = this.x1g();
|
|
911
911
|
// Inline function 'kotlin.collections.map' call
|
|
912
912
|
var this_0 = assertItemsAreNotNull_1(value);
|
|
913
913
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -915,13 +915,13 @@
|
|
|
915
915
|
var _iterator__ex2g4s = this_0.p();
|
|
916
916
|
while (_iterator__ex2g4s.s()) {
|
|
917
917
|
var item = _iterator__ex2g4s.t();
|
|
918
|
-
var tmp$ret$0 = this.
|
|
918
|
+
var tmp$ret$0 = this.o2x(item);
|
|
919
919
|
destination.m(tmp$ret$0);
|
|
920
920
|
}
|
|
921
921
|
return tmp.logicListOfIterable(destination);
|
|
922
922
|
};
|
|
923
|
-
protoOf(AbstractTermificator).
|
|
924
|
-
var tmp = this.
|
|
923
|
+
protoOf(AbstractTermificator).z2x = function (value) {
|
|
924
|
+
var tmp = this.x1g();
|
|
925
925
|
// Inline function 'kotlin.collections.map' call
|
|
926
926
|
var this_0 = assertItemsAreNotNull(value);
|
|
927
927
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -929,91 +929,91 @@
|
|
|
929
929
|
var _iterator__ex2g4s = this_0.p();
|
|
930
930
|
while (_iterator__ex2g4s.s()) {
|
|
931
931
|
var item = _iterator__ex2g4s.t();
|
|
932
|
-
var tmp$ret$0 = this.
|
|
932
|
+
var tmp$ret$0 = this.o2x(item);
|
|
933
933
|
destination.m(tmp$ret$0);
|
|
934
934
|
}
|
|
935
935
|
return tmp.blockOfIterable(destination);
|
|
936
936
|
};
|
|
937
|
-
protoOf(AbstractTermificator).
|
|
938
|
-
return this.
|
|
937
|
+
protoOf(AbstractTermificator).a2y = function (value) {
|
|
938
|
+
return this.x1g().tupleOf([this.o2x(value.first), this.o2x(value.second)]);
|
|
939
939
|
};
|
|
940
|
-
protoOf(AbstractTermificator).
|
|
941
|
-
return this.
|
|
940
|
+
protoOf(AbstractTermificator).b2y = function (value) {
|
|
941
|
+
return this.x1g().tupleOf([this.o2x(value.ji_1), this.o2x(value.ki_1), this.o2x(value.li_1)]);
|
|
942
942
|
};
|
|
943
|
-
protoOf(AbstractTermificator).
|
|
944
|
-
return this.
|
|
943
|
+
protoOf(AbstractTermificator).c2y = function (value) {
|
|
944
|
+
return this.x1g().structOf(':', [this.o2x(value.d2()), this.o2x(value.e2())]);
|
|
945
945
|
};
|
|
946
|
-
protoOf(AbstractTermificator).
|
|
947
|
-
var tmp = this.
|
|
946
|
+
protoOf(AbstractTermificator).d2y = function (value) {
|
|
947
|
+
var tmp = this.x1g();
|
|
948
948
|
// Inline function 'kotlin.collections.map' call
|
|
949
|
-
var this_0 = assertItemsAreNotNull(value.
|
|
949
|
+
var this_0 = assertItemsAreNotNull(value.f1());
|
|
950
950
|
// Inline function 'kotlin.collections.mapTo' call
|
|
951
951
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
952
952
|
var _iterator__ex2g4s = this_0.p();
|
|
953
953
|
while (_iterator__ex2g4s.s()) {
|
|
954
954
|
var item = _iterator__ex2g4s.t();
|
|
955
|
-
var tmp$ret$0 = this.
|
|
955
|
+
var tmp$ret$0 = this.c2y(item);
|
|
956
956
|
destination.m(tmp$ret$0);
|
|
957
957
|
}
|
|
958
958
|
return tmp.blockOfIterable(destination);
|
|
959
959
|
};
|
|
960
|
-
protoOf(AbstractTermificator).
|
|
960
|
+
protoOf(AbstractTermificator).f2y = function () {
|
|
961
961
|
var tmp = getKClass(Char);
|
|
962
|
-
this.
|
|
962
|
+
this.e2y(tmp, AbstractTermificator$handleCharAsString$ref(this));
|
|
963
963
|
var tmp_0 = PrimitiveClasses_getInstance().n9();
|
|
964
|
-
this.
|
|
964
|
+
this.e2y(tmp_0, AbstractTermificator$handleBooleanAsTruth$ref(this));
|
|
965
965
|
var tmp_1 = PrimitiveClasses_getInstance().v9();
|
|
966
|
-
this.
|
|
966
|
+
this.e2y(tmp_1, AbstractTermificator$handleStringAsAtomOrVariable$ref(this));
|
|
967
967
|
var tmp_2 = getKClass(BigInteger);
|
|
968
|
-
this.
|
|
968
|
+
this.e2y(tmp_2, AbstractTermificator$handleBigIntegerAsInteger$ref(this));
|
|
969
969
|
var tmp_3 = getKClass(BigDecimal);
|
|
970
|
-
this.
|
|
970
|
+
this.e2y(tmp_3, AbstractTermificator$handleBigDecimalAsReal$ref(this));
|
|
971
971
|
var tmp_4 = PrimitiveClasses_getInstance().l9();
|
|
972
|
-
this.
|
|
972
|
+
this.e2y(tmp_4, AbstractTermificator$handleNumberAsNumeric$ref(this));
|
|
973
973
|
var tmp_5 = PrimitiveClasses_getInstance().u9();
|
|
974
|
-
this.
|
|
974
|
+
this.e2y(tmp_5, AbstractTermificator$handleArrayAsList$ref(this));
|
|
975
975
|
var tmp_6 = getKClass(Sequence);
|
|
976
|
-
this.
|
|
976
|
+
this.e2y(tmp_6, AbstractTermificator$handleSequenceAsList$ref(this));
|
|
977
977
|
var tmp_7 = getKClass(Iterable);
|
|
978
|
-
this.
|
|
978
|
+
this.e2y(tmp_7, AbstractTermificator$handleIterableAsList$ref(this));
|
|
979
979
|
};
|
|
980
|
-
protoOf(AbstractTermificator).
|
|
980
|
+
protoOf(AbstractTermificator).g2y = function () {
|
|
981
981
|
var tmp = getKClass(Char);
|
|
982
|
-
this.
|
|
982
|
+
this.e2y(tmp, AbstractTermificator$handleCharAsString$ref_0(this));
|
|
983
983
|
var tmp_0 = PrimitiveClasses_getInstance().n9();
|
|
984
|
-
this.
|
|
984
|
+
this.e2y(tmp_0, AbstractTermificator$handleBooleanAsTruth$ref_0(this));
|
|
985
985
|
var tmp_1 = PrimitiveClasses_getInstance().v9();
|
|
986
|
-
this.
|
|
986
|
+
this.e2y(tmp_1, AbstractTermificator$handleStringAsAtomOrVariable$ref_0(this));
|
|
987
987
|
var tmp_2 = getKClass(BigInteger);
|
|
988
|
-
this.
|
|
988
|
+
this.e2y(tmp_2, AbstractTermificator$handleBigIntegerAsInteger$ref_0(this));
|
|
989
989
|
var tmp_3 = getKClass(BigDecimal);
|
|
990
|
-
this.
|
|
990
|
+
this.e2y(tmp_3, AbstractTermificator$handleBigDecimalAsReal$ref_0(this));
|
|
991
991
|
var tmp_4 = PrimitiveClasses_getInstance().l9();
|
|
992
|
-
this.
|
|
992
|
+
this.e2y(tmp_4, AbstractTermificator$handleNumberAsNumeric$ref_0(this));
|
|
993
993
|
var tmp_5 = PrimitiveClasses_getInstance().u9();
|
|
994
|
-
this.
|
|
994
|
+
this.e2y(tmp_5, AbstractTermificator$handleArrayAsList$ref_0(this));
|
|
995
995
|
var tmp_6 = getKClass(Sequence);
|
|
996
|
-
this.
|
|
996
|
+
this.e2y(tmp_6, AbstractTermificator$handleSequenceAsList$ref_0(this));
|
|
997
997
|
var tmp_7 = getKClass(KtList);
|
|
998
|
-
this.
|
|
998
|
+
this.e2y(tmp_7, AbstractTermificator$handleKotlinListAsLogicList$ref(this));
|
|
999
999
|
var tmp_8 = getKClass(KtSet);
|
|
1000
|
-
this.
|
|
1000
|
+
this.e2y(tmp_8, AbstractTermificator$handleSetAsBlock$ref(this));
|
|
1001
1001
|
var tmp_9 = getKClass(Pair);
|
|
1002
|
-
this.
|
|
1002
|
+
this.e2y(tmp_9, AbstractTermificator$handlePairAsTuple$ref(this));
|
|
1003
1003
|
var tmp_10 = getKClass(Triple);
|
|
1004
|
-
this.
|
|
1004
|
+
this.e2y(tmp_10, AbstractTermificator$handleTripletAsTuple$ref(this));
|
|
1005
1005
|
var tmp_11 = getKClass(Entry);
|
|
1006
|
-
this.
|
|
1006
|
+
this.e2y(tmp_11, AbstractTermificator$handleKeyValuePairAsStruct$ref(this));
|
|
1007
1007
|
var tmp_12 = getKClass(KtMap);
|
|
1008
|
-
this.
|
|
1008
|
+
this.e2y(tmp_12, AbstractTermificator$handleMapAsBlock$ref(this));
|
|
1009
1009
|
var tmp_13 = getKClass(Iterable);
|
|
1010
|
-
this.
|
|
1010
|
+
this.e2y(tmp_13, AbstractTermificator$handleIterableAsList$ref_0(this));
|
|
1011
1011
|
};
|
|
1012
|
-
protoOf(AbstractTermificator).
|
|
1012
|
+
protoOf(AbstractTermificator).h2y = function (novel) {
|
|
1013
1013
|
if (novel) {
|
|
1014
|
-
this.
|
|
1014
|
+
this.g2y();
|
|
1015
1015
|
} else {
|
|
1016
|
-
this.
|
|
1016
|
+
this.f2y();
|
|
1017
1017
|
}
|
|
1018
1018
|
};
|
|
1019
1019
|
function BaseLogicProgrammingScope() {
|
|
@@ -1029,244 +1029,244 @@
|
|
|
1029
1029
|
protoOf(Companion).empty = function () {
|
|
1030
1030
|
return this.of();
|
|
1031
1031
|
};
|
|
1032
|
-
protoOf(Companion).
|
|
1033
|
-
return new LogicProgrammingScopeImpl(scope, termificator.
|
|
1032
|
+
protoOf(Companion).j2y = function (scope, termificator, variablesProvider) {
|
|
1033
|
+
return new LogicProgrammingScopeImpl(scope, termificator.x1g() === scope ? termificator : termificator.y1g(scope), variablesProvider.x1g() === scope ? variablesProvider : variablesProvider.y1g(scope));
|
|
1034
1034
|
};
|
|
1035
1035
|
protoOf(Companion).of = function (scope, termificator, variablesProvider, $super) {
|
|
1036
1036
|
scope = scope === VOID ? Companion_instance.empty() : scope;
|
|
1037
1037
|
termificator = termificator === VOID ? Companion_instance_3.default(scope) : termificator;
|
|
1038
|
-
variablesProvider = variablesProvider === VOID ? Companion_instance_0.
|
|
1039
|
-
return $super === VOID ? this.
|
|
1038
|
+
variablesProvider = variablesProvider === VOID ? Companion_instance_0.u13(scope) : variablesProvider;
|
|
1039
|
+
return $super === VOID ? this.j2y(scope, termificator, variablesProvider) : $super.j2y.call(this, scope, termificator, variablesProvider);
|
|
1040
1040
|
};
|
|
1041
1041
|
var Companion_instance_2;
|
|
1042
1042
|
function Companion_getInstance_1() {
|
|
1043
1043
|
return Companion_instance_2;
|
|
1044
1044
|
}
|
|
1045
1045
|
function LogicProgrammingScopeImpl(scope, termificator, variablesProvider) {
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1048
|
-
this.
|
|
1046
|
+
this.k2y_1 = scope;
|
|
1047
|
+
this.l2y_1 = termificator;
|
|
1048
|
+
this.m2y_1 = variablesProvider;
|
|
1049
1049
|
// Inline function 'kotlin.require' call
|
|
1050
|
-
if (!(this.
|
|
1050
|
+
if (!(this.k2y_1 === this.m2y_1.x1g() && this.k2y_1 === this.l2y_1.x1g())) {
|
|
1051
1051
|
var message = 'The provided Scope should be the same object for both Termificator and VariablesProvider';
|
|
1052
1052
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1056
|
-
return this.
|
|
1055
|
+
protoOf(LogicProgrammingScopeImpl).x1g = function () {
|
|
1056
|
+
return this.k2y_1;
|
|
1057
1057
|
};
|
|
1058
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1059
|
-
return this.
|
|
1058
|
+
protoOf(LogicProgrammingScopeImpl).i2y = function () {
|
|
1059
|
+
return this.l2y_1;
|
|
1060
1060
|
};
|
|
1061
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1062
|
-
return new LogicProgrammingScopeImpl(scope, this.
|
|
1061
|
+
protoOf(LogicProgrammingScopeImpl).y1g = function (scope) {
|
|
1062
|
+
return new LogicProgrammingScopeImpl(scope, this.l2y_1.y1g(scope), this.m2y_1.y1g(scope));
|
|
1063
1063
|
};
|
|
1064
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1065
|
-
return this.
|
|
1064
|
+
protoOf(LogicProgrammingScopeImpl).n2y = function () {
|
|
1065
|
+
return this.y1g(Companion_instance.empty());
|
|
1066
1066
|
};
|
|
1067
1067
|
protoOf(LogicProgrammingScopeImpl).newScope = function () {
|
|
1068
|
-
return this.
|
|
1068
|
+
return this.n2y();
|
|
1069
1069
|
};
|
|
1070
1070
|
protoOf(LogicProgrammingScopeImpl).structOf = function (functor, args) {
|
|
1071
|
-
return this.
|
|
1071
|
+
return this.m2y_1.structOf(functor, args);
|
|
1072
1072
|
};
|
|
1073
1073
|
protoOf(LogicProgrammingScopeImpl).structOfSequence = function (functor, args) {
|
|
1074
|
-
return this.
|
|
1074
|
+
return this.m2y_1.structOfSequence(functor, args);
|
|
1075
1075
|
};
|
|
1076
1076
|
protoOf(LogicProgrammingScopeImpl).structOfIterable = function (functor, args) {
|
|
1077
|
-
return this.
|
|
1077
|
+
return this.m2y_1.structOfIterable(functor, args);
|
|
1078
1078
|
};
|
|
1079
1079
|
protoOf(LogicProgrammingScopeImpl).structOfList = function (functor, args) {
|
|
1080
|
-
return this.
|
|
1080
|
+
return this.m2y_1.structOfList(functor, args);
|
|
1081
1081
|
};
|
|
1082
1082
|
protoOf(LogicProgrammingScopeImpl).tupleOf = function (terms) {
|
|
1083
|
-
return this.
|
|
1083
|
+
return this.m2y_1.tupleOf(terms);
|
|
1084
1084
|
};
|
|
1085
1085
|
protoOf(LogicProgrammingScopeImpl).tupleOfIterable = function (terms) {
|
|
1086
|
-
return this.
|
|
1086
|
+
return this.m2y_1.tupleOfIterable(terms);
|
|
1087
1087
|
};
|
|
1088
1088
|
protoOf(LogicProgrammingScopeImpl).tupleOfSequence = function (terms) {
|
|
1089
|
-
return this.
|
|
1089
|
+
return this.m2y_1.tupleOfSequence(terms);
|
|
1090
1090
|
};
|
|
1091
1091
|
protoOf(LogicProgrammingScopeImpl).logicListOf = function (terms) {
|
|
1092
|
-
return this.
|
|
1092
|
+
return this.m2y_1.logicListOf(terms);
|
|
1093
1093
|
};
|
|
1094
1094
|
protoOf(LogicProgrammingScopeImpl).logicListOfIterable = function (terms) {
|
|
1095
|
-
return this.
|
|
1095
|
+
return this.m2y_1.logicListOfIterable(terms);
|
|
1096
1096
|
};
|
|
1097
1097
|
protoOf(LogicProgrammingScopeImpl).logicListOfSequence = function (terms) {
|
|
1098
|
-
return this.
|
|
1098
|
+
return this.m2y_1.logicListOfSequence(terms);
|
|
1099
1099
|
};
|
|
1100
1100
|
protoOf(LogicProgrammingScopeImpl).blockOf = function (terms) {
|
|
1101
|
-
return this.
|
|
1101
|
+
return this.m2y_1.blockOf(terms);
|
|
1102
1102
|
};
|
|
1103
1103
|
protoOf(LogicProgrammingScopeImpl).blockOfIterable = function (terms) {
|
|
1104
|
-
return this.
|
|
1104
|
+
return this.m2y_1.blockOfIterable(terms);
|
|
1105
1105
|
};
|
|
1106
1106
|
protoOf(LogicProgrammingScopeImpl).blockOfSequence = function (terms) {
|
|
1107
|
-
return this.
|
|
1107
|
+
return this.m2y_1.blockOfSequence(terms);
|
|
1108
1108
|
};
|
|
1109
1109
|
protoOf(LogicProgrammingScopeImpl).factOf = function (head) {
|
|
1110
|
-
return this.
|
|
1110
|
+
return this.m2y_1.factOf(head);
|
|
1111
1111
|
};
|
|
1112
1112
|
protoOf(LogicProgrammingScopeImpl).consOf = function (head, tail) {
|
|
1113
|
-
return this.
|
|
1113
|
+
return this.m2y_1.consOf(head, tail);
|
|
1114
1114
|
};
|
|
1115
1115
|
protoOf(LogicProgrammingScopeImpl).directiveOf = function (body1, body) {
|
|
1116
|
-
return this.
|
|
1116
|
+
return this.m2y_1.directiveOf(body1, body);
|
|
1117
1117
|
};
|
|
1118
1118
|
protoOf(LogicProgrammingScopeImpl).containsVar = function (variable) {
|
|
1119
|
-
return this.
|
|
1119
|
+
return this.m2y_1.containsVar(variable);
|
|
1120
1120
|
};
|
|
1121
1121
|
protoOf(LogicProgrammingScopeImpl).contains = function (variable) {
|
|
1122
|
-
return this.
|
|
1122
|
+
return this.m2y_1.contains(variable);
|
|
1123
1123
|
};
|
|
1124
1124
|
protoOf(LogicProgrammingScopeImpl).get = function (variable) {
|
|
1125
|
-
return this.
|
|
1125
|
+
return this.m2y_1.get(variable);
|
|
1126
1126
|
};
|
|
1127
1127
|
protoOf(LogicProgrammingScopeImpl).where = function (lambda) {
|
|
1128
|
-
return this.
|
|
1128
|
+
return this.m2y_1.where(lambda);
|
|
1129
1129
|
};
|
|
1130
1130
|
protoOf(LogicProgrammingScopeImpl).with = function (lambda) {
|
|
1131
|
-
return this.
|
|
1131
|
+
return this.m2y_1.with(lambda);
|
|
1132
1132
|
};
|
|
1133
1133
|
protoOf(LogicProgrammingScopeImpl).varOf = function (name) {
|
|
1134
|
-
return this.
|
|
1134
|
+
return this.m2y_1.varOf(name);
|
|
1135
1135
|
};
|
|
1136
1136
|
protoOf(LogicProgrammingScopeImpl).varOfChar = function (name) {
|
|
1137
|
-
return this.
|
|
1137
|
+
return this.m2y_1.varOfChar(name);
|
|
1138
1138
|
};
|
|
1139
1139
|
protoOf(LogicProgrammingScopeImpl).atomOf = function (value) {
|
|
1140
|
-
return this.
|
|
1140
|
+
return this.m2y_1.atomOf(value);
|
|
1141
1141
|
};
|
|
1142
1142
|
protoOf(LogicProgrammingScopeImpl).atomOfChar = function (value) {
|
|
1143
|
-
return this.
|
|
1143
|
+
return this.m2y_1.atomOfChar(value);
|
|
1144
1144
|
};
|
|
1145
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1146
|
-
return this.
|
|
1145
|
+
protoOf(LogicProgrammingScopeImpl).v10 = function (terms, last) {
|
|
1146
|
+
return this.m2y_1.v10(terms, last);
|
|
1147
1147
|
};
|
|
1148
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1149
|
-
return this.
|
|
1148
|
+
protoOf(LogicProgrammingScopeImpl).w10 = function (terms, last) {
|
|
1149
|
+
return this.m2y_1.w10(terms, last);
|
|
1150
1150
|
};
|
|
1151
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1152
|
-
return this.
|
|
1151
|
+
protoOf(LogicProgrammingScopeImpl).x10 = function (terms, last) {
|
|
1152
|
+
return this.m2y_1.x10(terms, last);
|
|
1153
1153
|
};
|
|
1154
1154
|
protoOf(LogicProgrammingScopeImpl).ruleOf = function (head, body1, body) {
|
|
1155
|
-
return this.
|
|
1155
|
+
return this.m2y_1.ruleOf(head, body1, body);
|
|
1156
1156
|
};
|
|
1157
1157
|
protoOf(LogicProgrammingScopeImpl).clauseOf = function (head, body) {
|
|
1158
|
-
return this.
|
|
1158
|
+
return this.m2y_1.clauseOf(head, body);
|
|
1159
1159
|
};
|
|
1160
1160
|
protoOf(LogicProgrammingScopeImpl).indicatorOf = function (name, arity) {
|
|
1161
|
-
return this.
|
|
1161
|
+
return this.m2y_1.indicatorOf(name, arity);
|
|
1162
1162
|
};
|
|
1163
1163
|
protoOf(LogicProgrammingScopeImpl).indicatorOfStringInt = function (name, arity) {
|
|
1164
|
-
return this.
|
|
1164
|
+
return this.m2y_1.indicatorOfStringInt(name, arity);
|
|
1165
1165
|
};
|
|
1166
1166
|
protoOf(LogicProgrammingScopeImpl).anonymous = function () {
|
|
1167
|
-
return this.
|
|
1167
|
+
return this.m2y_1.anonymous();
|
|
1168
1168
|
};
|
|
1169
1169
|
protoOf(LogicProgrammingScopeImpl).whatever = function () {
|
|
1170
|
-
return this.
|
|
1170
|
+
return this.m2y_1.whatever();
|
|
1171
1171
|
};
|
|
1172
1172
|
protoOf(LogicProgrammingScopeImpl).numOfBigDecimal = function (value) {
|
|
1173
|
-
return this.
|
|
1173
|
+
return this.m2y_1.numOfBigDecimal(value);
|
|
1174
1174
|
};
|
|
1175
1175
|
protoOf(LogicProgrammingScopeImpl).numOfDouble = function (value) {
|
|
1176
|
-
return this.
|
|
1176
|
+
return this.m2y_1.numOfDouble(value);
|
|
1177
1177
|
};
|
|
1178
1178
|
protoOf(LogicProgrammingScopeImpl).numOfFloat = function (value) {
|
|
1179
|
-
return this.
|
|
1179
|
+
return this.m2y_1.numOfFloat(value);
|
|
1180
1180
|
};
|
|
1181
1181
|
protoOf(LogicProgrammingScopeImpl).numOfBigInteger = function (value) {
|
|
1182
|
-
return this.
|
|
1182
|
+
return this.m2y_1.numOfBigInteger(value);
|
|
1183
1183
|
};
|
|
1184
1184
|
protoOf(LogicProgrammingScopeImpl).numOfInt = function (value) {
|
|
1185
|
-
return this.
|
|
1185
|
+
return this.m2y_1.numOfInt(value);
|
|
1186
1186
|
};
|
|
1187
1187
|
protoOf(LogicProgrammingScopeImpl).numOfLong = function (value) {
|
|
1188
|
-
return this.
|
|
1188
|
+
return this.m2y_1.numOfLong(value);
|
|
1189
1189
|
};
|
|
1190
1190
|
protoOf(LogicProgrammingScopeImpl).numOfShort = function (value) {
|
|
1191
|
-
return this.
|
|
1191
|
+
return this.m2y_1.numOfShort(value);
|
|
1192
1192
|
};
|
|
1193
1193
|
protoOf(LogicProgrammingScopeImpl).numOfByte = function (value) {
|
|
1194
|
-
return this.
|
|
1194
|
+
return this.m2y_1.numOfByte(value);
|
|
1195
1195
|
};
|
|
1196
1196
|
protoOf(LogicProgrammingScopeImpl).parseNum = function (value) {
|
|
1197
|
-
return this.
|
|
1197
|
+
return this.m2y_1.parseNum(value);
|
|
1198
1198
|
};
|
|
1199
1199
|
protoOf(LogicProgrammingScopeImpl).numOf = function (value) {
|
|
1200
|
-
return this.
|
|
1200
|
+
return this.m2y_1.numOf(value);
|
|
1201
1201
|
};
|
|
1202
1202
|
protoOf(LogicProgrammingScopeImpl).intOfBigInteger = function (value) {
|
|
1203
|
-
return this.
|
|
1203
|
+
return this.m2y_1.intOfBigInteger(value);
|
|
1204
1204
|
};
|
|
1205
1205
|
protoOf(LogicProgrammingScopeImpl).intOf = function (value) {
|
|
1206
|
-
return this.
|
|
1206
|
+
return this.m2y_1.intOf(value);
|
|
1207
1207
|
};
|
|
1208
1208
|
protoOf(LogicProgrammingScopeImpl).intOfLong = function (value) {
|
|
1209
|
-
return this.
|
|
1209
|
+
return this.m2y_1.intOfLong(value);
|
|
1210
1210
|
};
|
|
1211
1211
|
protoOf(LogicProgrammingScopeImpl).intOfShort = function (value) {
|
|
1212
|
-
return this.
|
|
1212
|
+
return this.m2y_1.intOfShort(value);
|
|
1213
1213
|
};
|
|
1214
1214
|
protoOf(LogicProgrammingScopeImpl).intOfByte = function (value) {
|
|
1215
|
-
return this.
|
|
1215
|
+
return this.m2y_1.intOfByte(value);
|
|
1216
1216
|
};
|
|
1217
1217
|
protoOf(LogicProgrammingScopeImpl).parseInt = function (value) {
|
|
1218
|
-
return this.
|
|
1218
|
+
return this.m2y_1.parseInt(value);
|
|
1219
1219
|
};
|
|
1220
1220
|
protoOf(LogicProgrammingScopeImpl).parseIntRadix = function (value, radix) {
|
|
1221
|
-
return this.
|
|
1221
|
+
return this.m2y_1.parseIntRadix(value, radix);
|
|
1222
1222
|
};
|
|
1223
1223
|
protoOf(LogicProgrammingScopeImpl).realOfBigDecimal = function (value) {
|
|
1224
|
-
return this.
|
|
1224
|
+
return this.m2y_1.realOfBigDecimal(value);
|
|
1225
1225
|
};
|
|
1226
1226
|
protoOf(LogicProgrammingScopeImpl).realOf = function (value) {
|
|
1227
|
-
return this.
|
|
1227
|
+
return this.m2y_1.realOf(value);
|
|
1228
1228
|
};
|
|
1229
1229
|
protoOf(LogicProgrammingScopeImpl).realOfFloat = function (value) {
|
|
1230
|
-
return this.
|
|
1230
|
+
return this.m2y_1.realOfFloat(value);
|
|
1231
1231
|
};
|
|
1232
1232
|
protoOf(LogicProgrammingScopeImpl).parseReal = function (value) {
|
|
1233
|
-
return this.
|
|
1233
|
+
return this.m2y_1.parseReal(value);
|
|
1234
1234
|
};
|
|
1235
1235
|
protoOf(LogicProgrammingScopeImpl).truthOf = function (value) {
|
|
1236
|
-
return this.
|
|
1236
|
+
return this.m2y_1.truthOf(value);
|
|
1237
1237
|
};
|
|
1238
1238
|
protoOf(LogicProgrammingScopeImpl).unifierOf = function (assignments) {
|
|
1239
|
-
return this.
|
|
1239
|
+
return this.m2y_1.unifierOf(assignments);
|
|
1240
1240
|
};
|
|
1241
1241
|
protoOf(LogicProgrammingScopeImpl).unifierOfIterable = function (assignments) {
|
|
1242
|
-
return this.
|
|
1242
|
+
return this.m2y_1.unifierOfIterable(assignments);
|
|
1243
1243
|
};
|
|
1244
1244
|
protoOf(LogicProgrammingScopeImpl).unifierOfSequence = function (assignments) {
|
|
1245
|
-
return this.
|
|
1245
|
+
return this.m2y_1.unifierOfSequence(assignments);
|
|
1246
1246
|
};
|
|
1247
1247
|
protoOf(LogicProgrammingScopeImpl).substitutionOf = function (assignments) {
|
|
1248
|
-
return this.
|
|
1248
|
+
return this.m2y_1.substitutionOf(assignments);
|
|
1249
1249
|
};
|
|
1250
1250
|
protoOf(LogicProgrammingScopeImpl).substitutionOfIterable = function (assignments) {
|
|
1251
|
-
return this.
|
|
1251
|
+
return this.m2y_1.substitutionOfIterable(assignments);
|
|
1252
1252
|
};
|
|
1253
1253
|
protoOf(LogicProgrammingScopeImpl).substitutionOfSequence = function (assignments) {
|
|
1254
|
-
return this.
|
|
1254
|
+
return this.m2y_1.substitutionOfSequence(assignments);
|
|
1255
1255
|
};
|
|
1256
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1257
|
-
return this.
|
|
1256
|
+
protoOf(LogicProgrammingScopeImpl).t10 = function () {
|
|
1257
|
+
return this.m2y_1.t10();
|
|
1258
1258
|
};
|
|
1259
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1260
|
-
return this.
|
|
1259
|
+
protoOf(LogicProgrammingScopeImpl).u10 = function () {
|
|
1260
|
+
return this.m2y_1.u10();
|
|
1261
1261
|
};
|
|
1262
1262
|
protoOf(LogicProgrammingScopeImpl).getValue = function (thisRef, property) {
|
|
1263
|
-
return this.
|
|
1263
|
+
return this.m2y_1.getValue(thisRef, property);
|
|
1264
1264
|
};
|
|
1265
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1266
|
-
return this.
|
|
1265
|
+
protoOf(LogicProgrammingScopeImpl).a1h = function () {
|
|
1266
|
+
return this.m2y_1.a1h();
|
|
1267
1267
|
};
|
|
1268
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1269
|
-
return this.
|
|
1268
|
+
protoOf(LogicProgrammingScopeImpl).b1h = function () {
|
|
1269
|
+
return this.m2y_1.b1h();
|
|
1270
1270
|
};
|
|
1271
1271
|
function LogicProgrammingScopeWithOperators() {
|
|
1272
1272
|
}
|
|
@@ -1310,21 +1310,21 @@
|
|
|
1310
1310
|
function DefaultTermificator(scope, novel) {
|
|
1311
1311
|
novel = novel === VOID ? false : novel;
|
|
1312
1312
|
AbstractTermificator.call(this, scope);
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1313
|
+
this.r2y_1 = novel;
|
|
1314
|
+
this.h2y(this.r2y_1);
|
|
1315
|
+
this.s2y_1 = new NumberTypeTester();
|
|
1316
1316
|
}
|
|
1317
|
-
protoOf(DefaultTermificator).
|
|
1317
|
+
protoOf(DefaultTermificator).u2x = function (value) {
|
|
1318
1318
|
var tmp;
|
|
1319
|
-
if (this.
|
|
1320
|
-
tmp = this.
|
|
1319
|
+
if (this.s2y_1.os(value)) {
|
|
1320
|
+
tmp = this.x1g().intOfBigInteger(this.s2y_1.ps(value));
|
|
1321
1321
|
} else {
|
|
1322
|
-
tmp = this.
|
|
1322
|
+
tmp = this.x1g().realOfBigDecimal(this.s2y_1.qs(value));
|
|
1323
1323
|
}
|
|
1324
1324
|
return tmp;
|
|
1325
1325
|
};
|
|
1326
|
-
protoOf(DefaultTermificator).
|
|
1327
|
-
return new DefaultTermificator(scope, this.
|
|
1326
|
+
protoOf(DefaultTermificator).y1g = function (scope) {
|
|
1327
|
+
return new DefaultTermificator(scope, this.r2y_1);
|
|
1328
1328
|
};
|
|
1329
1329
|
protoOf(DefaultTermificator).copy = function (scope, $super) {
|
|
1330
1330
|
return this.copy(scope, ($super == null ? true : $super instanceof DefaultTermificator) ? $super : THROW_CCE());
|
|
@@ -1343,7 +1343,7 @@
|
|
|
1343
1343
|
protoOf(LogicProgrammingScopeImpl).consOfAny = consOfAny;
|
|
1344
1344
|
protoOf(LogicProgrammingScopeImpl).directiveOfAny = directiveOfAny;
|
|
1345
1345
|
protoOf(LogicProgrammingScopeImpl).withScope = withScope;
|
|
1346
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1346
|
+
protoOf(LogicProgrammingScopeImpl).o2y = logicList;
|
|
1347
1347
|
protoOf(LogicProgrammingScopeImpl).logicList = logicList_0;
|
|
1348
1348
|
protoOf(LogicProgrammingScopeImpl).rule = rule;
|
|
1349
1349
|
protoOf(LogicProgrammingScopeImpl).clause2 = clause2;
|