@tuprolog/arg2p-causality-solver 0.9.0 → 0.10.0
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 +2731 -2785
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +5 -1620
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +5 -949
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +5 -796
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +5 -69
- package/2p-dsl-unify.js.map +1 -1
- package/2p-parser-core.js +5 -1264
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +5 -29
- package/2p-parser-js.js.map +1 -1
- package/2p-parser-theory.js +5 -146
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve-classic.js +1027 -1034
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve.js +4052 -4410
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1634 -1649
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +252 -259
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +455 -542
- package/2p-utils.js.map +1 -1
- package/arg2p-causality-solver.js +4 -8
- package/arg2p-causality-solver.js.map +1 -1
- package/arg2p-core.js +5 -4829
- package/arg2p-core.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2088 -2773
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +2218 -2222
- package/kt-math.js.map +1 -1
- package/package.json +3 -3
package/2p-dsl-theory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
package/2p-dsl-unify.js
CHANGED
|
@@ -1,77 +1,13 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports'
|
|
3
|
+
define(['exports'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
if (typeof this['2p-unify'] === 'undefined') {
|
|
11
|
-
throw new Error("Error loading module '2p-dsl-unify'. Its dependency '2p-unify' was not found. Please, check whether '2p-unify' is loaded prior to '2p-dsl-unify'.");
|
|
12
|
-
}
|
|
13
|
-
if (typeof this['2p-dsl-core'] === 'undefined') {
|
|
14
|
-
throw new Error("Error loading module '2p-dsl-unify'. Its dependency '2p-dsl-core' was not found. Please, check whether '2p-dsl-core' is loaded prior to '2p-dsl-unify'.");
|
|
15
|
-
}
|
|
16
|
-
root['2p-dsl-unify'] = factory(typeof this['2p-dsl-unify'] === 'undefined' ? {} : this['2p-dsl-unify'], this['kotlin-kotlin-stdlib'], this['2p-unify'], this['2p-dsl-core']);
|
|
17
|
-
}
|
|
18
|
-
}(this, function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_unify, kotlin_it_unibo_tuprolog_dsl_core) {
|
|
5
|
+
factory(module.exports);
|
|
6
|
+
else
|
|
7
|
+
root['2p-dsl-unify'] = factory(typeof this['2p-dsl-unify'] === 'undefined' ? {} : this['2p-dsl-unify']);
|
|
8
|
+
}(this, function (_) {
|
|
19
9
|
'use strict';
|
|
20
|
-
//region block: imports
|
|
21
|
-
var protoOf = kotlin_kotlin.$_$.a6;
|
|
22
|
-
var VOID = kotlin_kotlin.$_$.d;
|
|
23
|
-
var Unificator = kotlin_it_unibo_tuprolog_unify.$_$.c;
|
|
24
|
-
var BaseLogicProgrammingScope = kotlin_it_unibo_tuprolog_dsl_core.$_$.e;
|
|
25
|
-
var interfaceMeta = kotlin_kotlin.$_$.n5;
|
|
26
|
-
var setMetadataFor = kotlin_kotlin.$_$.b6;
|
|
27
|
-
//endregion
|
|
28
10
|
//region block: pre-declaration
|
|
29
|
-
function anyMguWith(_this__u8e3s4, other) {
|
|
30
|
-
return this.mgu(this.convertToTerm(_this__u8e3s4), this.convertToTerm(other));
|
|
31
|
-
}
|
|
32
|
-
function anyMatches(_this__u8e3s4, other) {
|
|
33
|
-
return this.match(this.convertToTerm(_this__u8e3s4), this.convertToTerm(other));
|
|
34
|
-
}
|
|
35
|
-
function anyUnifyWith(_this__u8e3s4, other) {
|
|
36
|
-
return this.unify(this.convertToTerm(_this__u8e3s4), this.convertToTerm(other));
|
|
37
|
-
}
|
|
38
|
-
function mgu(term1, term2, occurCheckEnabled) {
|
|
39
|
-
return this.u1j(this.convertToTerm(term1), this.convertToTerm(term2), occurCheckEnabled);
|
|
40
|
-
}
|
|
41
|
-
function mguAny(term1, term2, occurCheckEnabled, $super) {
|
|
42
|
-
occurCheckEnabled = occurCheckEnabled === VOID ? true : occurCheckEnabled;
|
|
43
|
-
return $super === VOID ? this.a1l(term1, term2, occurCheckEnabled) : mgu(term1, term2, occurCheckEnabled);
|
|
44
|
-
}
|
|
45
|
-
function match(term1, term2, occurCheckEnabled) {
|
|
46
|
-
return this.matchWithOccurCheck(this.convertToTerm(term1), this.convertToTerm(term2), occurCheckEnabled);
|
|
47
|
-
}
|
|
48
|
-
function matchAny(term1, term2, occurCheckEnabled, $super) {
|
|
49
|
-
occurCheckEnabled = occurCheckEnabled === VOID ? true : occurCheckEnabled;
|
|
50
|
-
return $super === VOID ? this.b1l(term1, term2, occurCheckEnabled) : match(term1, term2, occurCheckEnabled);
|
|
51
|
-
}
|
|
52
|
-
function unify(term1, term2, occurCheckEnabled) {
|
|
53
|
-
return this.unifyWithOccurCheck(this.convertToTerm(term1), this.convertToTerm(term2), occurCheckEnabled);
|
|
54
|
-
}
|
|
55
|
-
function unifyAny(term1, term2, occurCheckEnabled, $super) {
|
|
56
|
-
occurCheckEnabled = occurCheckEnabled === VOID ? true : occurCheckEnabled;
|
|
57
|
-
return $super === VOID ? this.c1l(term1, term2, occurCheckEnabled) : unify(term1, term2, occurCheckEnabled);
|
|
58
|
-
}
|
|
59
|
-
setMetadataFor(LogicProgrammingScopeWithUnification, 'LogicProgrammingScopeWithUnification', interfaceMeta, VOID, [Unificator, BaseLogicProgrammingScope]);
|
|
60
|
-
//endregion
|
|
61
|
-
function LogicProgrammingScopeWithUnification() {
|
|
62
|
-
}
|
|
63
|
-
//region block: exports
|
|
64
|
-
_.$_$ = _.$_$ || {};
|
|
65
|
-
_.$_$.a = matchAny;
|
|
66
|
-
_.$_$.b = mguAny;
|
|
67
|
-
_.$_$.c = unifyAny;
|
|
68
|
-
_.$_$.d = anyMatches;
|
|
69
|
-
_.$_$.e = match;
|
|
70
|
-
_.$_$.f = anyMguWith;
|
|
71
|
-
_.$_$.g = mgu;
|
|
72
|
-
_.$_$.h = anyUnifyWith;
|
|
73
|
-
_.$_$.i = unify;
|
|
74
|
-
_.$_$.j = LogicProgrammingScopeWithUnification;
|
|
75
11
|
//endregion
|
|
76
12
|
return _;
|
|
77
13
|
}));
|
package/2p-dsl-unify.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|