@tuprolog/arg2p 0.16.6 → 0.16.8
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 +2737 -2732
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +479 -479
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +247 -247
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +154 -154
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +6 -6
- package/2p-dsl-unify.js.map +1 -1
- package/2p-io-lib.js +1046 -836
- package/2p-io-lib.js.map +1 -1
- package/2p-parser-core.js +127 -127
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1575 -1575
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +91 -91
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve-prolog.js +2856 -0
- package/2p-solve-prolog.js.map +1 -0
- package/2p-solve.js +5655 -4460
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1693 -1693
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +363 -363
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +448 -448
- package/2p-utils.js.map +1 -1
- package/arg2p-causality-solver.js +267 -261
- package/arg2p-causality-solver.js.map +1 -1
- package/arg2p-core.js +3218 -2130
- package/arg2p-core.js.map +1 -1
- package/arg2p.js +117 -117
- package/arg2p.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2803 -2699
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1544 -1544
- package/kt-math.js.map +1 -1
- package/okio-parent-okio-nodefilesystem.js +51 -51
- package/okio-parent-okio-nodefilesystem.js.map +1 -1
- package/okio-parent-okio.js +693 -693
- package/okio-parent-okio.js.map +1 -1
- package/package.json +1 -1
- package/2p-solve-classic.js +0 -2832
- package/2p-solve-classic.js.map +0 -1
package/2p-io-lib.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './2p-parser-impl.js', './2p-solve.js', './2p-parser-core.js', './2p-core.js', './
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './2p-parser-impl.js', './2p-solve.js', './2p-parser-core.js', './2p-core.js', './okio-parent-okio.js', './2p-parser-theory.js', './2p-theory.js', './okio-parent-okio-nodefilesystem.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./2p-parser-impl.js'), require('./2p-solve.js'), require('./2p-parser-core.js'), require('./2p-core.js'), require('./
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./2p-parser-impl.js'), require('./2p-solve.js'), require('./2p-parser-core.js'), require('./2p-core.js'), require('./okio-parent-okio.js'), require('./2p-parser-theory.js'), require('./2p-theory.js'), require('./okio-parent-okio-nodefilesystem.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module '2p-io-lib'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to '2p-io-lib'.");
|
|
@@ -19,115 +19,115 @@
|
|
|
19
19
|
if (typeof globalThis['2p-core'] === 'undefined') {
|
|
20
20
|
throw new Error("Error loading module '2p-io-lib'. Its dependency '2p-core' was not found. Please, check whether '2p-core' is loaded prior to '2p-io-lib'.");
|
|
21
21
|
}
|
|
22
|
+
if (typeof globalThis['okio-parent-okio'] === 'undefined') {
|
|
23
|
+
throw new Error("Error loading module '2p-io-lib'. Its dependency 'okio-parent-okio' was not found. Please, check whether 'okio-parent-okio' is loaded prior to '2p-io-lib'.");
|
|
24
|
+
}
|
|
22
25
|
if (typeof globalThis['2p-parser-theory'] === 'undefined') {
|
|
23
26
|
throw new Error("Error loading module '2p-io-lib'. Its dependency '2p-parser-theory' was not found. Please, check whether '2p-parser-theory' is loaded prior to '2p-io-lib'.");
|
|
24
27
|
}
|
|
25
28
|
if (typeof globalThis['2p-theory'] === 'undefined') {
|
|
26
29
|
throw new Error("Error loading module '2p-io-lib'. Its dependency '2p-theory' was not found. Please, check whether '2p-theory' is loaded prior to '2p-io-lib'.");
|
|
27
30
|
}
|
|
28
|
-
if (typeof globalThis['okio-parent-okio'] === 'undefined') {
|
|
29
|
-
throw new Error("Error loading module '2p-io-lib'. Its dependency 'okio-parent-okio' was not found. Please, check whether 'okio-parent-okio' is loaded prior to '2p-io-lib'.");
|
|
30
|
-
}
|
|
31
31
|
if (typeof globalThis['okio-parent-okio-nodefilesystem'] === 'undefined') {
|
|
32
32
|
throw new Error("Error loading module '2p-io-lib'. Its dependency 'okio-parent-okio-nodefilesystem' was not found. Please, check whether 'okio-parent-okio-nodefilesystem' is loaded prior to '2p-io-lib'.");
|
|
33
33
|
}
|
|
34
|
-
globalThis['2p-io-lib'] = factory(typeof globalThis['2p-io-lib'] === 'undefined' ? {} : globalThis['2p-io-lib'], globalThis['kotlin-kotlin-stdlib'], globalThis['2p-parser-impl'], globalThis['2p-solve'], globalThis['2p-parser-core'], globalThis['2p-core'], globalThis['
|
|
34
|
+
globalThis['2p-io-lib'] = factory(typeof globalThis['2p-io-lib'] === 'undefined' ? {} : globalThis['2p-io-lib'], globalThis['kotlin-kotlin-stdlib'], globalThis['2p-parser-impl'], globalThis['2p-solve'], globalThis['2p-parser-core'], globalThis['2p-core'], globalThis['okio-parent-okio'], globalThis['2p-parser-theory'], globalThis['2p-theory'], globalThis['okio-parent-okio-nodefilesystem']);
|
|
35
35
|
}
|
|
36
|
-
}(function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_parser_impl, kotlin_it_unibo_tuprolog_solve, kotlin_it_unibo_tuprolog_parser_core, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_parser_theory, kotlin_it_unibo_tuprolog_theory,
|
|
36
|
+
}(function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_parser_impl, kotlin_it_unibo_tuprolog_solve, kotlin_it_unibo_tuprolog_parser_core, kotlin_it_unibo_tuprolog_core, kotlin_com_squareup_okio_okio, kotlin_it_unibo_tuprolog_parser_theory, kotlin_it_unibo_tuprolog_theory, kotlin_com_squareup_okio_okio_nodefilesystem) {
|
|
37
37
|
'use strict';
|
|
38
38
|
//region block: imports
|
|
39
39
|
var VOID = kotlin_kotlin.$_$.b;
|
|
40
40
|
var buildParserFor = kotlin_it_unibo_tuprolog_parser_impl.$_$.v;
|
|
41
|
-
var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
41
|
+
var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.p;
|
|
42
42
|
var Unit_instance = kotlin_kotlin.$_$.q;
|
|
43
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
44
|
-
var equals = kotlin_kotlin.$_$.
|
|
45
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
46
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
43
|
+
var protoOf = kotlin_kotlin.$_$.v7;
|
|
44
|
+
var equals = kotlin_kotlin.$_$.b7;
|
|
45
|
+
var FunctionAdapter = kotlin_kotlin.$_$.q6;
|
|
46
|
+
var isInterface = kotlin_kotlin.$_$.p7;
|
|
47
47
|
var TextChunkSource = kotlin_it_unibo_tuprolog_parser_impl.$_$.t;
|
|
48
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
49
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
50
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
51
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
52
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
53
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
48
|
+
var hashCode = kotlin_kotlin.$_$.h7;
|
|
49
|
+
var initMetadataForClass = kotlin_kotlin.$_$.i7;
|
|
50
|
+
var CoroutineImpl = kotlin_kotlin.$_$.w5;
|
|
51
|
+
var THROW_CCE = kotlin_kotlin.$_$.kc;
|
|
52
|
+
var SequenceScope = kotlin_kotlin.$_$.r8;
|
|
53
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v5;
|
|
54
54
|
var toParseException = kotlin_it_unibo_tuprolog_parser_core.$_$.j;
|
|
55
55
|
var PrologSyntaxException = kotlin_it_unibo_tuprolog_parser_impl.$_$.j;
|
|
56
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
57
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
56
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.l7;
|
|
57
|
+
var constructCallableReference = kotlin_kotlin.$_$.z6;
|
|
58
58
|
var toOperatorTable = kotlin_it_unibo_tuprolog_parser_core.$_$.i;
|
|
59
59
|
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.t;
|
|
60
60
|
var PrologTermParserVisitor = kotlin_it_unibo_tuprolog_parser_core.$_$.b;
|
|
61
|
-
var sequence = kotlin_kotlin.$_$.
|
|
62
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
63
|
-
var AbstractLibrary = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
64
|
-
var Companion_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
65
|
-
var listOf = kotlin_kotlin.$_$.
|
|
66
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
61
|
+
var sequence = kotlin_kotlin.$_$.y9;
|
|
62
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
63
|
+
var AbstractLibrary = kotlin_it_unibo_tuprolog_solve.$_$.n2;
|
|
64
|
+
var Companion_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.i1;
|
|
65
|
+
var listOf = kotlin_kotlin.$_$.z3;
|
|
66
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.s2;
|
|
67
67
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
68
|
-
var to = kotlin_kotlin.$_$.
|
|
69
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
68
|
+
var to = kotlin_kotlin.$_$.yc;
|
|
69
|
+
var initMetadataForObject = kotlin_kotlin.$_$.m7;
|
|
70
70
|
var Companion_instance_1 = kotlin_kotlin.$_$.o;
|
|
71
|
-
var asSequence = kotlin_kotlin.$_$.
|
|
72
|
-
var map = kotlin_kotlin.$_$.
|
|
71
|
+
var asSequence = kotlin_kotlin.$_$.p2;
|
|
72
|
+
var map = kotlin_kotlin.$_$.q9;
|
|
73
73
|
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.k;
|
|
74
|
-
var toSet = kotlin_kotlin.$_$.
|
|
75
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
76
|
-
var THROW_IAE = kotlin_kotlin.$_$.
|
|
77
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
78
|
-
var Enum = kotlin_kotlin.$_$.
|
|
79
|
-
var toString = kotlin_kotlin.$_$.
|
|
80
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
81
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
82
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
83
|
-
var AbstractOutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
84
|
-
var AbstractInputChannel = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
74
|
+
var toSet = kotlin_kotlin.$_$.ha;
|
|
75
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.j7;
|
|
76
|
+
var THROW_IAE = kotlin_kotlin.$_$.lc;
|
|
77
|
+
var enumEntries = kotlin_kotlin.$_$.x5;
|
|
78
|
+
var Enum = kotlin_kotlin.$_$.ac;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.y7;
|
|
80
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
81
|
+
var startsWith = kotlin_kotlin.$_$.hb;
|
|
82
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.k7;
|
|
83
|
+
var AbstractOutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.g2;
|
|
84
|
+
var AbstractInputChannel = kotlin_it_unibo_tuprolog_solve.$_$.f2;
|
|
85
85
|
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
86
86
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.c;
|
|
87
87
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.g;
|
|
88
|
-
var numberToChar = kotlin_kotlin.$_$.
|
|
89
|
-
var Char = kotlin_kotlin.$_$.
|
|
88
|
+
var numberToChar = kotlin_kotlin.$_$.s7;
|
|
89
|
+
var Char = kotlin_kotlin.$_$.xb;
|
|
90
90
|
var toString_0 = kotlin_kotlin.$_$.h;
|
|
91
91
|
var TuPrologException_init_$Init$ = kotlin_it_unibo_tuprolog_core.$_$.h1;
|
|
92
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
93
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
92
|
+
var objectCreate = kotlin_kotlin.$_$.u7;
|
|
93
|
+
var captureStack = kotlin_kotlin.$_$.s6;
|
|
94
94
|
var TuPrologException_init_$Init$_0 = kotlin_it_unibo_tuprolog_core.$_$.i1;
|
|
95
95
|
var TuPrologException = kotlin_it_unibo_tuprolog_core.$_$.l1;
|
|
96
|
-
var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
97
|
-
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
98
|
-
var Expected_URL_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
99
|
-
var Predicative = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
100
|
-
var Predicative_0 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
101
|
-
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
102
|
-
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
103
|
-
var InputChannel = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
104
|
-
var OutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
105
|
-
var NonBacktrackable_0 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
106
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
107
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
96
|
+
var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.b1;
|
|
97
|
+
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.c1;
|
|
98
|
+
var Expected_URL_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.n;
|
|
99
|
+
var Predicative = kotlin_it_unibo_tuprolog_solve.$_$.s2;
|
|
100
|
+
var Predicative_0 = kotlin_it_unibo_tuprolog_solve.$_$.x2;
|
|
101
|
+
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.p2;
|
|
102
|
+
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_solve.$_$.k1;
|
|
103
|
+
var InputChannel = kotlin_it_unibo_tuprolog_solve.$_$.h2;
|
|
104
|
+
var OutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.i2;
|
|
105
|
+
var NonBacktrackable_0 = kotlin_it_unibo_tuprolog_solve.$_$.w2;
|
|
106
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
107
|
+
var IllegalStateException = kotlin_kotlin.$_$.dc;
|
|
108
108
|
var Atom = kotlin_it_unibo_tuprolog_core.$_$.o1;
|
|
109
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
110
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
111
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
112
|
-
var flatMap = kotlin_kotlin.$_$.
|
|
109
|
+
var KProperty1 = kotlin_kotlin.$_$.q8;
|
|
110
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.f7;
|
|
111
|
+
var sequenceOf = kotlin_kotlin.$_$.w9;
|
|
112
|
+
var flatMap = kotlin_kotlin.$_$.g9;
|
|
113
113
|
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.u;
|
|
114
114
|
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.b1;
|
|
115
115
|
var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_core.$_$.z;
|
|
116
116
|
var Companion_instance_4 = kotlin_it_unibo_tuprolog_core.$_$.p;
|
|
117
|
-
var filter = kotlin_kotlin.$_$.
|
|
118
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
119
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
117
|
+
var filter = kotlin_kotlin.$_$.d9;
|
|
118
|
+
var Sequence = kotlin_kotlin.$_$.s8;
|
|
119
|
+
var firstOrNull = kotlin_kotlin.$_$.e9;
|
|
120
120
|
var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
121
121
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.t;
|
|
122
|
-
var asSequence_0 = kotlin_kotlin.$_$.
|
|
123
|
-
var addAll = kotlin_kotlin.$_$.
|
|
124
|
-
var toList = kotlin_kotlin.$_$.
|
|
122
|
+
var asSequence_0 = kotlin_kotlin.$_$.o2;
|
|
123
|
+
var addAll = kotlin_kotlin.$_$.h2;
|
|
124
|
+
var toList = kotlin_kotlin.$_$.h5;
|
|
125
125
|
var Struct = kotlin_it_unibo_tuprolog_core.$_$.b2;
|
|
126
|
-
var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
127
|
-
var filterNot = kotlin_kotlin.$_$.
|
|
126
|
+
var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.r;
|
|
127
|
+
var filterNot = kotlin_kotlin.$_$.c9;
|
|
128
128
|
var Truth = kotlin_it_unibo_tuprolog_core.$_$.b3;
|
|
129
|
-
var lazy = kotlin_kotlin.$_$.
|
|
130
|
-
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
129
|
+
var lazy = kotlin_kotlin.$_$.tc;
|
|
130
|
+
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.u;
|
|
131
131
|
var Expected_STREAM_PROPERTY_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.e;
|
|
132
132
|
var Expected_WRITE_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g;
|
|
133
133
|
var Expected_READ_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.b;
|
|
@@ -141,44 +141,47 @@
|
|
|
141
141
|
var VarFormat_UNDERSCORE_getInstance = kotlin_it_unibo_tuprolog_core.$_$.f;
|
|
142
142
|
var Expected_SOURCE_SINK_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.c;
|
|
143
143
|
var Expected_IO_MODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.a;
|
|
144
|
-
var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
144
|
+
var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.w;
|
|
145
145
|
var Expected_STREAM_OR_ALIAS_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.d;
|
|
146
|
-
var Expected_IN_CHARACTER_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
147
|
-
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
148
|
-
var Limit_CHARACTER_CODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
146
|
+
var Expected_IN_CHARACTER_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.l;
|
|
147
|
+
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.z;
|
|
148
|
+
var Limit_CHARACTER_CODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.i;
|
|
149
149
|
var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_core.$_$.o;
|
|
150
150
|
var Integer = kotlin_it_unibo_tuprolog_core.$_$.v1;
|
|
151
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
151
|
+
var KtMap = kotlin_kotlin.$_$.e2;
|
|
152
152
|
var Expected_STREAM_TYPE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f;
|
|
153
153
|
var format = kotlin_it_unibo_tuprolog_core.$_$.e3;
|
|
154
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
155
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
156
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
157
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
158
|
-
var last = kotlin_kotlin.$_$.
|
|
159
|
-
var Companion_instance_10 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
154
|
+
var charCodeAt = kotlin_kotlin.$_$.v6;
|
|
155
|
+
var emptyList = kotlin_kotlin.$_$.g3;
|
|
156
|
+
var get_lastIndex = kotlin_kotlin.$_$.t3;
|
|
157
|
+
var toList_0 = kotlin_kotlin.$_$.fa;
|
|
158
|
+
var last = kotlin_kotlin.$_$.v3;
|
|
159
|
+
var Companion_instance_10 = kotlin_it_unibo_tuprolog_solve.$_$.a1;
|
|
160
160
|
var ParseException = kotlin_it_unibo_tuprolog_parser_core.$_$.a;
|
|
161
|
-
var emptySet = kotlin_kotlin.$_$.
|
|
162
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
163
|
-
var
|
|
164
|
-
var
|
|
161
|
+
var emptySet = kotlin_kotlin.$_$.i3;
|
|
162
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.uc;
|
|
163
|
+
var ObjectType_SOURCE_SINK_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.h;
|
|
164
|
+
var ExistenceError_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.b2;
|
|
165
|
+
var FileNotFoundException = kotlin_com_squareup_okio_okio.$_$.d;
|
|
166
|
+
var NonBacktrackable_1 = kotlin_it_unibo_tuprolog_solve.$_$.v2;
|
|
167
|
+
var NonBacktrackable_2 = kotlin_it_unibo_tuprolog_solve.$_$.t2;
|
|
165
168
|
var Companion_instance_11 = kotlin_it_unibo_tuprolog_parser_theory.$_$.a;
|
|
166
169
|
var Companion_instance_12 = kotlin_it_unibo_tuprolog_theory.$_$.b;
|
|
167
170
|
var Companion_instance_13 = kotlin_it_unibo_tuprolog_theory.$_$.a;
|
|
168
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
169
|
-
var titlecase = kotlin_kotlin.$_$.
|
|
170
|
-
var isLowerCase = kotlin_kotlin.$_$.
|
|
171
|
-
var substring = kotlin_kotlin.$_$.
|
|
172
|
-
var BinaryRelation = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
173
|
-
var distinct = kotlin_kotlin.$_$.
|
|
174
|
-
var removeSuffix = kotlin_kotlin.$_$.
|
|
175
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
176
|
-
var removePrefix = kotlin_kotlin.$_$.
|
|
171
|
+
var charSequenceLength = kotlin_kotlin.$_$.x6;
|
|
172
|
+
var titlecase = kotlin_kotlin.$_$.nb;
|
|
173
|
+
var isLowerCase = kotlin_kotlin.$_$.ua;
|
|
174
|
+
var substring = kotlin_kotlin.$_$.lb;
|
|
175
|
+
var BinaryRelation = kotlin_it_unibo_tuprolog_solve.$_$.r2;
|
|
176
|
+
var distinct = kotlin_kotlin.$_$.y8;
|
|
177
|
+
var removeSuffix = kotlin_kotlin.$_$.ab;
|
|
178
|
+
var toIntOrNull = kotlin_kotlin.$_$.qb;
|
|
179
|
+
var removePrefix = kotlin_kotlin.$_$.ya;
|
|
177
180
|
var buffer = kotlin_com_squareup_okio_okio.$_$.g;
|
|
178
|
-
var addSuppressed = kotlin_kotlin.$_$.
|
|
181
|
+
var addSuppressed = kotlin_kotlin.$_$.oc;
|
|
179
182
|
var IOException = kotlin_com_squareup_okio_okio.$_$.f;
|
|
180
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
181
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
183
|
+
var getStringHashCode = kotlin_kotlin.$_$.g7;
|
|
184
|
+
var KProperty0 = kotlin_kotlin.$_$.p8;
|
|
182
185
|
var Info_getInstance = kotlin_it_unibo_tuprolog_core.$_$.d1;
|
|
183
186
|
var Platform_BROWSER_getInstance = kotlin_it_unibo_tuprolog_core.$_$.g;
|
|
184
187
|
var Companion_getInstance_7 = kotlin_com_squareup_okio_okio.$_$.a;
|
|
@@ -194,16 +197,16 @@
|
|
|
194
197
|
initMetadataForObject(LocalFileSystem, 'LocalFileSystem');
|
|
195
198
|
initMetadataForCompanion(Companion_0);
|
|
196
199
|
function resolve(child) {
|
|
197
|
-
return Companion_instance_15.
|
|
200
|
+
return Companion_instance_15.u45(this.y45(), this.z45(), this.a46(), this.j3a() + '/' + child, this.n1z());
|
|
198
201
|
}
|
|
199
202
|
function div(child) {
|
|
200
203
|
return this.resolve(child);
|
|
201
204
|
}
|
|
202
205
|
function get_isFile() {
|
|
203
|
-
return this.
|
|
206
|
+
return this.y45() === 'file';
|
|
204
207
|
}
|
|
205
208
|
function get_isHttp() {
|
|
206
|
-
return startsWith(this.
|
|
209
|
+
return startsWith(this.y45(), 'http');
|
|
207
210
|
}
|
|
208
211
|
initMetadataForInterface(Url, 'Url');
|
|
209
212
|
initMetadataForClass(SinkOutputChannel, 'SinkOutputChannel', VOID, AbstractOutputChannel);
|
|
@@ -269,16 +272,16 @@
|
|
|
269
272
|
_init_properties_ChannelUtils_kt__fqios2();
|
|
270
273
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
271
274
|
var this_0 = get_cache();
|
|
272
|
-
var value = this_0.
|
|
275
|
+
var value = this_0.l2(_this__u8e3s4);
|
|
273
276
|
var tmp;
|
|
274
277
|
if (value == null) {
|
|
275
278
|
var tmp_0 = asTermChannel$lambda(_this__u8e3s4);
|
|
276
279
|
var tmp_1 = new sam$it_unibo_tuprolog_parser_TextChunkSource$0(tmp_0);
|
|
277
|
-
var termIterator = buildParserFor(tmp_1, VOID, VOID, asTermChannel$lambda_0(operators)).
|
|
280
|
+
var termIterator = buildParserFor(tmp_1, VOID, VOID, asTermChannel$lambda_0(operators)).n();
|
|
278
281
|
var tmp_2 = Companion_instance;
|
|
279
282
|
var tmp_3 = asTermChannel$lambda_1(termIterator);
|
|
280
283
|
var answer = tmp_2.ofWithAvailabilityChecker(tmp_3, Iterator$hasNext$ref(termIterator));
|
|
281
|
-
this_0.
|
|
284
|
+
this_0.t4(_this__u8e3s4, answer);
|
|
282
285
|
tmp = answer;
|
|
283
286
|
} else {
|
|
284
287
|
tmp = value;
|
|
@@ -286,20 +289,20 @@
|
|
|
286
289
|
return tmp;
|
|
287
290
|
}
|
|
288
291
|
function sam$it_unibo_tuprolog_parser_TextChunkSource$0(function_0) {
|
|
289
|
-
this.
|
|
292
|
+
this.z44_1 = function_0;
|
|
290
293
|
}
|
|
291
|
-
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).
|
|
292
|
-
return this.
|
|
294
|
+
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).c3m = function () {
|
|
295
|
+
return this.z44_1();
|
|
293
296
|
};
|
|
294
|
-
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).
|
|
295
|
-
return this.
|
|
297
|
+
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).t2 = function () {
|
|
298
|
+
return this.z44_1;
|
|
296
299
|
};
|
|
297
300
|
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).equals = function (other) {
|
|
298
301
|
var tmp;
|
|
299
302
|
if (!(other == null) ? isInterface(other, TextChunkSource) : false) {
|
|
300
303
|
var tmp_0;
|
|
301
304
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
302
|
-
tmp_0 = equals(this.
|
|
305
|
+
tmp_0 = equals(this.t2(), other.t2());
|
|
303
306
|
} else {
|
|
304
307
|
tmp_0 = false;
|
|
305
308
|
}
|
|
@@ -310,7 +313,7 @@
|
|
|
310
313
|
return tmp;
|
|
311
314
|
};
|
|
312
315
|
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).hashCode = function () {
|
|
313
|
-
return hashCode(this.
|
|
316
|
+
return hashCode(this.t2());
|
|
314
317
|
};
|
|
315
318
|
function asTermChannel$lambda($this_asTermChannel) {
|
|
316
319
|
return function () {
|
|
@@ -318,110 +321,110 @@
|
|
|
318
321
|
};
|
|
319
322
|
}
|
|
320
323
|
function asTermChannel$lambda$slambda($session, $visitor, $lexedSource, resultContinuation) {
|
|
321
|
-
this
|
|
322
|
-
this
|
|
323
|
-
this
|
|
324
|
+
this.i45_1 = $session;
|
|
325
|
+
this.j45_1 = $visitor;
|
|
326
|
+
this.k45_1 = $lexedSource;
|
|
324
327
|
CoroutineImpl.call(this, resultContinuation);
|
|
325
328
|
}
|
|
326
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
327
|
-
var tmp = this.
|
|
328
|
-
tmp.
|
|
329
|
-
tmp.
|
|
330
|
-
return tmp.
|
|
329
|
+
protoOf(asTermChannel$lambda$slambda).u1q = function ($this$sequence, $completion) {
|
|
330
|
+
var tmp = this.v1q($this$sequence, $completion);
|
|
331
|
+
tmp.n8_1 = Unit_instance;
|
|
332
|
+
tmp.o8_1 = null;
|
|
333
|
+
return tmp.t8();
|
|
331
334
|
};
|
|
332
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
333
|
-
return this.
|
|
335
|
+
protoOf(asTermChannel$lambda$slambda).k9 = function (p1, $completion) {
|
|
336
|
+
return this.u1q(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
334
337
|
};
|
|
335
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
336
|
-
var suspendResult = this.
|
|
338
|
+
protoOf(asTermChannel$lambda$slambda).t8 = function () {
|
|
339
|
+
var suspendResult = this.n8_1;
|
|
337
340
|
$sm: do
|
|
338
341
|
try {
|
|
339
|
-
var tmp = this.
|
|
342
|
+
var tmp = this.l8_1;
|
|
340
343
|
switch (tmp) {
|
|
341
344
|
case 0:
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
345
|
-
this.
|
|
345
|
+
this.m8_1 = 6;
|
|
346
|
+
this.m8_1 = 5;
|
|
347
|
+
this.m45_1 = this.i45_1.u3t();
|
|
348
|
+
this.l8_1 = 1;
|
|
346
349
|
continue $sm;
|
|
347
350
|
case 1:
|
|
348
|
-
if (!!(this.
|
|
349
|
-
this.
|
|
351
|
+
if (!!(this.m45_1 == null)) {
|
|
352
|
+
this.l8_1 = 3;
|
|
350
353
|
continue $sm;
|
|
351
354
|
}
|
|
352
355
|
|
|
353
|
-
this.
|
|
354
|
-
suspendResult = this
|
|
356
|
+
this.l8_1 = 2;
|
|
357
|
+
suspendResult = this.l45_1.ne(this.m45_1.a3z_1.i3v(this.j45_1), this);
|
|
355
358
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
356
359
|
return suspendResult;
|
|
357
360
|
}
|
|
358
361
|
|
|
359
362
|
continue $sm;
|
|
360
363
|
case 2:
|
|
361
|
-
this.
|
|
362
|
-
this.
|
|
364
|
+
this.m45_1 = this.i45_1.u3t();
|
|
365
|
+
this.l8_1 = 1;
|
|
363
366
|
continue $sm;
|
|
364
367
|
case 3:
|
|
365
|
-
this.
|
|
366
|
-
this.
|
|
368
|
+
this.m8_1 = 6;
|
|
369
|
+
this.l8_1 = 4;
|
|
367
370
|
continue $sm;
|
|
368
371
|
case 4:
|
|
369
|
-
this.
|
|
372
|
+
this.m8_1 = 6;
|
|
370
373
|
return Unit_instance;
|
|
371
374
|
case 5:
|
|
372
|
-
this.
|
|
373
|
-
var tmp_0 = this.
|
|
375
|
+
this.m8_1 = 6;
|
|
376
|
+
var tmp_0 = this.o8_1;
|
|
374
377
|
if (tmp_0 instanceof PrologSyntaxException) {
|
|
375
|
-
var e = this.
|
|
376
|
-
var it = this
|
|
377
|
-
var tmp0_elvis_lhs = it.
|
|
378
|
-
var input = tmp0_elvis_lhs == null ? it.
|
|
378
|
+
var e = this.o8_1;
|
|
379
|
+
var it = this.k45_1.r3q();
|
|
380
|
+
var tmp0_elvis_lhs = it.x15();
|
|
381
|
+
var input = tmp0_elvis_lhs == null ? it.y3o() : tmp0_elvis_lhs;
|
|
379
382
|
throw toParseException(e, input);
|
|
380
383
|
} else {
|
|
381
|
-
throw this.
|
|
384
|
+
throw this.o8_1;
|
|
382
385
|
}
|
|
383
386
|
|
|
384
387
|
case 6:
|
|
385
|
-
throw this.
|
|
388
|
+
throw this.o8_1;
|
|
386
389
|
}
|
|
387
390
|
} catch ($p) {
|
|
388
391
|
var e_0 = $p;
|
|
389
|
-
if (this.
|
|
392
|
+
if (this.m8_1 === 6) {
|
|
390
393
|
throw e_0;
|
|
391
394
|
} else {
|
|
392
|
-
this.
|
|
393
|
-
this.
|
|
395
|
+
this.l8_1 = this.m8_1;
|
|
396
|
+
this.o8_1 = e_0;
|
|
394
397
|
}
|
|
395
398
|
}
|
|
396
399
|
while (true);
|
|
397
400
|
};
|
|
398
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
399
|
-
var i = new asTermChannel$lambda$slambda(this
|
|
400
|
-
i
|
|
401
|
+
protoOf(asTermChannel$lambda$slambda).v1q = function ($this$sequence, completion) {
|
|
402
|
+
var i = new asTermChannel$lambda$slambda(this.i45_1, this.j45_1, this.k45_1, completion);
|
|
403
|
+
i.l45_1 = $this$sequence;
|
|
401
404
|
return i;
|
|
402
405
|
};
|
|
403
406
|
function asTermChannel$lambda$slambda_0($session, $visitor, $lexedSource, resultContinuation) {
|
|
404
407
|
var i = new asTermChannel$lambda$slambda($session, $visitor, $lexedSource, resultContinuation);
|
|
405
408
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
406
|
-
return i.
|
|
409
|
+
return i.u1q($this$sequence, $completion);
|
|
407
410
|
}, 1);
|
|
408
411
|
}
|
|
409
412
|
function asTermChannel$lambda_0($operators) {
|
|
410
413
|
return function (parser, lexedSource) {
|
|
411
|
-
var session = parser.
|
|
414
|
+
var session = parser.y3t(lexedSource, toOperatorTable($operators));
|
|
412
415
|
var visitor = new PrologTermParserVisitor(Companion_instance_0.empty());
|
|
413
416
|
return sequence(asTermChannel$lambda$slambda_0(session, visitor, lexedSource, null));
|
|
414
417
|
};
|
|
415
418
|
}
|
|
416
419
|
function asTermChannel$lambda_1($termIterator) {
|
|
417
420
|
return function () {
|
|
418
|
-
return $termIterator.
|
|
421
|
+
return $termIterator.q() ? $termIterator.r() : null;
|
|
419
422
|
};
|
|
420
423
|
}
|
|
421
424
|
function Iterator$hasNext$ref(p0) {
|
|
422
425
|
return constructCallableReference(function () {
|
|
423
|
-
return p0.
|
|
424
|
-
}, 0, 0,
|
|
426
|
+
return p0.q();
|
|
427
|
+
}, 0, 0, 113, 'hasNext', [p0]);
|
|
425
428
|
}
|
|
426
429
|
var properties_initialized_ChannelUtils_kt_an3chc;
|
|
427
430
|
function _init_properties_ChannelUtils_kt__fqios2() {
|
|
@@ -434,22 +437,26 @@
|
|
|
434
437
|
function IOLib() {
|
|
435
438
|
IOLib_instance = this;
|
|
436
439
|
AbstractLibrary.call(this);
|
|
440
|
+
this.o45_1 = "`library('prolog.io')`\n\nProvides the ISO Prolog stream-based input/output predicates. Streams are opened on files or URLs via `open/3,4` and are denoted by aliases (e.g. `user_input`, `user_output`) or by `$stream(Direction, Id)` terms; `close/1`, `current_input/1`, `current_output/1`, `set_input/1`, `set_output/1`, `stream_property/2`, `at_end_of_stream/0,1` and `flush_output/1` manage them. Only text streams are supported, and writing is only possible to local files on the JVM.\n\nCharacter-level I/O is offered by `get_char/1,2`, `get_code/1,2`, `peek_char/1,2`, `peek_code/1,2`, `put_char/1,2`, `put_code/1,2` and `nl/1`, while term-level I/O is offered by `read/1,2`, `read_term/2,3`, `write/2`, `writeq/1,2`, `write_canonical/1,2` and `write_term/2,3`; the variants without a stream argument use the current input or output stream. The tuProlog-specific `consult/1` adds the clauses of a theory loaded from a file or URL to the knowledge base, whereas `set_theory/1` replaces the knowledge base with a theory given as source text.\n\nThe byte-oriented predicates (`get_byte/1,2`, `peek_byte/1,2`, `put_byte/1,2`), the character conversion predicates (`char_conversion/2`, `current_char_conversion/2`) and `close/2` are registered for ISO conformance, but are not supported: calling them always raises a system error.";
|
|
437
441
|
}
|
|
438
|
-
protoOf(IOLib).
|
|
442
|
+
protoOf(IOLib).n1x = function () {
|
|
443
|
+
return this.o45_1;
|
|
444
|
+
};
|
|
445
|
+
protoOf(IOLib).w2i = function () {
|
|
439
446
|
return 'prolog.io';
|
|
440
447
|
};
|
|
441
|
-
protoOf(IOLib).
|
|
448
|
+
protoOf(IOLib).r2i = function () {
|
|
442
449
|
var tmp = Companion_getInstance();
|
|
443
450
|
// Inline function 'kotlin.collections.map' call
|
|
444
451
|
var this_0 = listOf([AtEndOfStream0_getInstance(), AtEndOfStream1_getInstance(), CharConversion_getInstance(), Close1_getInstance(), Close2_getInstance(), Consult_getInstance(), CurrentCharConversion_getInstance(), CurrentInput_getInstance(), CurrentOutput_getInstance(), FlushOutput_getInstance(), GetByte1_getInstance(), GetByte2_getInstance(), GetChar1_getInstance(), GetChar2_getInstance(), GetCode1_getInstance(), GetCode2_getInstance(), Nl1_getInstance(), Open3_getInstance(), Open4_getInstance(), PeekByte1_getInstance(), PeekByte2_getInstance(), PeekChar1_getInstance(), PeekChar2_getInstance(), PeekCode1_getInstance(), PeekCode2_getInstance(), PutByte1_getInstance(), PutByte2_getInstance(), PutChar1_getInstance(), PutChar2_getInstance(), PutCode1_getInstance(), PutCode2_getInstance(), Read1_getInstance(), Read2_getInstance(), ReadTerm2_getInstance(), ReadTerm3_getInstance(), SetInput_getInstance(), SetOutput_getInstance(), SetTheory_getInstance(), StreamProperty_getInstance(), Write2_getInstance(), WriteCanonical1_getInstance(), WriteCanonical2_getInstance(), WriteEq1_getInstance(), WriteEq2_getInstance(), WriteTerm2_getInstance(), WriteTerm3_getInstance()]);
|
|
445
452
|
// Inline function 'kotlin.collections.mapTo' call
|
|
446
453
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
447
|
-
var _iterator__ex2g4s = this_0.
|
|
448
|
-
while (_iterator__ex2g4s.
|
|
449
|
-
var item = _iterator__ex2g4s.
|
|
454
|
+
var _iterator__ex2g4s = this_0.n();
|
|
455
|
+
while (_iterator__ex2g4s.q()) {
|
|
456
|
+
var item = _iterator__ex2g4s.r();
|
|
450
457
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.descriptionPair' call
|
|
451
|
-
var tmp$ret$2 = to(item.signature, item.
|
|
452
|
-
destination.
|
|
458
|
+
var tmp$ret$2 = to(item.signature, item.l1x());
|
|
459
|
+
destination.l(tmp$ret$2);
|
|
453
460
|
}
|
|
454
461
|
return tmp.iterableToMapEnsuringNoDuplicates(destination);
|
|
455
462
|
};
|
|
@@ -462,12 +469,12 @@
|
|
|
462
469
|
function IOMode$Companion$atomValues$lambda(it) {
|
|
463
470
|
// Inline function 'kotlin.text.lowercase' call
|
|
464
471
|
// Inline function 'kotlin.js.asDynamic' call
|
|
465
|
-
return it.
|
|
472
|
+
return it.o2_1.toLowerCase();
|
|
466
473
|
}
|
|
467
474
|
function Atom$Companion$of$ref(p0) {
|
|
468
475
|
return constructCallableReference(function (p0_0) {
|
|
469
476
|
return p0.of(p0_0);
|
|
470
|
-
}, 1, 0,
|
|
477
|
+
}, 1, 0, 114, 'of', [p0]);
|
|
471
478
|
}
|
|
472
479
|
var static_init_called;
|
|
473
480
|
function static_init() {
|
|
@@ -490,7 +497,7 @@
|
|
|
490
497
|
var tmp = this;
|
|
491
498
|
var tmp_0 = asSequence(get_entries());
|
|
492
499
|
var tmp_1 = map(tmp_0, IOMode$Companion$atomValues$lambda);
|
|
493
|
-
tmp.
|
|
500
|
+
tmp.p45_1 = toSet(map(tmp_1, Atom$Companion$of$ref(Companion_getInstance_0())));
|
|
494
501
|
}
|
|
495
502
|
var Companion_instance_14;
|
|
496
503
|
function Companion_getInstance_8() {
|
|
@@ -539,24 +546,24 @@
|
|
|
539
546
|
}
|
|
540
547
|
function LocalFileSystem() {
|
|
541
548
|
LocalFileSystem_instance = this;
|
|
542
|
-
this.
|
|
549
|
+
this.q45_1 = get_platformFileSystem();
|
|
543
550
|
}
|
|
544
|
-
protoOf(LocalFileSystem).
|
|
545
|
-
return this.
|
|
551
|
+
protoOf(LocalFileSystem).y42 = function (path) {
|
|
552
|
+
return this.q45_1.y42(path);
|
|
546
553
|
};
|
|
547
|
-
protoOf(LocalFileSystem).
|
|
548
|
-
return this.
|
|
554
|
+
protoOf(LocalFileSystem).z42 = function (path, mustCreate) {
|
|
555
|
+
return this.q45_1.z42(path, mustCreate);
|
|
549
556
|
};
|
|
550
|
-
protoOf(LocalFileSystem).
|
|
557
|
+
protoOf(LocalFileSystem).r45 = function (path, mustCreate, $super) {
|
|
551
558
|
mustCreate = mustCreate === VOID ? false : mustCreate;
|
|
552
|
-
return $super === VOID ? this.
|
|
559
|
+
return $super === VOID ? this.z42(path, mustCreate) : $super.z42.call(this, path, mustCreate);
|
|
553
560
|
};
|
|
554
|
-
protoOf(LocalFileSystem).
|
|
555
|
-
return this.
|
|
561
|
+
protoOf(LocalFileSystem).a43 = function (path, mustExist) {
|
|
562
|
+
return this.q45_1.a43(path, mustExist);
|
|
556
563
|
};
|
|
557
|
-
protoOf(LocalFileSystem).
|
|
564
|
+
protoOf(LocalFileSystem).s45 = function (path, mustExist, $super) {
|
|
558
565
|
mustExist = mustExist === VOID ? false : mustExist;
|
|
559
|
-
return $super === VOID ? this.
|
|
566
|
+
return $super === VOID ? this.a43(path, mustExist) : $super.a43.call(this, path, mustExist);
|
|
560
567
|
};
|
|
561
568
|
var LocalFileSystem_instance;
|
|
562
569
|
function LocalFileSystem_getInstance() {
|
|
@@ -585,7 +592,7 @@
|
|
|
585
592
|
}
|
|
586
593
|
function Companion_0() {
|
|
587
594
|
}
|
|
588
|
-
protoOf(Companion_0).
|
|
595
|
+
protoOf(Companion_0).t45 = function (_this__u8e3s4) {
|
|
589
596
|
var tmp;
|
|
590
597
|
if (_this__u8e3s4 < 0) {
|
|
591
598
|
throw IllegalArgumentException_init_$Create$('Invalid port: ' + _this__u8e3s4);
|
|
@@ -597,7 +604,7 @@
|
|
|
597
604
|
protoOf(Companion_0).file = function (path) {
|
|
598
605
|
return fileUrl(path);
|
|
599
606
|
};
|
|
600
|
-
protoOf(Companion_0).
|
|
607
|
+
protoOf(Companion_0).u45 = function (protocol, host, port, path, query) {
|
|
601
608
|
return remoteUrl(protocol, host, port, path, query);
|
|
602
609
|
};
|
|
603
610
|
protoOf(Companion_0).remote = function (protocol, host, port, path, query, $super) {
|
|
@@ -605,27 +612,27 @@
|
|
|
605
612
|
port = port === VOID ? null : port;
|
|
606
613
|
path = path === VOID ? '' : path;
|
|
607
614
|
query = query === VOID ? null : query;
|
|
608
|
-
return $super === VOID ? this.
|
|
615
|
+
return $super === VOID ? this.u45(protocol, host, port, path, query) : $super.u45.call(this, protocol, host, port, path, query);
|
|
609
616
|
};
|
|
610
|
-
protoOf(Companion_0).
|
|
611
|
-
return this.
|
|
617
|
+
protoOf(Companion_0).v45 = function (host, port, path, query) {
|
|
618
|
+
return this.u45('http', host, port, path, query);
|
|
612
619
|
};
|
|
613
620
|
protoOf(Companion_0).http = function (host, port, path, query, $super) {
|
|
614
621
|
host = host === VOID ? '' : host;
|
|
615
622
|
port = port === VOID ? null : port;
|
|
616
623
|
path = path === VOID ? '' : path;
|
|
617
624
|
query = query === VOID ? null : query;
|
|
618
|
-
return $super === VOID ? this.
|
|
625
|
+
return $super === VOID ? this.v45(host, port, path, query) : $super.v45.call(this, host, port, path, query);
|
|
619
626
|
};
|
|
620
|
-
protoOf(Companion_0).
|
|
621
|
-
return this.
|
|
627
|
+
protoOf(Companion_0).w45 = function (host, port, path, query) {
|
|
628
|
+
return this.u45('https', host, port, path, query);
|
|
622
629
|
};
|
|
623
630
|
protoOf(Companion_0).https = function (host, port, path, query, $super) {
|
|
624
631
|
host = host === VOID ? '' : host;
|
|
625
632
|
port = port === VOID ? null : port;
|
|
626
633
|
path = path === VOID ? '' : path;
|
|
627
634
|
query = query === VOID ? null : query;
|
|
628
|
-
return $super === VOID ? this.
|
|
635
|
+
return $super === VOID ? this.w45(host, port, path, query) : $super.w45.call(this, host, port, path, query);
|
|
629
636
|
};
|
|
630
637
|
protoOf(Companion_0).of = function (string) {
|
|
631
638
|
var tmp;
|
|
@@ -655,8 +662,8 @@
|
|
|
655
662
|
}
|
|
656
663
|
return tmp;
|
|
657
664
|
};
|
|
658
|
-
protoOf(Companion_0).
|
|
659
|
-
var tmp = port == null ? null : this.
|
|
665
|
+
protoOf(Companion_0).x45 = function (protocol, host, port, path, query) {
|
|
666
|
+
var tmp = port == null ? null : this.t45(port);
|
|
660
667
|
var tmp_0 = str(this, tmp, Url$Companion$toString$lambda);
|
|
661
668
|
return protocol + '://' + host + tmp_0 + path + str(this, query, Url$Companion$toString$lambda_0);
|
|
662
669
|
};
|
|
@@ -668,52 +675,52 @@
|
|
|
668
675
|
}
|
|
669
676
|
function SinkOutputChannel(sink) {
|
|
670
677
|
AbstractOutputChannel.call(this);
|
|
671
|
-
this.
|
|
678
|
+
this.h46_1 = sink;
|
|
672
679
|
}
|
|
673
|
-
protoOf(SinkOutputChannel).
|
|
674
|
-
this.
|
|
680
|
+
protoOf(SinkOutputChannel).i46 = function (value) {
|
|
681
|
+
this.h46_1.d42(value);
|
|
675
682
|
};
|
|
676
|
-
protoOf(SinkOutputChannel).
|
|
677
|
-
return this.
|
|
683
|
+
protoOf(SinkOutputChannel).o23 = function (value) {
|
|
684
|
+
return this.i46(typeof value === 'string' ? value : THROW_CCE());
|
|
678
685
|
};
|
|
679
|
-
protoOf(SinkOutputChannel).
|
|
680
|
-
this.
|
|
686
|
+
protoOf(SinkOutputChannel).p23 = function () {
|
|
687
|
+
this.h46_1.i8();
|
|
681
688
|
};
|
|
682
|
-
protoOf(SinkOutputChannel).
|
|
683
|
-
this.
|
|
684
|
-
protoOf(AbstractOutputChannel).
|
|
689
|
+
protoOf(SinkOutputChannel).w22 = function () {
|
|
690
|
+
this.h46_1.w22();
|
|
691
|
+
protoOf(AbstractOutputChannel).w22.call(this);
|
|
685
692
|
};
|
|
686
693
|
protoOf(SinkOutputChannel).close = function () {
|
|
687
|
-
return this.
|
|
694
|
+
return this.w22();
|
|
688
695
|
};
|
|
689
696
|
function SourceInputChannel(source) {
|
|
690
697
|
AbstractInputChannel.call(this);
|
|
691
|
-
this.
|
|
692
|
-
this.
|
|
698
|
+
this.o46_1 = source;
|
|
699
|
+
this.p46_1 = ArrayDeque_init_$Create$();
|
|
693
700
|
}
|
|
694
|
-
protoOf(SourceInputChannel).
|
|
695
|
-
if (this.
|
|
696
|
-
if (this.
|
|
701
|
+
protoOf(SourceInputChannel).h23 = function () {
|
|
702
|
+
if (this.p46_1.i()) {
|
|
703
|
+
if (this.o46_1.l42())
|
|
697
704
|
return null;
|
|
698
|
-
var codePoint = this.
|
|
705
|
+
var codePoint = this.o46_1.s43();
|
|
699
706
|
// Inline function 'kotlin.code' call
|
|
700
707
|
var this_0 = _Char___init__impl__6a9atx(65535);
|
|
701
708
|
if (codePoint > Char__toInt_impl_vasixd(this_0)) {
|
|
702
709
|
var offset = codePoint - 65536 | 0;
|
|
703
|
-
this.
|
|
704
|
-
this.
|
|
710
|
+
this.p46_1.od(new Char(numberToChar((offset >> 10) + 55296 | 0)));
|
|
711
|
+
this.p46_1.od(new Char(numberToChar((offset & 1023) + 56320 | 0)));
|
|
705
712
|
} else {
|
|
706
|
-
this.
|
|
713
|
+
this.p46_1.od(new Char(numberToChar(codePoint)));
|
|
707
714
|
}
|
|
708
715
|
}
|
|
709
|
-
return toString_0(this.
|
|
716
|
+
return toString_0(this.p46_1.pd().r1_1);
|
|
710
717
|
};
|
|
711
|
-
protoOf(SourceInputChannel).
|
|
712
|
-
this.
|
|
713
|
-
protoOf(AbstractInputChannel).
|
|
718
|
+
protoOf(SourceInputChannel).w22 = function () {
|
|
719
|
+
this.o46_1.w22();
|
|
720
|
+
protoOf(AbstractInputChannel).w22.call(this);
|
|
714
721
|
};
|
|
715
722
|
protoOf(SourceInputChannel).close = function () {
|
|
716
|
-
return this.
|
|
723
|
+
return this.w22();
|
|
717
724
|
};
|
|
718
725
|
function IOException_init_$Init$(message, $this) {
|
|
719
726
|
TuPrologException_init_$Init$(message, $this);
|
|
@@ -735,7 +742,7 @@
|
|
|
735
742
|
captureStack(tmp, IOException_init_$Create$_0);
|
|
736
743
|
return tmp;
|
|
737
744
|
}
|
|
738
|
-
protoOf(IOException_0).
|
|
745
|
+
protoOf(IOException_0).q46 = function (context) {
|
|
739
746
|
return Companion_instance_2.forUncaughtKtException(context, this);
|
|
740
747
|
};
|
|
741
748
|
function IOException_0() {
|
|
@@ -761,8 +768,8 @@
|
|
|
761
768
|
captureStack(tmp, InvalidUrlException_init_$Create$_0);
|
|
762
769
|
return tmp;
|
|
763
770
|
}
|
|
764
|
-
protoOf(InvalidUrlException).
|
|
765
|
-
return Companion_instance_3.
|
|
771
|
+
protoOf(InvalidUrlException).r46 = function (context, signature, culprit, index) {
|
|
772
|
+
return Companion_instance_3.l2b(context, signature, Expected_URL_getInstance(), culprit, index);
|
|
766
773
|
};
|
|
767
774
|
function InvalidUrlException() {
|
|
768
775
|
captureStack(this, InvalidUrlException);
|
|
@@ -770,14 +777,18 @@
|
|
|
770
777
|
function AtEndOfStream0() {
|
|
771
778
|
AtEndOfStream0_instance = this;
|
|
772
779
|
Predicative.call(this, 'at_end_of_stream');
|
|
780
|
+
this.t46_1 = '`at_end_of_stream`\n\nSucceeds iff the current input stream (standard input, unless changed via `set_input/1`) is closed or has no more characters to read, and fails otherwise. It is deterministic and raises no errors.\n\n**Examples**\n\n```prolog\n% with `foo.` still to be read from standard input\n?- at_end_of_stream.\nno.\n\n% once standard input has been exhausted\n?- at_end_of_stream.\nyes.\n```';
|
|
773
781
|
}
|
|
774
|
-
protoOf(AtEndOfStream0).
|
|
782
|
+
protoOf(AtEndOfStream0).n1x = function () {
|
|
783
|
+
return this.t46_1;
|
|
784
|
+
};
|
|
785
|
+
protoOf(AtEndOfStream0).u46 = function (_this__u8e3s4) {
|
|
775
786
|
// Inline function 'kotlin.let' call
|
|
776
|
-
var it = IOPrimitiveUtils_getInstance().
|
|
777
|
-
return it.
|
|
787
|
+
var it = IOPrimitiveUtils_getInstance().m47(_this__u8e3s4);
|
|
788
|
+
return it.i22() || it.rr();
|
|
778
789
|
};
|
|
779
|
-
protoOf(AtEndOfStream0).
|
|
780
|
-
return this.
|
|
790
|
+
protoOf(AtEndOfStream0).g2l = function (_this__u8e3s4) {
|
|
791
|
+
return this.u46(_this__u8e3s4);
|
|
781
792
|
};
|
|
782
793
|
var AtEndOfStream0_instance;
|
|
783
794
|
function AtEndOfStream0_getInstance() {
|
|
@@ -788,14 +799,18 @@
|
|
|
788
799
|
function AtEndOfStream1() {
|
|
789
800
|
AtEndOfStream1_instance = this;
|
|
790
801
|
Predicative_0.call(this, 'at_end_of_stream');
|
|
802
|
+
this.o47_1 = '`at_end_of_stream(+Stream)`\n\nSucceeds iff the input stream `Stream` is closed or has no more characters to read, and fails otherwise. `Stream` must be an alias (e.g. `user_input`) or a `$stream(in, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an output stream a domain error (`stream_type`), where ISO prescribes a permission error.\n\n**Examples**\n\n```prolog\n?- at_end_of_stream(user_output).\nthrows error(domain_error(stream_type, user_output), _).\n\n?- at_end_of_stream(S).\nthrows error(instantiation_error, _).\n\n?- at_end_of_stream(no_such_stream).\nthrows error(existence_error(source_sink, no_such_stream), _).\n```';
|
|
791
803
|
}
|
|
792
|
-
protoOf(AtEndOfStream1).
|
|
804
|
+
protoOf(AtEndOfStream1).n1x = function () {
|
|
805
|
+
return this.o47_1;
|
|
806
|
+
};
|
|
807
|
+
protoOf(AtEndOfStream1).p47 = function (_this__u8e3s4, first) {
|
|
793
808
|
// Inline function 'kotlin.let' call
|
|
794
|
-
var it = IOPrimitiveUtils_getInstance().
|
|
795
|
-
return it.
|
|
809
|
+
var it = IOPrimitiveUtils_getInstance().q47(_this__u8e3s4, 0);
|
|
810
|
+
return it.i22() || it.rr();
|
|
796
811
|
};
|
|
797
|
-
protoOf(AtEndOfStream1).
|
|
798
|
-
return this.
|
|
812
|
+
protoOf(AtEndOfStream1).u2n = function (_this__u8e3s4, first) {
|
|
813
|
+
return this.p47(_this__u8e3s4, first);
|
|
799
814
|
};
|
|
800
815
|
var AtEndOfStream1_instance;
|
|
801
816
|
function AtEndOfStream1_getInstance() {
|
|
@@ -806,12 +821,16 @@
|
|
|
806
821
|
function CharConversion() {
|
|
807
822
|
CharConversion_instance = this;
|
|
808
823
|
NonBacktrackable.call(this, 'char_conversion');
|
|
824
|
+
this.s47_1 = '`char_conversion(+InChar, +OutChar)`\n\nRegistered for ISO conformance only: the current implementation does not support a character conversion table, so every call raises a system error regardless of its arguments.\n\n**Examples**\n\n```prolog\n?- char_conversion(a, b).\nthrows error(system_error, _).\n```';
|
|
809
825
|
}
|
|
810
|
-
protoOf(CharConversion).
|
|
811
|
-
return
|
|
826
|
+
protoOf(CharConversion).n1x = function () {
|
|
827
|
+
return this.s47_1;
|
|
812
828
|
};
|
|
813
|
-
protoOf(CharConversion).
|
|
814
|
-
return
|
|
829
|
+
protoOf(CharConversion).w2u = function (_this__u8e3s4, first, second) {
|
|
830
|
+
return Companion_getInstance_1().r2l(_this__u8e3s4);
|
|
831
|
+
};
|
|
832
|
+
protoOf(CharConversion).o2k = function (_this__u8e3s4, first, second) {
|
|
833
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
815
834
|
};
|
|
816
835
|
var CharConversion_instance;
|
|
817
836
|
function CharConversion_getInstance() {
|
|
@@ -821,24 +840,28 @@
|
|
|
821
840
|
}
|
|
822
841
|
function Close1$computeOne$lambda($this_computeOne, $channel) {
|
|
823
842
|
return function ($this$replySuccess) {
|
|
824
|
-
var tmp = $this_computeOne.context.
|
|
825
|
-
$this$replySuccess.
|
|
843
|
+
var tmp = $this_computeOne.context.c1y();
|
|
844
|
+
$this$replySuccess.b2r(tmp.aliasesOf(isInterface($channel, InputChannel) ? $channel : THROW_CCE()));
|
|
826
845
|
return Unit_instance;
|
|
827
846
|
};
|
|
828
847
|
}
|
|
829
848
|
function Close1$computeOne$lambda_0($this_computeOne, $channel) {
|
|
830
849
|
return function ($this$replySuccess) {
|
|
831
|
-
var tmp = $this_computeOne.context.
|
|
832
|
-
$this$replySuccess.
|
|
850
|
+
var tmp = $this_computeOne.context.d1y();
|
|
851
|
+
$this$replySuccess.e2r(tmp.aliasesOf(isInterface($channel, OutputChannel) ? $channel : THROW_CCE()));
|
|
833
852
|
return Unit_instance;
|
|
834
853
|
};
|
|
835
854
|
}
|
|
836
855
|
function Close1() {
|
|
837
856
|
Close1_instance = this;
|
|
838
857
|
NonBacktrackable_0.call(this, 'close');
|
|
858
|
+
this.u47_1 = '`close(+Stream)`\n\nCloses the stream `Stream`, given as an alias or a `$stream(Direction, Id)` term, and unregisters every alias it was reachable through, succeeding deterministically. It raises an instantiation error if `Stream` is unbound, an existence error if it does not denote an open stream, and a domain error (`stream_or_alias`) if it is a compound term other than a stream term. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- close(S).\nthrows error(instantiation_error, _).\n\n?- close(no_such_stream).\nthrows error(existence_error(source_sink, no_such_stream), _).\n\n?- close(foo(bar)).\nthrows error(domain_error(stream_or_alias, foo(bar)), _).\n```';
|
|
839
859
|
}
|
|
840
|
-
protoOf(Close1).
|
|
841
|
-
|
|
860
|
+
protoOf(Close1).n1x = function () {
|
|
861
|
+
return this.u47_1;
|
|
862
|
+
};
|
|
863
|
+
protoOf(Close1).f2u = function (_this__u8e3s4, first) {
|
|
864
|
+
var channel = IOPrimitiveUtils_getInstance().v47(_this__u8e3s4, 0);
|
|
842
865
|
try {
|
|
843
866
|
channel.close();
|
|
844
867
|
var tmp;
|
|
@@ -861,8 +884,8 @@
|
|
|
861
884
|
}
|
|
862
885
|
}
|
|
863
886
|
};
|
|
864
|
-
protoOf(Close1).
|
|
865
|
-
return this.
|
|
887
|
+
protoOf(Close1).x2n = function (_this__u8e3s4, first) {
|
|
888
|
+
return this.f2u(_this__u8e3s4, first);
|
|
866
889
|
};
|
|
867
890
|
var Close1_instance;
|
|
868
891
|
function Close1_getInstance() {
|
|
@@ -873,12 +896,16 @@
|
|
|
873
896
|
function Close2() {
|
|
874
897
|
Close2_instance = this;
|
|
875
898
|
NonBacktrackable.call(this, 'close');
|
|
899
|
+
this.x47_1 = '`close(+Stream, +Options)`\n\nRegistered for ISO conformance only: the current implementation does not support close options such as `force(true)`, so every call raises a system error regardless of its arguments; use `close/1` instead.\n\n**Examples**\n\n```prolog\n?- close(user_output, [force(true)]).\nthrows error(system_error, _).\n```';
|
|
876
900
|
}
|
|
877
|
-
protoOf(Close2).
|
|
878
|
-
return
|
|
901
|
+
protoOf(Close2).n1x = function () {
|
|
902
|
+
return this.x47_1;
|
|
903
|
+
};
|
|
904
|
+
protoOf(Close2).w2u = function (_this__u8e3s4, first, second) {
|
|
905
|
+
return Companion_getInstance_1().r2l(_this__u8e3s4);
|
|
879
906
|
};
|
|
880
|
-
protoOf(Close2).
|
|
881
|
-
return this.
|
|
907
|
+
protoOf(Close2).o2k = function (_this__u8e3s4, first, second) {
|
|
908
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
882
909
|
};
|
|
883
910
|
var Close2_instance;
|
|
884
911
|
function Close2_getInstance() {
|
|
@@ -889,31 +916,35 @@
|
|
|
889
916
|
function Consult() {
|
|
890
917
|
Consult_instance = this;
|
|
891
918
|
NonBacktrackable_0.call(this, 'consult');
|
|
919
|
+
this.z47_1 = "`consult(+Source)`\n\nLoads the Prolog theory found at `Source`, an atom holding either a URL (e.g. `'https://example.com/theory.pl'`) or a plain absolute or relative file path, parsing it with the current operators. This tuProlog-specific predicate adds the loaded clauses to the knowledge base without removing any existing clause (so consulting the same source twice duplicates its clauses), with clauses of predicates declared dynamic going to the dynamic knowledge base and all others to the static one; operators and flags set by the theory's directives take effect as well. It raises an instantiation error if `Source` is unbound, a type error (`atom`) if it is not an atom, a type error (`url`) if it is not a valid URL or path, a system error if the resource cannot be read, and a syntax error if its content is not a well-formed theory.\n\n**Examples**\n\n```prolog\n% with /path/to/family.pl containing `parent(tom, bob).`\n?- consult('/path/to/family.pl'), parent(tom, X).\nX = bob.\n\n?- consult(F).\nthrows error(instantiation_error, _).\n\n?- consult(42).\nthrows error(type_error(atom, 42), _).\n\n?- consult('/no/such/theory.pl').\nthrows error(system_error, _).\n```";
|
|
892
920
|
}
|
|
893
|
-
protoOf(Consult).
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
921
|
+
protoOf(Consult).n1x = function () {
|
|
922
|
+
return this.z47_1;
|
|
923
|
+
};
|
|
924
|
+
protoOf(Consult).f2u = function (_this__u8e3s4, first) {
|
|
925
|
+
Companion_getInstance_1().p2l(_this__u8e3s4, 0);
|
|
926
|
+
Companion_getInstance_1().y2l(_this__u8e3s4, 0);
|
|
927
|
+
var urlString = (isInterface(first, Atom) ? first : THROW_CCE()).i2();
|
|
897
928
|
try {
|
|
898
929
|
var url = Companion_instance_15.of(urlString);
|
|
899
930
|
var text = url.readAsText();
|
|
900
|
-
return SetTheory_getInstance().
|
|
931
|
+
return SetTheory_getInstance().c48(_this__u8e3s4, text);
|
|
901
932
|
} catch ($p) {
|
|
902
933
|
if ($p instanceof InvalidUrlException) {
|
|
903
934
|
var e = $p;
|
|
904
|
-
throw e.
|
|
935
|
+
throw e.r46(_this__u8e3s4.context, _this__u8e3s4.signature, first, 0);
|
|
905
936
|
} else {
|
|
906
937
|
if ($p instanceof IOException_0) {
|
|
907
938
|
var e_0 = $p;
|
|
908
|
-
throw e_0.
|
|
939
|
+
throw e_0.q46(_this__u8e3s4.context);
|
|
909
940
|
} else {
|
|
910
941
|
throw $p;
|
|
911
942
|
}
|
|
912
943
|
}
|
|
913
944
|
}
|
|
914
945
|
};
|
|
915
|
-
protoOf(Consult).
|
|
916
|
-
return this.
|
|
946
|
+
protoOf(Consult).x2n = function (_this__u8e3s4, first) {
|
|
947
|
+
return this.f2u(_this__u8e3s4, first);
|
|
917
948
|
};
|
|
918
949
|
var Consult_instance;
|
|
919
950
|
function Consult_getInstance() {
|
|
@@ -924,12 +955,16 @@
|
|
|
924
955
|
function CurrentCharConversion() {
|
|
925
956
|
CurrentCharConversion_instance = this;
|
|
926
957
|
NonBacktrackable.call(this, 'current_char_conversion');
|
|
958
|
+
this.e48_1 = '`current_char_conversion(?InChar, ?OutChar)`\n\nRegistered for ISO conformance only: since character conversion is not supported (see `char_conversion/2`), the current implementation raises a system error on every call regardless of its arguments.\n\n**Examples**\n\n```prolog\n?- current_char_conversion(X, Y).\nthrows error(system_error, _).\n```';
|
|
927
959
|
}
|
|
928
|
-
protoOf(CurrentCharConversion).
|
|
929
|
-
return
|
|
960
|
+
protoOf(CurrentCharConversion).n1x = function () {
|
|
961
|
+
return this.e48_1;
|
|
962
|
+
};
|
|
963
|
+
protoOf(CurrentCharConversion).w2u = function (_this__u8e3s4, first, second) {
|
|
964
|
+
return Companion_getInstance_1().r2l(_this__u8e3s4);
|
|
930
965
|
};
|
|
931
|
-
protoOf(CurrentCharConversion).
|
|
932
|
-
return this.
|
|
966
|
+
protoOf(CurrentCharConversion).o2k = function (_this__u8e3s4, first, second) {
|
|
967
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
933
968
|
};
|
|
934
969
|
var CurrentCharConversion_instance;
|
|
935
970
|
function CurrentCharConversion_getInstance() {
|
|
@@ -940,17 +975,21 @@
|
|
|
940
975
|
function CurrentInput() {
|
|
941
976
|
CurrentInput_instance = this;
|
|
942
977
|
NonBacktrackable_0.call(this, 'current_input');
|
|
978
|
+
this.g48_1 = '`current_input(?Stream)`\n\nUnifies `Stream` with the `$stream(in, Id)` term of the current input stream (standard input, unless changed via `set_input/1`); if `Stream` is already a stream term, it succeeds iff that term denotes the current input stream. It is deterministic. It raises an existence error if `Stream` is a stream term denoting no open stream, and a domain error (`stream_or_alias`) if it is bound to anything else, aliases included.\n\n**Examples**\n\n```prolog\n?- current_input(S), stream_property(S, alias(user_input)).\nyes.\n\n?- current_input(user_input).\nthrows error(domain_error(stream_or_alias, user_input), _).\n```';
|
|
943
979
|
}
|
|
944
|
-
protoOf(CurrentInput).
|
|
945
|
-
|
|
980
|
+
protoOf(CurrentInput).n1x = function () {
|
|
981
|
+
return this.g48_1;
|
|
982
|
+
};
|
|
983
|
+
protoOf(CurrentInput).f2u = function (_this__u8e3s4, first) {
|
|
984
|
+
var channel = IOPrimitiveUtils_getInstance().h48(_this__u8e3s4, 0);
|
|
946
985
|
// Inline function 'kotlin.let' call
|
|
947
|
-
var it = _this__u8e3s4.context.
|
|
948
|
-
var tmp0_elvis_lhs = it.
|
|
949
|
-
var currentChannel = tmp0_elvis_lhs == null ? it.
|
|
950
|
-
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
986
|
+
var it = _this__u8e3s4.context.c1y();
|
|
987
|
+
var tmp0_elvis_lhs = it.pr();
|
|
988
|
+
var currentChannel = tmp0_elvis_lhs == null ? it.m1y() : tmp0_elvis_lhs;
|
|
989
|
+
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().j2l(_this__u8e3s4, first, currentChannel.j22()), VOID, []) : equals(channel, currentChannel) ? _this__u8e3s4.replySuccess(VOID, VOID, []) : _this__u8e3s4.replyFail(VOID, []);
|
|
951
990
|
};
|
|
952
|
-
protoOf(CurrentInput).
|
|
953
|
-
return this.
|
|
991
|
+
protoOf(CurrentInput).x2n = function (_this__u8e3s4, first) {
|
|
992
|
+
return this.f2u(_this__u8e3s4, first);
|
|
954
993
|
};
|
|
955
994
|
var CurrentInput_instance;
|
|
956
995
|
function CurrentInput_getInstance() {
|
|
@@ -961,17 +1000,21 @@
|
|
|
961
1000
|
function CurrentOutput() {
|
|
962
1001
|
CurrentOutput_instance = this;
|
|
963
1002
|
NonBacktrackable_0.call(this, 'current_output');
|
|
1003
|
+
this.j48_1 = '`current_output(?Stream)`\n\nUnifies `Stream` with the `$stream(out, Id)` term of the current output stream (standard output, unless changed via `set_output/1`); if `Stream` is already a stream term, it succeeds iff that term denotes the current output stream. It is deterministic. It raises an existence error if `Stream` is a stream term denoting no open stream, and a domain error (`stream_or_alias`) if it is bound to anything else, aliases included.\n\n**Examples**\n\n```prolog\n?- current_output(S), stream_property(S, alias(user_output)).\nyes.\n\n?- current_output(S), write(S, hello).\n% prints: hello\nyes.\n\n?- current_output(user_output).\nthrows error(domain_error(stream_or_alias, user_output), _).\n```';
|
|
964
1004
|
}
|
|
965
|
-
protoOf(CurrentOutput).
|
|
966
|
-
|
|
1005
|
+
protoOf(CurrentOutput).n1x = function () {
|
|
1006
|
+
return this.j48_1;
|
|
1007
|
+
};
|
|
1008
|
+
protoOf(CurrentOutput).f2u = function (_this__u8e3s4, first) {
|
|
1009
|
+
var channel = IOPrimitiveUtils_getInstance().h48(_this__u8e3s4, 0);
|
|
967
1010
|
// Inline function 'kotlin.let' call
|
|
968
|
-
var it = _this__u8e3s4.context.
|
|
969
|
-
var tmp0_elvis_lhs = it.
|
|
970
|
-
var currentChannel = tmp0_elvis_lhs == null ? it.
|
|
971
|
-
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
1011
|
+
var it = _this__u8e3s4.context.d1y();
|
|
1012
|
+
var tmp0_elvis_lhs = it.pr();
|
|
1013
|
+
var currentChannel = tmp0_elvis_lhs == null ? it.n1y() : tmp0_elvis_lhs;
|
|
1014
|
+
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().j2l(_this__u8e3s4, first, currentChannel.j22()), VOID, []) : equals(channel, currentChannel) ? _this__u8e3s4.replySuccess(VOID, VOID, []) : _this__u8e3s4.replyFail(VOID, []);
|
|
972
1015
|
};
|
|
973
|
-
protoOf(CurrentOutput).
|
|
974
|
-
return this.
|
|
1016
|
+
protoOf(CurrentOutput).x2n = function (_this__u8e3s4, first) {
|
|
1017
|
+
return this.f2u(_this__u8e3s4, first);
|
|
975
1018
|
};
|
|
976
1019
|
var CurrentOutput_instance;
|
|
977
1020
|
function CurrentOutput_getInstance() {
|
|
@@ -982,9 +1025,13 @@
|
|
|
982
1025
|
function FlushOutput() {
|
|
983
1026
|
FlushOutput_instance = this;
|
|
984
1027
|
NonBacktrackable_0.call(this, 'flush_output');
|
|
1028
|
+
this.l48_1 = '`flush_output(+Stream)`\n\nForces any buffered output of the output stream `Stream` to be written to its destination, succeeding deterministically. `Stream` must be an alias (e.g. `user_output`) or a `$stream(out, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an input stream a domain error (`stream_type`), where ISO prescribes a permission error. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- write(user_output, hello), flush_output(user_output).\n% prints: hello\nyes.\n\n?- flush_output(user_input).\nthrows error(domain_error(stream_type, user_input), _).\n```';
|
|
985
1029
|
}
|
|
986
|
-
protoOf(FlushOutput).
|
|
987
|
-
|
|
1030
|
+
protoOf(FlushOutput).n1x = function () {
|
|
1031
|
+
return this.l48_1;
|
|
1032
|
+
};
|
|
1033
|
+
protoOf(FlushOutput).f2u = function (_this__u8e3s4, first) {
|
|
1034
|
+
var channel = IOPrimitiveUtils_getInstance().m48(_this__u8e3s4, 0);
|
|
988
1035
|
var tmp;
|
|
989
1036
|
try {
|
|
990
1037
|
channel.flush();
|
|
@@ -1001,8 +1048,8 @@
|
|
|
1001
1048
|
}
|
|
1002
1049
|
return tmp;
|
|
1003
1050
|
};
|
|
1004
|
-
protoOf(FlushOutput).
|
|
1005
|
-
return this.
|
|
1051
|
+
protoOf(FlushOutput).x2n = function (_this__u8e3s4, first) {
|
|
1052
|
+
return this.f2u(_this__u8e3s4, first);
|
|
1006
1053
|
};
|
|
1007
1054
|
var FlushOutput_instance;
|
|
1008
1055
|
function FlushOutput_getInstance() {
|
|
@@ -1013,12 +1060,16 @@
|
|
|
1013
1060
|
function GetByte1() {
|
|
1014
1061
|
GetByte1_instance = this;
|
|
1015
1062
|
NonBacktrackable_0.call(this, 'get_byte');
|
|
1063
|
+
this.o48_1 = '`get_byte(?Byte)`\n\nRegistered for ISO conformance only: the current implementation supports text streams exclusively, so every call raises a system error regardless of its arguments; use `get_code/1` instead.\n\n**Examples**\n\n```prolog\n?- get_byte(B).\nthrows error(system_error, _).\n```';
|
|
1016
1064
|
}
|
|
1017
|
-
protoOf(GetByte1).
|
|
1018
|
-
return
|
|
1065
|
+
protoOf(GetByte1).n1x = function () {
|
|
1066
|
+
return this.o48_1;
|
|
1067
|
+
};
|
|
1068
|
+
protoOf(GetByte1).f2u = function (_this__u8e3s4, first) {
|
|
1069
|
+
return Companion_getInstance_1().r2l(_this__u8e3s4);
|
|
1019
1070
|
};
|
|
1020
|
-
protoOf(GetByte1).
|
|
1021
|
-
return this.
|
|
1071
|
+
protoOf(GetByte1).x2n = function (_this__u8e3s4, first) {
|
|
1072
|
+
return this.f2u(_this__u8e3s4, first);
|
|
1022
1073
|
};
|
|
1023
1074
|
var GetByte1_instance;
|
|
1024
1075
|
function GetByte1_getInstance() {
|
|
@@ -1029,12 +1080,16 @@
|
|
|
1029
1080
|
function GetByte2() {
|
|
1030
1081
|
GetByte2_instance = this;
|
|
1031
1082
|
NonBacktrackable.call(this, 'get_byte');
|
|
1083
|
+
this.q48_1 = '`get_byte(+Stream, ?Byte)`\n\nRegistered for ISO conformance only: the current implementation supports text streams exclusively, so every call raises a system error regardless of its arguments; use `get_code/2` instead.\n\n**Examples**\n\n```prolog\n?- get_byte(user_input, B).\nthrows error(system_error, _).\n```';
|
|
1032
1084
|
}
|
|
1033
|
-
protoOf(GetByte2).
|
|
1034
|
-
return
|
|
1085
|
+
protoOf(GetByte2).n1x = function () {
|
|
1086
|
+
return this.q48_1;
|
|
1035
1087
|
};
|
|
1036
|
-
protoOf(GetByte2).
|
|
1037
|
-
return
|
|
1088
|
+
protoOf(GetByte2).w2u = function (_this__u8e3s4, first, second) {
|
|
1089
|
+
return Companion_getInstance_1().r2l(_this__u8e3s4);
|
|
1090
|
+
};
|
|
1091
|
+
protoOf(GetByte2).o2k = function (_this__u8e3s4, first, second) {
|
|
1092
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
1038
1093
|
};
|
|
1039
1094
|
var GetByte2_instance;
|
|
1040
1095
|
function GetByte2_getInstance() {
|
|
@@ -1045,13 +1100,17 @@
|
|
|
1045
1100
|
function GetChar1() {
|
|
1046
1101
|
GetChar1_instance = this;
|
|
1047
1102
|
NonBacktrackable_0.call(this, 'get_char');
|
|
1103
|
+
this.s48_1 = '`get_char(?Char)`\n\nReads and consumes the next character from the current input stream (standard input, unless changed via `set_input/1`) and unifies it with `Char`, which becomes `end_of_file` at the end of the stream. It is deterministic. `Char` must be unbound, `end_of_file`, or a one-character atom, otherwise a type error (`in_character`) is raised. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- get_char(ab).\nthrows error(type_error(in_character, ab), _).\n\n?- get_char(1).\nthrows error(type_error(in_character, 1), _).\n```';
|
|
1048
1104
|
}
|
|
1049
|
-
protoOf(GetChar1).
|
|
1050
|
-
|
|
1051
|
-
|
|
1105
|
+
protoOf(GetChar1).n1x = function () {
|
|
1106
|
+
return this.s48_1;
|
|
1107
|
+
};
|
|
1108
|
+
protoOf(GetChar1).f2u = function (_this__u8e3s4, first) {
|
|
1109
|
+
IOPrimitiveUtils_getInstance().t48(_this__u8e3s4, 0);
|
|
1110
|
+
return IOPrimitiveUtils_getInstance().u48(_this__u8e3s4, IOPrimitiveUtils_getInstance().m47(_this__u8e3s4), first);
|
|
1052
1111
|
};
|
|
1053
|
-
protoOf(GetChar1).
|
|
1054
|
-
return this.
|
|
1112
|
+
protoOf(GetChar1).x2n = function (_this__u8e3s4, first) {
|
|
1113
|
+
return this.f2u(_this__u8e3s4, first);
|
|
1055
1114
|
};
|
|
1056
1115
|
var GetChar1_instance;
|
|
1057
1116
|
function GetChar1_getInstance() {
|
|
@@ -1062,14 +1121,18 @@
|
|
|
1062
1121
|
function GetChar2() {
|
|
1063
1122
|
GetChar2_instance = this;
|
|
1064
1123
|
NonBacktrackable.call(this, 'get_char');
|
|
1124
|
+
this.w48_1 = '`get_char(+Stream, ?Char)`\n\nReads and consumes the next character from the input stream `Stream` and unifies it with `Char`, which becomes `end_of_file` at the end of the stream. `Stream` must be an alias (e.g. `user_input`) or a `$stream(in, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an output stream a domain error (`stream_type`), where ISO prescribes a permission error. `Char` must be unbound, `end_of_file`, or a one-character atom, otherwise a type error (`in_character`) is raised. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- get_char(user_input, ab).\nthrows error(type_error(in_character, ab), _).\n\n?- get_char(S, C).\nthrows error(instantiation_error, _).\n\n?- get_char(user_output, C).\nthrows error(domain_error(stream_type, user_output), _).\n```';
|
|
1065
1125
|
}
|
|
1066
|
-
protoOf(GetChar2).
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1126
|
+
protoOf(GetChar2).n1x = function () {
|
|
1127
|
+
return this.w48_1;
|
|
1128
|
+
};
|
|
1129
|
+
protoOf(GetChar2).w2u = function (_this__u8e3s4, first, second) {
|
|
1130
|
+
var channel = IOPrimitiveUtils_getInstance().q47(_this__u8e3s4, 0);
|
|
1131
|
+
IOPrimitiveUtils_getInstance().t48(_this__u8e3s4, 1);
|
|
1132
|
+
return IOPrimitiveUtils_getInstance().u48(_this__u8e3s4, channel, second);
|
|
1070
1133
|
};
|
|
1071
|
-
protoOf(GetChar2).
|
|
1072
|
-
return this.
|
|
1134
|
+
protoOf(GetChar2).o2k = function (_this__u8e3s4, first, second) {
|
|
1135
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
1073
1136
|
};
|
|
1074
1137
|
var GetChar2_instance;
|
|
1075
1138
|
function GetChar2_getInstance() {
|
|
@@ -1080,13 +1143,17 @@
|
|
|
1080
1143
|
function GetCode1() {
|
|
1081
1144
|
GetCode1_instance = this;
|
|
1082
1145
|
NonBacktrackable_0.call(this, 'get_code');
|
|
1146
|
+
this.y48_1 = '`get_code(?Code)`\n\nReads and consumes the next character from the current input stream (standard input, unless changed via `set_input/1`) and unifies its code with `Code`, which becomes `-1` at the end of the stream. It is deterministic. `Code` must be unbound or an integer (type error otherwise) within the character-code range or `-1` (representation error otherwise). It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- get_code(a).\nthrows error(type_error(integer, a), _).\n\n?- get_code(-2).\nthrows error(representation_error(character_code), _).\n```';
|
|
1083
1147
|
}
|
|
1084
|
-
protoOf(GetCode1).
|
|
1085
|
-
|
|
1086
|
-
return IOPrimitiveUtils_getInstance().readCodeAndReply_m7r1zg_k$(_this__u8e3s4, IOPrimitiveUtils_getInstance().get_currentInputChannel_31908p_k$(_this__u8e3s4), first);
|
|
1148
|
+
protoOf(GetCode1).n1x = function () {
|
|
1149
|
+
return this.y48_1;
|
|
1087
1150
|
};
|
|
1088
|
-
protoOf(GetCode1).
|
|
1089
|
-
|
|
1151
|
+
protoOf(GetCode1).f2u = function (_this__u8e3s4, first) {
|
|
1152
|
+
IOPrimitiveUtils_getInstance().z48(_this__u8e3s4, 0);
|
|
1153
|
+
return IOPrimitiveUtils_getInstance().a49(_this__u8e3s4, IOPrimitiveUtils_getInstance().m47(_this__u8e3s4), first);
|
|
1154
|
+
};
|
|
1155
|
+
protoOf(GetCode1).x2n = function (_this__u8e3s4, first) {
|
|
1156
|
+
return this.f2u(_this__u8e3s4, first);
|
|
1090
1157
|
};
|
|
1091
1158
|
var GetCode1_instance;
|
|
1092
1159
|
function GetCode1_getInstance() {
|
|
@@ -1097,14 +1164,18 @@
|
|
|
1097
1164
|
function GetCode2() {
|
|
1098
1165
|
GetCode2_instance = this;
|
|
1099
1166
|
NonBacktrackable.call(this, 'get_code');
|
|
1167
|
+
this.c49_1 = '`get_code(+Stream, ?Code)`\n\nReads and consumes the next character from the input stream `Stream` and unifies its code with `Code`, which becomes `-1` at the end of the stream. `Stream` must be an alias (e.g. `user_input`) or a `$stream(in, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an output stream a domain error (`stream_type`), where ISO prescribes a permission error. `Code` must be unbound or an integer (type error otherwise) within the character-code range or `-1` (representation error otherwise). It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- get_code(user_input, a).\nthrows error(type_error(integer, a), _).\n\n?- get_code(S, C).\nthrows error(instantiation_error, _).\n\n?- get_code(user_output, C).\nthrows error(domain_error(stream_type, user_output), _).\n```';
|
|
1100
1168
|
}
|
|
1101
|
-
protoOf(GetCode2).
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1169
|
+
protoOf(GetCode2).n1x = function () {
|
|
1170
|
+
return this.c49_1;
|
|
1171
|
+
};
|
|
1172
|
+
protoOf(GetCode2).w2u = function (_this__u8e3s4, first, second) {
|
|
1173
|
+
var channel = IOPrimitiveUtils_getInstance().q47(_this__u8e3s4, 0);
|
|
1174
|
+
IOPrimitiveUtils_getInstance().z48(_this__u8e3s4, 1);
|
|
1175
|
+
return IOPrimitiveUtils_getInstance().a49(_this__u8e3s4, channel, second);
|
|
1105
1176
|
};
|
|
1106
|
-
protoOf(GetCode2).
|
|
1107
|
-
return this.
|
|
1177
|
+
protoOf(GetCode2).o2k = function (_this__u8e3s4, first, second) {
|
|
1178
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
1108
1179
|
};
|
|
1109
1180
|
var GetCode2_instance;
|
|
1110
1181
|
function GetCode2_getInstance() {
|
|
@@ -1119,129 +1190,129 @@
|
|
|
1119
1190
|
return constructCallableReference(function (p0_0) {
|
|
1120
1191
|
var tmp0 = p0;
|
|
1121
1192
|
return alias(tmp0, p0_0);
|
|
1122
|
-
}, 1, 0,
|
|
1193
|
+
}, 1, 0, 115, 'alias', [p0]);
|
|
1123
1194
|
}
|
|
1124
1195
|
function IOPrimitiveUtils$propertiesOf$slambda$lambda_0(it) {
|
|
1125
1196
|
return it === '$current';
|
|
1126
1197
|
}
|
|
1127
1198
|
function _get_INPUT_STREAM_TERM_PATTERN__5fd8p6($this) {
|
|
1128
|
-
var tmp0 = $this.
|
|
1199
|
+
var tmp0 = $this.v46_1;
|
|
1129
1200
|
var tmp = KProperty1;
|
|
1130
1201
|
// Inline function 'kotlin.getValue' call
|
|
1131
1202
|
/* dead property reference removed */
|
|
1132
|
-
return tmp0.
|
|
1203
|
+
return tmp0.i2();
|
|
1133
1204
|
}
|
|
1134
1205
|
function _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf($this) {
|
|
1135
|
-
var tmp0 = $this.
|
|
1206
|
+
var tmp0 = $this.w46_1;
|
|
1136
1207
|
var tmp = KProperty1;
|
|
1137
1208
|
// Inline function 'kotlin.getValue' call
|
|
1138
1209
|
/* dead property reference removed */
|
|
1139
|
-
return tmp0.
|
|
1210
|
+
return tmp0.i2();
|
|
1140
1211
|
}
|
|
1141
1212
|
function _get_PROPERTY_TYPE_PATTERN__5nq864($this) {
|
|
1142
|
-
var tmp0 = $this.
|
|
1213
|
+
var tmp0 = $this.x46_1;
|
|
1143
1214
|
var tmp = KProperty1;
|
|
1144
1215
|
// Inline function 'kotlin.getValue' call
|
|
1145
1216
|
/* dead property reference removed */
|
|
1146
|
-
return tmp0.
|
|
1217
|
+
return tmp0.i2();
|
|
1147
1218
|
}
|
|
1148
1219
|
function _get_PROPERTY_REPOSITION_PATTERN__lznuii($this) {
|
|
1149
|
-
var tmp0 = $this.
|
|
1220
|
+
var tmp0 = $this.y46_1;
|
|
1150
1221
|
var tmp = KProperty1;
|
|
1151
1222
|
// Inline function 'kotlin.getValue' call
|
|
1152
1223
|
/* dead property reference removed */
|
|
1153
|
-
return tmp0.
|
|
1224
|
+
return tmp0.i2();
|
|
1154
1225
|
}
|
|
1155
1226
|
function _get_PROPERTY_EOF_ACTION_PATTERN__8k2shv($this) {
|
|
1156
|
-
var tmp0 = $this.
|
|
1227
|
+
var tmp0 = $this.z46_1;
|
|
1157
1228
|
var tmp = KProperty1;
|
|
1158
1229
|
// Inline function 'kotlin.getValue' call
|
|
1159
1230
|
/* dead property reference removed */
|
|
1160
|
-
return tmp0.
|
|
1231
|
+
return tmp0.i2();
|
|
1161
1232
|
}
|
|
1162
1233
|
function _get_PROPERTY_ALIAS_PATTERN__wipd2s($this) {
|
|
1163
|
-
var tmp0 = $this.
|
|
1234
|
+
var tmp0 = $this.a47_1;
|
|
1164
1235
|
var tmp = KProperty1;
|
|
1165
1236
|
// Inline function 'kotlin.getValue' call
|
|
1166
1237
|
/* dead property reference removed */
|
|
1167
|
-
return tmp0.
|
|
1238
|
+
return tmp0.i2();
|
|
1168
1239
|
}
|
|
1169
1240
|
function _get_PROPERTY_INPUT__z2zr91($this) {
|
|
1170
|
-
var tmp0 = $this.
|
|
1241
|
+
var tmp0 = $this.b47_1;
|
|
1171
1242
|
var tmp = KProperty1;
|
|
1172
1243
|
// Inline function 'kotlin.getValue' call
|
|
1173
1244
|
/* dead property reference removed */
|
|
1174
|
-
return tmp0.
|
|
1245
|
+
return tmp0.i2();
|
|
1175
1246
|
}
|
|
1176
1247
|
function _get_PROPERTY_OUTPUT__1pem9m($this) {
|
|
1177
|
-
var tmp0 = $this.
|
|
1248
|
+
var tmp0 = $this.c47_1;
|
|
1178
1249
|
var tmp = KProperty1;
|
|
1179
1250
|
// Inline function 'kotlin.getValue' call
|
|
1180
1251
|
/* dead property reference removed */
|
|
1181
|
-
return tmp0.
|
|
1252
|
+
return tmp0.i2();
|
|
1182
1253
|
}
|
|
1183
1254
|
function _get_PROPERTY_TYPE_TEXT__9rpcwt($this) {
|
|
1184
|
-
var tmp0 = $this.
|
|
1255
|
+
var tmp0 = $this.d47_1;
|
|
1185
1256
|
var tmp = KProperty1;
|
|
1186
1257
|
// Inline function 'kotlin.getValue' call
|
|
1187
1258
|
/* dead property reference removed */
|
|
1188
|
-
return tmp0.
|
|
1259
|
+
return tmp0.i2();
|
|
1189
1260
|
}
|
|
1190
1261
|
function _get_PROPERTY_REPOSITION_FALSE__i73t3b($this) {
|
|
1191
|
-
var tmp0 = $this.
|
|
1262
|
+
var tmp0 = $this.e47_1;
|
|
1192
1263
|
var tmp = KProperty1;
|
|
1193
1264
|
// Inline function 'kotlin.getValue' call
|
|
1194
1265
|
/* dead property reference removed */
|
|
1195
|
-
return tmp0.
|
|
1266
|
+
return tmp0.i2();
|
|
1196
1267
|
}
|
|
1197
1268
|
function _get_PROPERTY_EOF_ACTION_EOF_CODE__he3pvl($this) {
|
|
1198
|
-
var tmp0 = $this.
|
|
1269
|
+
var tmp0 = $this.f47_1;
|
|
1199
1270
|
var tmp = KProperty1;
|
|
1200
1271
|
// Inline function 'kotlin.getValue' call
|
|
1201
1272
|
/* dead property reference removed */
|
|
1202
|
-
return tmp0.
|
|
1273
|
+
return tmp0.i2();
|
|
1203
1274
|
}
|
|
1204
1275
|
function _get_OPTION_QUOTED_PATTERN__n2ri42($this) {
|
|
1205
|
-
var tmp0 = $this.
|
|
1276
|
+
var tmp0 = $this.g47_1;
|
|
1206
1277
|
var tmp = KProperty1;
|
|
1207
1278
|
// Inline function 'kotlin.getValue' call
|
|
1208
1279
|
/* dead property reference removed */
|
|
1209
|
-
return tmp0.
|
|
1280
|
+
return tmp0.i2();
|
|
1210
1281
|
}
|
|
1211
1282
|
function _get_OPTION_NUMBER_VARS_PATTERN__p98ste($this) {
|
|
1212
|
-
var tmp0 = $this.
|
|
1283
|
+
var tmp0 = $this.h47_1;
|
|
1213
1284
|
var tmp = KProperty1;
|
|
1214
1285
|
// Inline function 'kotlin.getValue' call
|
|
1215
1286
|
/* dead property reference removed */
|
|
1216
|
-
return tmp0.
|
|
1287
|
+
return tmp0.i2();
|
|
1217
1288
|
}
|
|
1218
1289
|
function _get_OPTION_IGNORE_OPS_PATTERN__cpse4v($this) {
|
|
1219
|
-
var tmp0 = $this.
|
|
1290
|
+
var tmp0 = $this.i47_1;
|
|
1220
1291
|
var tmp = KProperty1;
|
|
1221
1292
|
// Inline function 'kotlin.getValue' call
|
|
1222
1293
|
/* dead property reference removed */
|
|
1223
|
-
return tmp0.
|
|
1294
|
+
return tmp0.i2();
|
|
1224
1295
|
}
|
|
1225
1296
|
function _get_INFO_VARIABLES_PATTERN__bhp1h0($this) {
|
|
1226
|
-
var tmp0 = $this.
|
|
1297
|
+
var tmp0 = $this.j47_1;
|
|
1227
1298
|
var tmp = KProperty1;
|
|
1228
1299
|
// Inline function 'kotlin.getValue' call
|
|
1229
1300
|
/* dead property reference removed */
|
|
1230
|
-
return tmp0.
|
|
1301
|
+
return tmp0.i2();
|
|
1231
1302
|
}
|
|
1232
1303
|
function _get_INFO_VARIABLE_NAMES_PATTERN__j3oaom($this) {
|
|
1233
|
-
var tmp0 = $this.
|
|
1304
|
+
var tmp0 = $this.k47_1;
|
|
1234
1305
|
var tmp = KProperty1;
|
|
1235
1306
|
// Inline function 'kotlin.getValue' call
|
|
1236
1307
|
/* dead property reference removed */
|
|
1237
|
-
return tmp0.
|
|
1308
|
+
return tmp0.i2();
|
|
1238
1309
|
}
|
|
1239
1310
|
function _get_INFO_SINGLETONS_PATTERN__y21s87($this) {
|
|
1240
|
-
var tmp0 = $this.
|
|
1311
|
+
var tmp0 = $this.l47_1;
|
|
1241
1312
|
var tmp = KProperty1;
|
|
1242
1313
|
// Inline function 'kotlin.getValue' call
|
|
1243
1314
|
/* dead property reference removed */
|
|
1244
|
-
return tmp0.
|
|
1315
|
+
return tmp0.i2();
|
|
1245
1316
|
}
|
|
1246
1317
|
function _get_validPropertiesPattern__7s1t06($this) {
|
|
1247
1318
|
return sequenceOf([_get_PROPERTY_INPUT__z2zr91($this), _get_PROPERTY_OUTPUT__1pem9m($this), _get_PROPERTY_ALIAS_PATTERN__wipd2s($this), _get_PROPERTY_TYPE_PATTERN__5nq864($this), _get_PROPERTY_EOF_ACTION_PATTERN__8k2shv($this), _get_PROPERTY_REPOSITION_PATTERN__lznuii($this)]);
|
|
@@ -1333,13 +1404,13 @@
|
|
|
1333
1404
|
// Inline function 'kotlin.collections.map' call
|
|
1334
1405
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1335
1406
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(vNames, 10));
|
|
1336
|
-
var _iterator__ex2g4s = vNames.
|
|
1337
|
-
while (_iterator__ex2g4s.
|
|
1338
|
-
var item = _iterator__ex2g4s.
|
|
1339
|
-
var a = item.
|
|
1340
|
-
var v = item.
|
|
1407
|
+
var _iterator__ex2g4s = vNames.n();
|
|
1408
|
+
while (_iterator__ex2g4s.q()) {
|
|
1409
|
+
var item = _iterator__ex2g4s.r();
|
|
1410
|
+
var a = item.zd();
|
|
1411
|
+
var v = item.ae();
|
|
1341
1412
|
var tmp$ret$2 = Companion_getInstance_2().of('=', [a, v]);
|
|
1342
|
-
destination.
|
|
1413
|
+
destination.l(tmp$ret$2);
|
|
1343
1414
|
}
|
|
1344
1415
|
tmp_0 = destination;
|
|
1345
1416
|
}
|
|
@@ -1383,9 +1454,9 @@
|
|
|
1383
1454
|
var tmp$ret$1;
|
|
1384
1455
|
$l$block: {
|
|
1385
1456
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
1386
|
-
var _iterator__ex2g4s = tmp0.
|
|
1387
|
-
while (_iterator__ex2g4s.
|
|
1388
|
-
var element = _iterator__ex2g4s.
|
|
1457
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
1458
|
+
while (_iterator__ex2g4s.q()) {
|
|
1459
|
+
var element = _iterator__ex2g4s.r();
|
|
1389
1460
|
if (unificator.match(pattern, element)) {
|
|
1390
1461
|
tmp$ret$1 = element;
|
|
1391
1462
|
break $l$block;
|
|
@@ -1406,25 +1477,25 @@
|
|
|
1406
1477
|
}
|
|
1407
1478
|
function _get_singletons__bihqrn($this, $receiver) {
|
|
1408
1479
|
// Inline function 'kotlin.sequences.groupBy' call
|
|
1409
|
-
var tmp0 = $receiver.
|
|
1480
|
+
var tmp0 = $receiver.zw();
|
|
1410
1481
|
// Inline function 'kotlin.sequences.groupByTo' call
|
|
1411
1482
|
var destination = LinkedHashMap_init_$Create$();
|
|
1412
|
-
var _iterator__ex2g4s = tmp0.
|
|
1413
|
-
while (_iterator__ex2g4s.
|
|
1414
|
-
var element = _iterator__ex2g4s.
|
|
1483
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
1484
|
+
while (_iterator__ex2g4s.q()) {
|
|
1485
|
+
var element = _iterator__ex2g4s.r();
|
|
1415
1486
|
var key = element;
|
|
1416
1487
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1417
|
-
var value = destination.
|
|
1488
|
+
var value = destination.l2(key);
|
|
1418
1489
|
var tmp;
|
|
1419
1490
|
if (value == null) {
|
|
1420
1491
|
var answer = ArrayList_init_$Create$_0();
|
|
1421
|
-
destination.
|
|
1492
|
+
destination.t4(key, answer);
|
|
1422
1493
|
tmp = answer;
|
|
1423
1494
|
} else {
|
|
1424
1495
|
tmp = value;
|
|
1425
1496
|
}
|
|
1426
1497
|
var list = tmp;
|
|
1427
|
-
list.
|
|
1498
|
+
list.l(element);
|
|
1428
1499
|
}
|
|
1429
1500
|
var tmp_0 = asSequence_0(destination);
|
|
1430
1501
|
var tmp_1 = filter(tmp_0, IOPrimitiveUtils$_get_singletons_$lambda_kke618);
|
|
@@ -1437,34 +1508,34 @@
|
|
|
1437
1508
|
// Inline function 'kotlin.sequences.groupBy' call
|
|
1438
1509
|
// Inline function 'kotlin.sequences.groupByTo' call
|
|
1439
1510
|
var destination = LinkedHashMap_init_$Create$();
|
|
1440
|
-
var _iterator__ex2g4s = $receiver.
|
|
1441
|
-
while (_iterator__ex2g4s.
|
|
1442
|
-
var element = _iterator__ex2g4s.
|
|
1443
|
-
var key = Companion_getInstance_0().of(element.
|
|
1511
|
+
var _iterator__ex2g4s = $receiver.n();
|
|
1512
|
+
while (_iterator__ex2g4s.q()) {
|
|
1513
|
+
var element = _iterator__ex2g4s.r();
|
|
1514
|
+
var key = Companion_getInstance_0().of(element.q2());
|
|
1444
1515
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1445
|
-
var value = destination.
|
|
1516
|
+
var value = destination.l2(key);
|
|
1446
1517
|
var tmp;
|
|
1447
1518
|
if (value == null) {
|
|
1448
1519
|
var answer = ArrayList_init_$Create$_0();
|
|
1449
|
-
destination.
|
|
1520
|
+
destination.t4(key, answer);
|
|
1450
1521
|
tmp = answer;
|
|
1451
1522
|
} else {
|
|
1452
1523
|
tmp = value;
|
|
1453
1524
|
}
|
|
1454
1525
|
var list = tmp;
|
|
1455
|
-
list.
|
|
1526
|
+
list.l(element);
|
|
1456
1527
|
}
|
|
1457
1528
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1458
1529
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1459
1530
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1460
1531
|
// Inline function 'kotlin.collections.iterator' call
|
|
1461
|
-
var _iterator__ex2g4s_0 = destination.
|
|
1462
|
-
while (_iterator__ex2g4s_0.
|
|
1463
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
1532
|
+
var _iterator__ex2g4s_0 = destination.d1().n();
|
|
1533
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
1534
|
+
var element_0 = _iterator__ex2g4s_0.r();
|
|
1464
1535
|
// Inline function 'kotlin.collections.component1' call
|
|
1465
|
-
var n = element_0.
|
|
1536
|
+
var n = element_0.h2();
|
|
1466
1537
|
// Inline function 'kotlin.collections.component2' call
|
|
1467
|
-
var vs = element_0.
|
|
1538
|
+
var vs = element_0.i2();
|
|
1468
1539
|
var tmp_0 = asSequence(vs);
|
|
1469
1540
|
var list_0 = map(tmp_0, IOPrimitiveUtils$toAssignments$lambda(n));
|
|
1470
1541
|
addAll(destination_0, list_0);
|
|
@@ -1475,18 +1546,18 @@
|
|
|
1475
1546
|
var tmp0_safe_receiver = (!($receiver == null) ? isInterface($receiver, Struct) : false) ? $receiver : null;
|
|
1476
1547
|
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.getArgAt(0);
|
|
1477
1548
|
var tmp1_safe_receiver = (!(tmp == null) ? isInterface(tmp, Atom) : false) ? tmp : null;
|
|
1478
|
-
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1549
|
+
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i2();
|
|
1479
1550
|
}
|
|
1480
1551
|
function replyOpeningStream($this, $receiver, channel, third, alias) {
|
|
1481
1552
|
alias = alias === VOID ? null : alias;
|
|
1482
|
-
var streamTerm = channel.
|
|
1483
|
-
var tmp = Companion_getInstance_1().
|
|
1553
|
+
var streamTerm = channel.j22();
|
|
1554
|
+
var tmp = Companion_getInstance_1().j2l($receiver, third, streamTerm);
|
|
1484
1555
|
return $receiver.replyWithBuildingSideEffects(tmp, VOID, IOPrimitiveUtils$replyOpeningStream$lambda(alias, channel));
|
|
1485
1556
|
}
|
|
1486
1557
|
function replyOpeningStream_0($this, $receiver, channel, third, alias) {
|
|
1487
1558
|
alias = alias === VOID ? null : alias;
|
|
1488
|
-
var streamTerm = channel.
|
|
1489
|
-
var tmp = Companion_getInstance_1().
|
|
1559
|
+
var streamTerm = channel.j22();
|
|
1560
|
+
var tmp = Companion_getInstance_1().j2l($receiver, third, streamTerm);
|
|
1490
1561
|
return $receiver.replyWithBuildingSideEffects(tmp, VOID, IOPrimitiveUtils$replyOpeningStream$lambda_0(alias, channel));
|
|
1491
1562
|
}
|
|
1492
1563
|
function IOPrimitiveUtils$INPUT_STREAM_TERM_PATTERN$delegate$lambda() {
|
|
@@ -1495,7 +1566,7 @@
|
|
|
1495
1566
|
function IOPrimitiveUtils$_get_INPUT_STREAM_TERM_PATTERN_$ref_59oxnp() {
|
|
1496
1567
|
return constructCallableReference(function (p0) {
|
|
1497
1568
|
return _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(p0);
|
|
1498
|
-
}, 1, 0,
|
|
1569
|
+
}, 1, 0, 116);
|
|
1499
1570
|
}
|
|
1500
1571
|
function IOPrimitiveUtils$OUTPUT_STREAM_TERM_PATTERN$delegate$lambda() {
|
|
1501
1572
|
return Companion_instance_5.streamTerm();
|
|
@@ -1503,7 +1574,7 @@
|
|
|
1503
1574
|
function IOPrimitiveUtils$_get_OUTPUT_STREAM_TERM_PATTERN_$ref_kcdkmo() {
|
|
1504
1575
|
return constructCallableReference(function (p0) {
|
|
1505
1576
|
return _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(p0);
|
|
1506
|
-
}, 1, 0,
|
|
1577
|
+
}, 1, 0, 117);
|
|
1507
1578
|
}
|
|
1508
1579
|
function IOPrimitiveUtils$PROPERTY_TYPE_PATTERN$delegate$lambda() {
|
|
1509
1580
|
return Companion_getInstance_2().of('type', [Companion_getInstance_3().anonymous()]);
|
|
@@ -1511,7 +1582,7 @@
|
|
|
1511
1582
|
function IOPrimitiveUtils$_get_PROPERTY_TYPE_PATTERN_$ref_qcyh3d() {
|
|
1512
1583
|
return constructCallableReference(function (p0) {
|
|
1513
1584
|
return _get_PROPERTY_TYPE_PATTERN__5nq864(p0);
|
|
1514
|
-
}, 1, 0,
|
|
1585
|
+
}, 1, 0, 118);
|
|
1515
1586
|
}
|
|
1516
1587
|
function IOPrimitiveUtils$PROPERTY_REPOSITION_PATTERN$delegate$lambda() {
|
|
1517
1588
|
return Companion_getInstance_2().of('reposition', [Companion_getInstance_3().anonymous()]);
|
|
@@ -1519,7 +1590,7 @@
|
|
|
1519
1590
|
function IOPrimitiveUtils$_get_PROPERTY_REPOSITION_PATTERN_$ref_uil93p() {
|
|
1520
1591
|
return constructCallableReference(function (p0) {
|
|
1521
1592
|
return _get_PROPERTY_REPOSITION_PATTERN__lznuii(p0);
|
|
1522
|
-
}, 1, 0,
|
|
1593
|
+
}, 1, 0, 119);
|
|
1523
1594
|
}
|
|
1524
1595
|
function IOPrimitiveUtils$PROPERTY_EOF_ACTION_PATTERN$delegate$lambda() {
|
|
1525
1596
|
return Companion_getInstance_2().of('eof_action', [Companion_getInstance_3().anonymous()]);
|
|
@@ -1527,7 +1598,7 @@
|
|
|
1527
1598
|
function IOPrimitiveUtils$_get_PROPERTY_EOF_ACTION_PATTERN_$ref_bt8ai0() {
|
|
1528
1599
|
return constructCallableReference(function (p0) {
|
|
1529
1600
|
return _get_PROPERTY_EOF_ACTION_PATTERN__8k2shv(p0);
|
|
1530
|
-
}, 1, 0,
|
|
1601
|
+
}, 1, 0, 120);
|
|
1531
1602
|
}
|
|
1532
1603
|
function IOPrimitiveUtils$PROPERTY_ALIAS_PATTERN$delegate$lambda() {
|
|
1533
1604
|
return alias(IOPrimitiveUtils_getInstance());
|
|
@@ -1535,7 +1606,7 @@
|
|
|
1535
1606
|
function IOPrimitiveUtils$_get_PROPERTY_ALIAS_PATTERN_$ref_qs5lfb() {
|
|
1536
1607
|
return constructCallableReference(function (p0) {
|
|
1537
1608
|
return _get_PROPERTY_ALIAS_PATTERN__wipd2s(p0);
|
|
1538
|
-
}, 1, 0,
|
|
1609
|
+
}, 1, 0, 121);
|
|
1539
1610
|
}
|
|
1540
1611
|
function IOPrimitiveUtils$PROPERTY_INPUT$delegate$lambda() {
|
|
1541
1612
|
return Companion_getInstance_0().of('input');
|
|
@@ -1543,7 +1614,7 @@
|
|
|
1543
1614
|
function IOPrimitiveUtils$_get_PROPERTY_INPUT_$ref_hltzoy() {
|
|
1544
1615
|
return constructCallableReference(function (p0) {
|
|
1545
1616
|
return _get_PROPERTY_INPUT__z2zr91(p0);
|
|
1546
|
-
}, 1, 0,
|
|
1617
|
+
}, 1, 0, 122);
|
|
1547
1618
|
}
|
|
1548
1619
|
function IOPrimitiveUtils$PROPERTY_OUTPUT$delegate$lambda() {
|
|
1549
1620
|
return Companion_getInstance_0().of('output');
|
|
@@ -1551,7 +1622,7 @@
|
|
|
1551
1622
|
function IOPrimitiveUtils$_get_PROPERTY_OUTPUT_$ref_9ccgyp() {
|
|
1552
1623
|
return constructCallableReference(function (p0) {
|
|
1553
1624
|
return _get_PROPERTY_OUTPUT__1pem9m(p0);
|
|
1554
|
-
}, 1, 0,
|
|
1625
|
+
}, 1, 0, 123);
|
|
1555
1626
|
}
|
|
1556
1627
|
function IOPrimitiveUtils$PROPERTY_TYPE_TEXT$delegate$lambda() {
|
|
1557
1628
|
return Companion_getInstance_2().of('type', [Companion_getInstance_0().of('text')]);
|
|
@@ -1559,15 +1630,15 @@
|
|
|
1559
1630
|
function IOPrimitiveUtils$_get_PROPERTY_TYPE_TEXT_$ref_47hbty() {
|
|
1560
1631
|
return constructCallableReference(function (p0) {
|
|
1561
1632
|
return _get_PROPERTY_TYPE_TEXT__9rpcwt(p0);
|
|
1562
|
-
}, 1, 0,
|
|
1633
|
+
}, 1, 0, 124);
|
|
1563
1634
|
}
|
|
1564
1635
|
function IOPrimitiveUtils$PROPERTY_REPOSITION_FALSE$delegate$lambda() {
|
|
1565
|
-
return Companion_getInstance_2().of('reposition', [Companion_getInstance_4().
|
|
1636
|
+
return Companion_getInstance_2().of('reposition', [Companion_getInstance_4().qw_1]);
|
|
1566
1637
|
}
|
|
1567
1638
|
function IOPrimitiveUtils$_get_PROPERTY_REPOSITION_FALSE_$ref_jx0m6() {
|
|
1568
1639
|
return constructCallableReference(function (p0) {
|
|
1569
1640
|
return _get_PROPERTY_REPOSITION_FALSE__i73t3b(p0);
|
|
1570
|
-
}, 1, 0,
|
|
1641
|
+
}, 1, 0, 125);
|
|
1571
1642
|
}
|
|
1572
1643
|
function IOPrimitiveUtils$PROPERTY_EOF_ACTION_EOF_CODE$delegate$lambda() {
|
|
1573
1644
|
return Companion_getInstance_2().of('eof_action', [Companion_getInstance_0().of('eof_code')]);
|
|
@@ -1575,7 +1646,7 @@
|
|
|
1575
1646
|
function IOPrimitiveUtils$_get_PROPERTY_EOF_ACTION_EOF_CODE_$ref_1cwy66() {
|
|
1576
1647
|
return constructCallableReference(function (p0) {
|
|
1577
1648
|
return _get_PROPERTY_EOF_ACTION_EOF_CODE__he3pvl(p0);
|
|
1578
|
-
}, 1, 0,
|
|
1649
|
+
}, 1, 0, 126);
|
|
1579
1650
|
}
|
|
1580
1651
|
function IOPrimitiveUtils$OPTION_QUOTED_PATTERN$delegate$lambda() {
|
|
1581
1652
|
return quoted(IOPrimitiveUtils_getInstance());
|
|
@@ -1583,7 +1654,7 @@
|
|
|
1583
1654
|
function IOPrimitiveUtils$_get_OPTION_QUOTED_PATTERN_$ref_nxjfbr() {
|
|
1584
1655
|
return constructCallableReference(function (p0) {
|
|
1585
1656
|
return _get_OPTION_QUOTED_PATTERN__n2ri42(p0);
|
|
1586
|
-
}, 1, 0,
|
|
1657
|
+
}, 1, 0, 127);
|
|
1587
1658
|
}
|
|
1588
1659
|
function IOPrimitiveUtils$OPTION_NUMBER_VARS_PATTERN$delegate$lambda() {
|
|
1589
1660
|
return numberVars(IOPrimitiveUtils_getInstance());
|
|
@@ -1591,7 +1662,7 @@
|
|
|
1591
1662
|
function IOPrimitiveUtils$_get_OPTION_NUMBER_VARS_PATTERN_$ref_pdk9ph() {
|
|
1592
1663
|
return constructCallableReference(function (p0) {
|
|
1593
1664
|
return _get_OPTION_NUMBER_VARS_PATTERN__p98ste(p0);
|
|
1594
|
-
}, 1, 0,
|
|
1665
|
+
}, 1, 0, 128);
|
|
1595
1666
|
}
|
|
1596
1667
|
function IOPrimitiveUtils$OPTION_IGNORE_OPS_PATTERN$delegate$lambda() {
|
|
1597
1668
|
return ignoreOps(IOPrimitiveUtils_getInstance());
|
|
@@ -1599,7 +1670,7 @@
|
|
|
1599
1670
|
function IOPrimitiveUtils$_get_OPTION_IGNORE_OPS_PATTERN_$ref_vvsa9g() {
|
|
1600
1671
|
return constructCallableReference(function (p0) {
|
|
1601
1672
|
return _get_OPTION_IGNORE_OPS_PATTERN__cpse4v(p0);
|
|
1602
|
-
}, 1, 0,
|
|
1673
|
+
}, 1, 0, 129);
|
|
1603
1674
|
}
|
|
1604
1675
|
function IOPrimitiveUtils$INFO_VARIABLES_PATTERN$delegate$lambda() {
|
|
1605
1676
|
return variables(IOPrimitiveUtils_getInstance());
|
|
@@ -1607,7 +1678,7 @@
|
|
|
1607
1678
|
function IOPrimitiveUtils$_get_INFO_VARIABLES_PATTERN_$ref_ih2rd5() {
|
|
1608
1679
|
return constructCallableReference(function (p0) {
|
|
1609
1680
|
return _get_INFO_VARIABLES_PATTERN__bhp1h0(p0);
|
|
1610
|
-
}, 1, 0,
|
|
1681
|
+
}, 1, 0, 130);
|
|
1611
1682
|
}
|
|
1612
1683
|
function IOPrimitiveUtils$INFO_VARIABLE_NAMES_PATTERN$delegate$lambda() {
|
|
1613
1684
|
return variableNames(IOPrimitiveUtils_getInstance());
|
|
@@ -1615,7 +1686,7 @@
|
|
|
1615
1686
|
function IOPrimitiveUtils$_get_INFO_VARIABLE_NAMES_PATTERN_$ref_lzmk91() {
|
|
1616
1687
|
return constructCallableReference(function (p0) {
|
|
1617
1688
|
return _get_INFO_VARIABLE_NAMES_PATTERN__j3oaom(p0);
|
|
1618
|
-
}, 1, 0,
|
|
1689
|
+
}, 1, 0, 131);
|
|
1619
1690
|
}
|
|
1620
1691
|
function IOPrimitiveUtils$INFO_SINGLETONS_PATTERN$delegate$lambda() {
|
|
1621
1692
|
return singletons(IOPrimitiveUtils_getInstance());
|
|
@@ -1623,106 +1694,106 @@
|
|
|
1623
1694
|
function IOPrimitiveUtils$_get_INFO_SINGLETONS_PATTERN_$ref_8msi4i() {
|
|
1624
1695
|
return constructCallableReference(function (p0) {
|
|
1625
1696
|
return _get_INFO_SINGLETONS_PATTERN__y21s87(p0);
|
|
1626
|
-
}, 1, 0,
|
|
1697
|
+
}, 1, 0, 132);
|
|
1627
1698
|
}
|
|
1628
1699
|
function IOPrimitiveUtils$quoted$ref(p0) {
|
|
1629
1700
|
return constructCallableReference(function (p0_0) {
|
|
1630
1701
|
var tmp0 = p0;
|
|
1631
1702
|
return quoted(tmp0, p0_0);
|
|
1632
|
-
}, 1, 0,
|
|
1703
|
+
}, 1, 0, 133, 'quoted', [p0]);
|
|
1633
1704
|
}
|
|
1634
1705
|
function IOPrimitiveUtils$ignoreOps$ref(p0) {
|
|
1635
1706
|
return constructCallableReference(function (p0_0) {
|
|
1636
1707
|
var tmp0 = p0;
|
|
1637
1708
|
return ignoreOps(tmp0, p0_0);
|
|
1638
|
-
}, 1, 0,
|
|
1709
|
+
}, 1, 0, 134, 'ignoreOps', [p0]);
|
|
1639
1710
|
}
|
|
1640
1711
|
function IOPrimitiveUtils$numberVars$ref(p0) {
|
|
1641
1712
|
return constructCallableReference(function (p0_0) {
|
|
1642
1713
|
var tmp0 = p0;
|
|
1643
1714
|
return numberVars(tmp0, p0_0);
|
|
1644
|
-
}, 1, 0,
|
|
1715
|
+
}, 1, 0, 135, 'numberVars', [p0]);
|
|
1645
1716
|
}
|
|
1646
1717
|
function IOPrimitiveUtils$_get_validOptionsPattern_$lambda_r088xw(it) {
|
|
1647
1718
|
return map(sequenceOf([true, false]), it);
|
|
1648
1719
|
}
|
|
1649
1720
|
function IOPrimitiveUtils$propertiesOf$slambda($channel, $this_propertiesOf, resultContinuation) {
|
|
1650
|
-
this
|
|
1651
|
-
this
|
|
1721
|
+
this.l49_1 = $channel;
|
|
1722
|
+
this.m49_1 = $this_propertiesOf;
|
|
1652
1723
|
CoroutineImpl.call(this, resultContinuation);
|
|
1653
1724
|
}
|
|
1654
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1655
|
-
var tmp = this.
|
|
1656
|
-
tmp.
|
|
1657
|
-
tmp.
|
|
1658
|
-
return tmp.
|
|
1725
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).o49 = function ($this$sequence, $completion) {
|
|
1726
|
+
var tmp = this.p49($this$sequence, $completion);
|
|
1727
|
+
tmp.n8_1 = Unit_instance;
|
|
1728
|
+
tmp.o8_1 = null;
|
|
1729
|
+
return tmp.t8();
|
|
1659
1730
|
};
|
|
1660
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1661
|
-
return this.
|
|
1731
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).k9 = function (p1, $completion) {
|
|
1732
|
+
return this.o49(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
1662
1733
|
};
|
|
1663
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1664
|
-
var suspendResult = this.
|
|
1734
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).t8 = function () {
|
|
1735
|
+
var suspendResult = this.n8_1;
|
|
1665
1736
|
$sm: do
|
|
1666
1737
|
try {
|
|
1667
|
-
var tmp = this.
|
|
1738
|
+
var tmp = this.l8_1;
|
|
1668
1739
|
switch (tmp) {
|
|
1669
1740
|
case 0:
|
|
1670
|
-
this.
|
|
1671
|
-
var tmp0_subject = this
|
|
1741
|
+
this.m8_1 = 7;
|
|
1742
|
+
var tmp0_subject = this.l49_1;
|
|
1672
1743
|
if (isInterface(tmp0_subject, InputChannel)) {
|
|
1673
|
-
this.
|
|
1674
|
-
suspendResult = this
|
|
1744
|
+
this.l8_1 = 3;
|
|
1745
|
+
suspendResult = this.n49_1.ne(_get_PROPERTY_INPUT__z2zr91(IOPrimitiveUtils_getInstance()), this);
|
|
1675
1746
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1676
1747
|
return suspendResult;
|
|
1677
1748
|
}
|
|
1678
1749
|
continue $sm;
|
|
1679
1750
|
} else {
|
|
1680
1751
|
if (isInterface(tmp0_subject, OutputChannel)) {
|
|
1681
|
-
this.
|
|
1682
|
-
suspendResult = this
|
|
1752
|
+
this.l8_1 = 1;
|
|
1753
|
+
suspendResult = this.n49_1.ne(_get_PROPERTY_OUTPUT__1pem9m(IOPrimitiveUtils_getInstance()), this);
|
|
1683
1754
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1684
1755
|
return suspendResult;
|
|
1685
1756
|
}
|
|
1686
1757
|
continue $sm;
|
|
1687
1758
|
} else {
|
|
1688
|
-
this.
|
|
1759
|
+
this.l8_1 = 5;
|
|
1689
1760
|
continue $sm;
|
|
1690
1761
|
}
|
|
1691
1762
|
}
|
|
1692
1763
|
|
|
1693
1764
|
case 1:
|
|
1694
|
-
this.
|
|
1695
|
-
var tmp_0 = this
|
|
1696
|
-
var tmp_1 = this
|
|
1765
|
+
this.l8_1 = 2;
|
|
1766
|
+
var tmp_0 = this.m49_1.context.d1y();
|
|
1767
|
+
var tmp_1 = this.l49_1;
|
|
1697
1768
|
var tmp_2 = tmp_0.aliasesOf(isInterface(tmp_1, OutputChannel) ? tmp_1 : THROW_CCE());
|
|
1698
1769
|
var tmp_3 = filterNot(tmp_2, IOPrimitiveUtils$propertiesOf$slambda$lambda_0);
|
|
1699
|
-
suspendResult = this
|
|
1770
|
+
suspendResult = this.n49_1.qe(map(tmp_3, IOPrimitiveUtils$alias$ref(IOPrimitiveUtils_getInstance())), this);
|
|
1700
1771
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1701
1772
|
return suspendResult;
|
|
1702
1773
|
}
|
|
1703
1774
|
|
|
1704
1775
|
continue $sm;
|
|
1705
1776
|
case 2:
|
|
1706
|
-
this.
|
|
1777
|
+
this.l8_1 = 5;
|
|
1707
1778
|
continue $sm;
|
|
1708
1779
|
case 3:
|
|
1709
|
-
this.
|
|
1710
|
-
var tmp_4 = this
|
|
1711
|
-
var tmp_5 = this
|
|
1780
|
+
this.l8_1 = 4;
|
|
1781
|
+
var tmp_4 = this.m49_1.context.c1y();
|
|
1782
|
+
var tmp_5 = this.l49_1;
|
|
1712
1783
|
var tmp_6 = tmp_4.aliasesOf(isInterface(tmp_5, InputChannel) ? tmp_5 : THROW_CCE());
|
|
1713
1784
|
var tmp_7 = filterNot(tmp_6, IOPrimitiveUtils$propertiesOf$slambda$lambda);
|
|
1714
|
-
suspendResult = this
|
|
1785
|
+
suspendResult = this.n49_1.qe(map(tmp_7, IOPrimitiveUtils$alias$ref(IOPrimitiveUtils_getInstance())), this);
|
|
1715
1786
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1716
1787
|
return suspendResult;
|
|
1717
1788
|
}
|
|
1718
1789
|
|
|
1719
1790
|
continue $sm;
|
|
1720
1791
|
case 4:
|
|
1721
|
-
this.
|
|
1792
|
+
this.l8_1 = 5;
|
|
1722
1793
|
continue $sm;
|
|
1723
1794
|
case 5:
|
|
1724
|
-
this.
|
|
1725
|
-
suspendResult = this
|
|
1795
|
+
this.l8_1 = 6;
|
|
1796
|
+
suspendResult = this.n49_1.ne(_get_PROPERTY_TYPE_TEXT__9rpcwt(IOPrimitiveUtils_getInstance()), this);
|
|
1726
1797
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1727
1798
|
return suspendResult;
|
|
1728
1799
|
}
|
|
@@ -1731,28 +1802,28 @@
|
|
|
1731
1802
|
case 6:
|
|
1732
1803
|
return Unit_instance;
|
|
1733
1804
|
case 7:
|
|
1734
|
-
throw this.
|
|
1805
|
+
throw this.o8_1;
|
|
1735
1806
|
}
|
|
1736
1807
|
} catch ($p) {
|
|
1737
1808
|
var e = $p;
|
|
1738
|
-
if (this.
|
|
1809
|
+
if (this.m8_1 === 7) {
|
|
1739
1810
|
throw e;
|
|
1740
1811
|
} else {
|
|
1741
|
-
this.
|
|
1742
|
-
this.
|
|
1812
|
+
this.l8_1 = this.m8_1;
|
|
1813
|
+
this.o8_1 = e;
|
|
1743
1814
|
}
|
|
1744
1815
|
}
|
|
1745
1816
|
while (true);
|
|
1746
1817
|
};
|
|
1747
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1748
|
-
var i = new IOPrimitiveUtils$propertiesOf$slambda(this
|
|
1749
|
-
i
|
|
1818
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).p49 = function ($this$sequence, completion) {
|
|
1819
|
+
var i = new IOPrimitiveUtils$propertiesOf$slambda(this.l49_1, this.m49_1, completion);
|
|
1820
|
+
i.n49_1 = $this$sequence;
|
|
1750
1821
|
return i;
|
|
1751
1822
|
};
|
|
1752
1823
|
function IOPrimitiveUtils$propertiesOf$slambda_0($channel, $this_propertiesOf, resultContinuation) {
|
|
1753
1824
|
var i = new IOPrimitiveUtils$propertiesOf$slambda($channel, $this_propertiesOf, resultContinuation);
|
|
1754
1825
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
1755
|
-
return i.
|
|
1826
|
+
return i.o49($this$sequence, $completion);
|
|
1756
1827
|
}, 1);
|
|
1757
1828
|
}
|
|
1758
1829
|
function IOPrimitiveUtils$getOption$lambda(it) {
|
|
@@ -1770,16 +1841,16 @@
|
|
|
1770
1841
|
return !(it == null) ? isInterface(it, Truth) : false;
|
|
1771
1842
|
}
|
|
1772
1843
|
function IOPrimitiveUtils$getOption$lambda_3(it) {
|
|
1773
|
-
return it.
|
|
1844
|
+
return it.vw();
|
|
1774
1845
|
}
|
|
1775
1846
|
function IOPrimitiveUtils$getInfo$lambda(it) {
|
|
1776
1847
|
return !(it == null) ? isInterface(it, Struct) : false;
|
|
1777
1848
|
}
|
|
1778
1849
|
function IOPrimitiveUtils$_get_singletons_$lambda_kke618(it) {
|
|
1779
|
-
return it.
|
|
1850
|
+
return it.i2().t() === 1;
|
|
1780
1851
|
}
|
|
1781
1852
|
function IOPrimitiveUtils$_get_singletons_$lambda_kke618_0(it) {
|
|
1782
|
-
return it.
|
|
1853
|
+
return it.h2();
|
|
1783
1854
|
}
|
|
1784
1855
|
function IOPrimitiveUtils$toAssignments$lambda($n) {
|
|
1785
1856
|
return function (it) {
|
|
@@ -1788,90 +1859,90 @@
|
|
|
1788
1859
|
}
|
|
1789
1860
|
function IOPrimitiveUtils$open$lambda($this_open) {
|
|
1790
1861
|
return function (it) {
|
|
1791
|
-
return IOPrimitiveUtils_getInstance().
|
|
1862
|
+
return IOPrimitiveUtils_getInstance().q49($this_open, it);
|
|
1792
1863
|
};
|
|
1793
1864
|
}
|
|
1794
1865
|
function IOPrimitiveUtils$open$lambda_0($this_open) {
|
|
1795
1866
|
return function (it) {
|
|
1796
|
-
return IOPrimitiveUtils_getInstance().
|
|
1867
|
+
return IOPrimitiveUtils_getInstance().r49($this_open, it);
|
|
1797
1868
|
};
|
|
1798
1869
|
}
|
|
1799
1870
|
function IOPrimitiveUtils$replyOpeningStream$lambda($alias, $channel) {
|
|
1800
1871
|
return function ($this$replyWith) {
|
|
1801
1872
|
var tmp0_elvis_lhs = $alias;
|
|
1802
|
-
$this$replyWith.
|
|
1873
|
+
$this$replyWith.c2r(tmp0_elvis_lhs == null ? 'output_channel' + $channel.j22().get(1).toString() : tmp0_elvis_lhs, $channel);
|
|
1803
1874
|
return Unit_instance;
|
|
1804
1875
|
};
|
|
1805
1876
|
}
|
|
1806
1877
|
function IOPrimitiveUtils$replyOpeningStream$lambda_0($alias, $channel) {
|
|
1807
1878
|
return function ($this$replyWith) {
|
|
1808
1879
|
var tmp0_elvis_lhs = $alias;
|
|
1809
|
-
$this$replyWith.
|
|
1880
|
+
$this$replyWith.z2q(tmp0_elvis_lhs == null ? 'input_channel' + $channel.j22().get(1).toString() : tmp0_elvis_lhs, $channel);
|
|
1810
1881
|
return Unit_instance;
|
|
1811
1882
|
};
|
|
1812
1883
|
}
|
|
1813
1884
|
function IOPrimitiveUtils() {
|
|
1814
1885
|
IOPrimitiveUtils_instance = this;
|
|
1815
1886
|
var tmp = this;
|
|
1816
|
-
tmp.
|
|
1887
|
+
tmp.v46_1 = lazy(IOPrimitiveUtils$INPUT_STREAM_TERM_PATTERN$delegate$lambda);
|
|
1817
1888
|
var tmp_0 = this;
|
|
1818
|
-
tmp_0.
|
|
1889
|
+
tmp_0.w46_1 = lazy(IOPrimitiveUtils$OUTPUT_STREAM_TERM_PATTERN$delegate$lambda);
|
|
1819
1890
|
var tmp_1 = this;
|
|
1820
|
-
tmp_1.
|
|
1891
|
+
tmp_1.x46_1 = lazy(IOPrimitiveUtils$PROPERTY_TYPE_PATTERN$delegate$lambda);
|
|
1821
1892
|
var tmp_2 = this;
|
|
1822
|
-
tmp_2.
|
|
1893
|
+
tmp_2.y46_1 = lazy(IOPrimitiveUtils$PROPERTY_REPOSITION_PATTERN$delegate$lambda);
|
|
1823
1894
|
var tmp_3 = this;
|
|
1824
|
-
tmp_3.
|
|
1895
|
+
tmp_3.z46_1 = lazy(IOPrimitiveUtils$PROPERTY_EOF_ACTION_PATTERN$delegate$lambda);
|
|
1825
1896
|
var tmp_4 = this;
|
|
1826
|
-
tmp_4.
|
|
1897
|
+
tmp_4.a47_1 = lazy(IOPrimitiveUtils$PROPERTY_ALIAS_PATTERN$delegate$lambda);
|
|
1827
1898
|
var tmp_5 = this;
|
|
1828
|
-
tmp_5.
|
|
1899
|
+
tmp_5.b47_1 = lazy(IOPrimitiveUtils$PROPERTY_INPUT$delegate$lambda);
|
|
1829
1900
|
var tmp_6 = this;
|
|
1830
|
-
tmp_6.
|
|
1901
|
+
tmp_6.c47_1 = lazy(IOPrimitiveUtils$PROPERTY_OUTPUT$delegate$lambda);
|
|
1831
1902
|
var tmp_7 = this;
|
|
1832
|
-
tmp_7.
|
|
1903
|
+
tmp_7.d47_1 = lazy(IOPrimitiveUtils$PROPERTY_TYPE_TEXT$delegate$lambda);
|
|
1833
1904
|
var tmp_8 = this;
|
|
1834
|
-
tmp_8.
|
|
1905
|
+
tmp_8.e47_1 = lazy(IOPrimitiveUtils$PROPERTY_REPOSITION_FALSE$delegate$lambda);
|
|
1835
1906
|
var tmp_9 = this;
|
|
1836
|
-
tmp_9.
|
|
1907
|
+
tmp_9.f47_1 = lazy(IOPrimitiveUtils$PROPERTY_EOF_ACTION_EOF_CODE$delegate$lambda);
|
|
1837
1908
|
var tmp_10 = this;
|
|
1838
|
-
tmp_10.
|
|
1909
|
+
tmp_10.g47_1 = lazy(IOPrimitiveUtils$OPTION_QUOTED_PATTERN$delegate$lambda);
|
|
1839
1910
|
var tmp_11 = this;
|
|
1840
|
-
tmp_11.
|
|
1911
|
+
tmp_11.h47_1 = lazy(IOPrimitiveUtils$OPTION_NUMBER_VARS_PATTERN$delegate$lambda);
|
|
1841
1912
|
var tmp_12 = this;
|
|
1842
|
-
tmp_12.
|
|
1913
|
+
tmp_12.i47_1 = lazy(IOPrimitiveUtils$OPTION_IGNORE_OPS_PATTERN$delegate$lambda);
|
|
1843
1914
|
var tmp_13 = this;
|
|
1844
|
-
tmp_13.
|
|
1915
|
+
tmp_13.j47_1 = lazy(IOPrimitiveUtils$INFO_VARIABLES_PATTERN$delegate$lambda);
|
|
1845
1916
|
var tmp_14 = this;
|
|
1846
|
-
tmp_14.
|
|
1917
|
+
tmp_14.k47_1 = lazy(IOPrimitiveUtils$INFO_VARIABLE_NAMES_PATTERN$delegate$lambda);
|
|
1847
1918
|
var tmp_15 = this;
|
|
1848
|
-
tmp_15.
|
|
1919
|
+
tmp_15.l47_1 = lazy(IOPrimitiveUtils$INFO_SINGLETONS_PATTERN$delegate$lambda);
|
|
1849
1920
|
}
|
|
1850
|
-
protoOf(IOPrimitiveUtils).
|
|
1921
|
+
protoOf(IOPrimitiveUtils).s49 = function (_this__u8e3s4, channel) {
|
|
1851
1922
|
return sequence(IOPrimitiveUtils$propertiesOf$slambda_0(channel, _this__u8e3s4, null));
|
|
1852
1923
|
};
|
|
1853
|
-
protoOf(IOPrimitiveUtils).
|
|
1924
|
+
protoOf(IOPrimitiveUtils).m47 = function (_this__u8e3s4) {
|
|
1854
1925
|
// Inline function 'kotlin.let' call
|
|
1855
|
-
var it = _this__u8e3s4.context.
|
|
1856
|
-
var tmp0_elvis_lhs = it.
|
|
1857
|
-
return tmp0_elvis_lhs == null ? it.
|
|
1926
|
+
var it = _this__u8e3s4.context.c1y();
|
|
1927
|
+
var tmp0_elvis_lhs = it.pr();
|
|
1928
|
+
return tmp0_elvis_lhs == null ? it.m1y() : tmp0_elvis_lhs;
|
|
1858
1929
|
};
|
|
1859
|
-
protoOf(IOPrimitiveUtils).
|
|
1930
|
+
protoOf(IOPrimitiveUtils).t49 = function (_this__u8e3s4) {
|
|
1860
1931
|
// Inline function 'kotlin.let' call
|
|
1861
|
-
var it = _this__u8e3s4.context.
|
|
1862
|
-
var tmp0_elvis_lhs = it.
|
|
1863
|
-
return tmp0_elvis_lhs == null ? it.
|
|
1932
|
+
var it = _this__u8e3s4.context.d1y();
|
|
1933
|
+
var tmp0_elvis_lhs = it.pr();
|
|
1934
|
+
return tmp0_elvis_lhs == null ? it.n1y() : tmp0_elvis_lhs;
|
|
1864
1935
|
};
|
|
1865
|
-
protoOf(IOPrimitiveUtils).
|
|
1936
|
+
protoOf(IOPrimitiveUtils).q49 = function (_this__u8e3s4, term) {
|
|
1866
1937
|
var tmp;
|
|
1867
1938
|
var tmp0 = _get_validPropertiesPattern__7s1t06(this);
|
|
1868
1939
|
var tmp$ret$0;
|
|
1869
1940
|
$l$block: {
|
|
1870
1941
|
// Inline function 'kotlin.sequences.any' call
|
|
1871
|
-
var _iterator__ex2g4s = tmp0.
|
|
1872
|
-
while (_iterator__ex2g4s.
|
|
1873
|
-
var element = _iterator__ex2g4s.
|
|
1874
|
-
if (Companion_getInstance_1().
|
|
1942
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
1943
|
+
while (_iterator__ex2g4s.q()) {
|
|
1944
|
+
var element = _iterator__ex2g4s.r();
|
|
1945
|
+
if (Companion_getInstance_1().k2l(_this__u8e3s4, term, element)) {
|
|
1875
1946
|
tmp$ret$0 = true;
|
|
1876
1947
|
break $l$block;
|
|
1877
1948
|
}
|
|
@@ -1885,16 +1956,16 @@
|
|
|
1885
1956
|
}
|
|
1886
1957
|
return tmp;
|
|
1887
1958
|
};
|
|
1888
|
-
protoOf(IOPrimitiveUtils).
|
|
1959
|
+
protoOf(IOPrimitiveUtils).r49 = function (_this__u8e3s4, term) {
|
|
1889
1960
|
var tmp;
|
|
1890
1961
|
var tmp0 = _get_supportedPropertiesPattern__x8u7bw(this);
|
|
1891
1962
|
var tmp$ret$0;
|
|
1892
1963
|
$l$block: {
|
|
1893
1964
|
// Inline function 'kotlin.sequences.any' call
|
|
1894
|
-
var _iterator__ex2g4s = tmp0.
|
|
1895
|
-
while (_iterator__ex2g4s.
|
|
1896
|
-
var element = _iterator__ex2g4s.
|
|
1897
|
-
if (Companion_getInstance_1().
|
|
1965
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
1966
|
+
while (_iterator__ex2g4s.q()) {
|
|
1967
|
+
var element = _iterator__ex2g4s.r();
|
|
1968
|
+
if (Companion_getInstance_1().k2l(_this__u8e3s4, term, element)) {
|
|
1898
1969
|
tmp$ret$0 = true;
|
|
1899
1970
|
break $l$block;
|
|
1900
1971
|
}
|
|
@@ -1908,16 +1979,16 @@
|
|
|
1908
1979
|
}
|
|
1909
1980
|
return tmp;
|
|
1910
1981
|
};
|
|
1911
|
-
protoOf(IOPrimitiveUtils).
|
|
1982
|
+
protoOf(IOPrimitiveUtils).u49 = function (_this__u8e3s4, term) {
|
|
1912
1983
|
var tmp;
|
|
1913
1984
|
var tmp0 = _get_validOptionsPattern__akhsd9(this);
|
|
1914
1985
|
var tmp$ret$0;
|
|
1915
1986
|
$l$block: {
|
|
1916
1987
|
// Inline function 'kotlin.sequences.any' call
|
|
1917
|
-
var _iterator__ex2g4s = tmp0.
|
|
1918
|
-
while (_iterator__ex2g4s.
|
|
1919
|
-
var element = _iterator__ex2g4s.
|
|
1920
|
-
if (Companion_getInstance_1().
|
|
1988
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
1989
|
+
while (_iterator__ex2g4s.q()) {
|
|
1990
|
+
var element = _iterator__ex2g4s.r();
|
|
1991
|
+
if (Companion_getInstance_1().k2l(_this__u8e3s4, term, element)) {
|
|
1921
1992
|
tmp$ret$0 = true;
|
|
1922
1993
|
break $l$block;
|
|
1923
1994
|
}
|
|
@@ -1931,16 +2002,16 @@
|
|
|
1931
2002
|
}
|
|
1932
2003
|
return tmp;
|
|
1933
2004
|
};
|
|
1934
|
-
protoOf(IOPrimitiveUtils).
|
|
2005
|
+
protoOf(IOPrimitiveUtils).v49 = function (_this__u8e3s4, term) {
|
|
1935
2006
|
var tmp;
|
|
1936
2007
|
var tmp0 = _get_validInfoPattern__dtwgth(this);
|
|
1937
2008
|
var tmp$ret$0;
|
|
1938
2009
|
$l$block: {
|
|
1939
2010
|
// Inline function 'kotlin.sequences.any' call
|
|
1940
|
-
var _iterator__ex2g4s = tmp0.
|
|
1941
|
-
while (_iterator__ex2g4s.
|
|
1942
|
-
var element = _iterator__ex2g4s.
|
|
1943
|
-
if (Companion_getInstance_1().
|
|
2011
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
2012
|
+
while (_iterator__ex2g4s.q()) {
|
|
2013
|
+
var element = _iterator__ex2g4s.r();
|
|
2014
|
+
if (Companion_getInstance_1().k2l(_this__u8e3s4, term, element)) {
|
|
1944
2015
|
tmp$ret$0 = true;
|
|
1945
2016
|
break $l$block;
|
|
1946
2017
|
}
|
|
@@ -1954,57 +2025,57 @@
|
|
|
1954
2025
|
}
|
|
1955
2026
|
return tmp;
|
|
1956
2027
|
};
|
|
1957
|
-
protoOf(IOPrimitiveUtils).
|
|
1958
|
-
Companion_getInstance_1().
|
|
1959
|
-
var tmp = _this__u8e3s4.arguments.
|
|
2028
|
+
protoOf(IOPrimitiveUtils).w49 = function (_this__u8e3s4, index) {
|
|
2029
|
+
Companion_getInstance_1().d2m(_this__u8e3s4, index);
|
|
2030
|
+
var tmp = _this__u8e3s4.arguments.u(index);
|
|
1960
2031
|
var list = isInterface(tmp, List) ? tmp : THROW_CCE();
|
|
1961
|
-
var _iterator__ex2g4s = list.
|
|
1962
|
-
while (_iterator__ex2g4s.
|
|
1963
|
-
var term = _iterator__ex2g4s.
|
|
1964
|
-
this.
|
|
2032
|
+
var _iterator__ex2g4s = list.bv().n();
|
|
2033
|
+
while (_iterator__ex2g4s.q()) {
|
|
2034
|
+
var term = _iterator__ex2g4s.r();
|
|
2035
|
+
this.u49(_this__u8e3s4, term);
|
|
1965
2036
|
}
|
|
1966
2037
|
return _this__u8e3s4;
|
|
1967
2038
|
};
|
|
1968
|
-
protoOf(IOPrimitiveUtils).
|
|
1969
|
-
var list = _this__u8e3s4.arguments.
|
|
2039
|
+
protoOf(IOPrimitiveUtils).x49 = function (_this__u8e3s4, index) {
|
|
2040
|
+
var list = _this__u8e3s4.arguments.u(index);
|
|
1970
2041
|
var tmp;
|
|
1971
2042
|
if (isInterface(list, Var)) {
|
|
1972
2043
|
tmp = null;
|
|
1973
2044
|
} else {
|
|
1974
|
-
Companion_getInstance_1().
|
|
2045
|
+
Companion_getInstance_1().d2m(_this__u8e3s4, index);
|
|
1975
2046
|
var listOfInfo = (isInterface(list, List) ? list : THROW_CCE()).toList();
|
|
1976
|
-
var _iterator__ex2g4s = listOfInfo.
|
|
1977
|
-
while (_iterator__ex2g4s.
|
|
1978
|
-
var term = _iterator__ex2g4s.
|
|
1979
|
-
this.
|
|
2047
|
+
var _iterator__ex2g4s = listOfInfo.n();
|
|
2048
|
+
while (_iterator__ex2g4s.q()) {
|
|
2049
|
+
var term = _iterator__ex2g4s.r();
|
|
2050
|
+
this.v49(_this__u8e3s4, term);
|
|
1980
2051
|
}
|
|
1981
2052
|
tmp = listOfInfo;
|
|
1982
2053
|
}
|
|
1983
2054
|
return tmp;
|
|
1984
2055
|
};
|
|
1985
|
-
protoOf(IOPrimitiveUtils).
|
|
1986
|
-
this.
|
|
1987
|
-
var tmp = _this__u8e3s4.arguments.
|
|
2056
|
+
protoOf(IOPrimitiveUtils).y49 = function (_this__u8e3s4, index) {
|
|
2057
|
+
this.w49(_this__u8e3s4, index);
|
|
2058
|
+
var tmp = _this__u8e3s4.arguments.u(index);
|
|
1988
2059
|
var optionList = (isInterface(tmp, List) ? tmp : THROW_CCE()).toList();
|
|
1989
2060
|
var tmp_0;
|
|
1990
|
-
if (getOption(this, optionList, _this__u8e3s4.context.
|
|
2061
|
+
if (getOption(this, optionList, _this__u8e3s4.context.z1n(), _get_OPTION_QUOTED_PATTERN__n2ri42(this))) {
|
|
1991
2062
|
tmp_0 = FuncFormat_QUOTED_IF_NECESSARY_getInstance();
|
|
1992
2063
|
} else {
|
|
1993
2064
|
tmp_0 = FuncFormat_LITERAL_getInstance();
|
|
1994
2065
|
}
|
|
1995
2066
|
var funcFormat = tmp_0;
|
|
1996
2067
|
var tmp_1;
|
|
1997
|
-
if (getOption(this, optionList, _this__u8e3s4.context.
|
|
2068
|
+
if (getOption(this, optionList, _this__u8e3s4.context.z1n(), _get_OPTION_IGNORE_OPS_PATTERN__cpse4v(this))) {
|
|
1998
2069
|
tmp_1 = OpFormat_IGNORE_OPERATORS_getInstance();
|
|
1999
2070
|
} else {
|
|
2000
2071
|
tmp_1 = OpFormat_EXPRESSIONS_getInstance();
|
|
2001
2072
|
}
|
|
2002
2073
|
var opFormat = tmp_1;
|
|
2003
|
-
var numberVars = getOption(this, optionList, _this__u8e3s4.context.
|
|
2004
|
-
return Companion_instance_7.of(VarFormat_UNDERSCORE_getInstance(), opFormat, funcFormat, numberVars, _this__u8e3s4.context.
|
|
2074
|
+
var numberVars = getOption(this, optionList, _this__u8e3s4.context.z1n(), _get_OPTION_NUMBER_VARS_PATTERN__p98ste(this));
|
|
2075
|
+
return Companion_instance_7.of(VarFormat_UNDERSCORE_getInstance(), opFormat, funcFormat, numberVars, _this__u8e3s4.context.h1y());
|
|
2005
2076
|
};
|
|
2006
|
-
protoOf(IOPrimitiveUtils).
|
|
2007
|
-
var term = _this__u8e3s4.arguments.
|
|
2077
|
+
protoOf(IOPrimitiveUtils).z49 = function (_this__u8e3s4, index) {
|
|
2078
|
+
var term = _this__u8e3s4.arguments.u(index);
|
|
2008
2079
|
if (isInterface(term, Var))
|
|
2009
2080
|
return _this__u8e3s4;
|
|
2010
2081
|
else {
|
|
@@ -2013,10 +2084,10 @@
|
|
|
2013
2084
|
var tmp$ret$0;
|
|
2014
2085
|
$l$block: {
|
|
2015
2086
|
// Inline function 'kotlin.sequences.any' call
|
|
2016
|
-
var _iterator__ex2g4s = tmp0.
|
|
2017
|
-
while (_iterator__ex2g4s.
|
|
2018
|
-
var element = _iterator__ex2g4s.
|
|
2019
|
-
if (Companion_getInstance_1().
|
|
2087
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
2088
|
+
while (_iterator__ex2g4s.q()) {
|
|
2089
|
+
var element = _iterator__ex2g4s.r();
|
|
2090
|
+
if (Companion_getInstance_1().k2l(_this__u8e3s4, term, element)) {
|
|
2020
2091
|
tmp$ret$0 = true;
|
|
2021
2092
|
break $l$block;
|
|
2022
2093
|
}
|
|
@@ -2028,17 +2099,17 @@
|
|
|
2028
2099
|
}
|
|
2029
2100
|
}
|
|
2030
2101
|
}
|
|
2031
|
-
throw Companion_instance_6.
|
|
2102
|
+
throw Companion_instance_6.q28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_PROPERTY_getInstance(), term, index);
|
|
2032
2103
|
};
|
|
2033
|
-
protoOf(IOPrimitiveUtils).
|
|
2034
|
-
Companion_getInstance_1().
|
|
2035
|
-
var term = _this__u8e3s4.arguments.
|
|
2036
|
-
var error = Companion_instance_6.
|
|
2104
|
+
protoOf(IOPrimitiveUtils).a4a = function (_this__u8e3s4, index) {
|
|
2105
|
+
Companion_getInstance_1().p2l(_this__u8e3s4, index);
|
|
2106
|
+
var term = _this__u8e3s4.arguments.u(index);
|
|
2107
|
+
var error = Companion_instance_6.q28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_SOURCE_SINK_getInstance(), term, index);
|
|
2037
2108
|
if (!isInterface(term, Atom)) {
|
|
2038
2109
|
throw error;
|
|
2039
2110
|
}
|
|
2040
2111
|
try {
|
|
2041
|
-
return Companion_instance_15.of(term.
|
|
2112
|
+
return Companion_instance_15.of(term.i2());
|
|
2042
2113
|
} catch ($p) {
|
|
2043
2114
|
if ($p instanceof InvalidUrlException) {
|
|
2044
2115
|
var _unused_var__etf5q3 = $p;
|
|
@@ -2048,27 +2119,27 @@
|
|
|
2048
2119
|
}
|
|
2049
2120
|
}
|
|
2050
2121
|
};
|
|
2051
|
-
protoOf(IOPrimitiveUtils).
|
|
2052
|
-
Companion_getInstance_1().
|
|
2053
|
-
Companion_getInstance_1().
|
|
2054
|
-
var tmp = _this__u8e3s4.arguments.
|
|
2122
|
+
protoOf(IOPrimitiveUtils).b4a = function (_this__u8e3s4, index) {
|
|
2123
|
+
Companion_getInstance_1().p2l(_this__u8e3s4, index);
|
|
2124
|
+
Companion_getInstance_1().y2l(_this__u8e3s4, index);
|
|
2125
|
+
var tmp = _this__u8e3s4.arguments.u(index);
|
|
2055
2126
|
var term = isInterface(tmp, Atom) ? tmp : THROW_CCE();
|
|
2056
|
-
if (!Companion_getInstance_8().
|
|
2057
|
-
throw Companion_instance_6.
|
|
2127
|
+
if (!Companion_getInstance_8().p45_1.s(term)) {
|
|
2128
|
+
throw Companion_instance_6.q28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IO_MODE_getInstance(), term, index);
|
|
2058
2129
|
}
|
|
2059
2130
|
// Inline function 'kotlin.text.uppercase' call
|
|
2060
2131
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2061
|
-
var tmp$ret$0 = term.
|
|
2132
|
+
var tmp$ret$0 = term.i2().toUpperCase();
|
|
2062
2133
|
return valueOf(tmp$ret$0);
|
|
2063
2134
|
};
|
|
2064
|
-
protoOf(IOPrimitiveUtils).
|
|
2065
|
-
var term = _this__u8e3s4.arguments.
|
|
2135
|
+
protoOf(IOPrimitiveUtils).h48 = function (_this__u8e3s4, index) {
|
|
2136
|
+
var term = _this__u8e3s4.arguments.u(index);
|
|
2066
2137
|
if (isInterface(term, Var))
|
|
2067
2138
|
return null;
|
|
2068
2139
|
else {
|
|
2069
2140
|
if (isInterface(term, Struct))
|
|
2070
|
-
if (Companion_getInstance_1().
|
|
2071
|
-
var tmp1_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2141
|
+
if (Companion_getInstance_1().k2l(_this__u8e3s4, term, _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(this))) {
|
|
2142
|
+
var tmp1_elvis_lhs = firstOrNull(_this__u8e3s4.context.d1y().findByTerm(term));
|
|
2072
2143
|
var tmp;
|
|
2073
2144
|
if (tmp1_elvis_lhs == null) {
|
|
2074
2145
|
throw Companion_instance_8.forStream(_this__u8e3s4.context, term);
|
|
@@ -2076,8 +2147,8 @@
|
|
|
2076
2147
|
tmp = tmp1_elvis_lhs;
|
|
2077
2148
|
}
|
|
2078
2149
|
return tmp;
|
|
2079
|
-
} else if (Companion_getInstance_1().
|
|
2080
|
-
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2150
|
+
} else if (Companion_getInstance_1().k2l(_this__u8e3s4, term, _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(this))) {
|
|
2151
|
+
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.c1y().findByTerm(term));
|
|
2081
2152
|
var tmp_0;
|
|
2082
2153
|
if (tmp2_elvis_lhs == null) {
|
|
2083
2154
|
throw Companion_instance_8.forStream(_this__u8e3s4.context, term);
|
|
@@ -2087,43 +2158,43 @@
|
|
|
2087
2158
|
return tmp_0;
|
|
2088
2159
|
}
|
|
2089
2160
|
}
|
|
2090
|
-
throw Companion_instance_6.
|
|
2161
|
+
throw Companion_instance_6.q28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_OR_ALIAS_getInstance(), term, index);
|
|
2091
2162
|
};
|
|
2092
|
-
protoOf(IOPrimitiveUtils).
|
|
2093
|
-
var arg = _this__u8e3s4.arguments.
|
|
2163
|
+
protoOf(IOPrimitiveUtils).t48 = function (_this__u8e3s4, index) {
|
|
2164
|
+
var arg = _this__u8e3s4.arguments.u(index);
|
|
2094
2165
|
var tmp;
|
|
2095
2166
|
if (isInterface(arg, Var)) {
|
|
2096
2167
|
tmp = _this__u8e3s4;
|
|
2097
2168
|
} else {
|
|
2098
2169
|
if (isInterface(arg, Atom)) {
|
|
2099
2170
|
var tmp_0;
|
|
2100
|
-
if (arg.
|
|
2171
|
+
if (arg.i2() === 'end_of_file') {
|
|
2101
2172
|
tmp_0 = _this__u8e3s4;
|
|
2102
|
-
} else if (arg.
|
|
2173
|
+
} else if (arg.i2().length === 1) {
|
|
2103
2174
|
tmp_0 = _this__u8e3s4;
|
|
2104
2175
|
} else {
|
|
2105
|
-
throw Companion_instance_3.
|
|
2176
|
+
throw Companion_instance_3.l2b(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IN_CHARACTER_getInstance(), arg, index);
|
|
2106
2177
|
}
|
|
2107
2178
|
tmp = tmp_0;
|
|
2108
2179
|
} else {
|
|
2109
|
-
throw Companion_instance_3.
|
|
2180
|
+
throw Companion_instance_3.l2b(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IN_CHARACTER_getInstance(), arg, index);
|
|
2110
2181
|
}
|
|
2111
2182
|
}
|
|
2112
2183
|
return tmp;
|
|
2113
2184
|
};
|
|
2114
|
-
protoOf(IOPrimitiveUtils).
|
|
2115
|
-
var term = _this__u8e3s4.arguments.
|
|
2185
|
+
protoOf(IOPrimitiveUtils).z48 = function (_this__u8e3s4, index) {
|
|
2186
|
+
var term = _this__u8e3s4.arguments.u(index);
|
|
2116
2187
|
var tmp;
|
|
2117
2188
|
if (isInterface(term, Var)) {
|
|
2118
2189
|
tmp = _this__u8e3s4;
|
|
2119
2190
|
} else {
|
|
2120
2191
|
if (!isInterface(term, Integer)) {
|
|
2121
|
-
tmp = Companion_getInstance_1().
|
|
2192
|
+
tmp = Companion_getInstance_1().c2m(_this__u8e3s4, index);
|
|
2122
2193
|
} else {
|
|
2123
|
-
if (term.equals(Companion_getInstance_6().
|
|
2194
|
+
if (term.equals(Companion_getInstance_6().m11_1)) {
|
|
2124
2195
|
tmp = _this__u8e3s4;
|
|
2125
2196
|
} else {
|
|
2126
|
-
if (Companion_getInstance_1().
|
|
2197
|
+
if (Companion_getInstance_1().g2m(term)) {
|
|
2127
2198
|
throw Companion_instance_9.of(_this__u8e3s4.context, _this__u8e3s4.signature, Limit_CHARACTER_CODE_getInstance());
|
|
2128
2199
|
} else {
|
|
2129
2200
|
tmp = _this__u8e3s4;
|
|
@@ -2133,24 +2204,24 @@
|
|
|
2133
2204
|
}
|
|
2134
2205
|
return tmp;
|
|
2135
2206
|
};
|
|
2136
|
-
protoOf(IOPrimitiveUtils).
|
|
2137
|
-
Companion_getInstance_1().
|
|
2138
|
-
Companion_getInstance_1().
|
|
2139
|
-
var tmp = _this__u8e3s4.arguments.
|
|
2207
|
+
protoOf(IOPrimitiveUtils).v47 = function (_this__u8e3s4, index) {
|
|
2208
|
+
Companion_getInstance_1().p2l(_this__u8e3s4, index);
|
|
2209
|
+
Companion_getInstance_1().t2l(_this__u8e3s4, index);
|
|
2210
|
+
var tmp = _this__u8e3s4.arguments.u(index);
|
|
2140
2211
|
var term = isInterface(tmp, Struct) ? tmp : THROW_CCE();
|
|
2141
2212
|
var tmp_0;
|
|
2142
2213
|
if (isInterface(term, Atom)) {
|
|
2143
|
-
var tmp0 = sequenceOf([_this__u8e3s4.context.
|
|
2214
|
+
var tmp0 = sequenceOf([_this__u8e3s4.context.c1y(), _this__u8e3s4.context.d1y()]);
|
|
2144
2215
|
var tmp$ret$0;
|
|
2145
2216
|
$l$block: {
|
|
2146
2217
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2147
|
-
var _iterator__ex2g4s = tmp0.
|
|
2148
|
-
while (_iterator__ex2g4s.
|
|
2149
|
-
var element = _iterator__ex2g4s.
|
|
2218
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
2219
|
+
while (_iterator__ex2g4s.q()) {
|
|
2220
|
+
var element = _iterator__ex2g4s.r();
|
|
2150
2221
|
// Inline function 'kotlin.collections.contains' call
|
|
2151
2222
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2152
|
-
var key = term.
|
|
2153
|
-
if ((isInterface(element, KtMap) ? element : THROW_CCE()).
|
|
2223
|
+
var key = term.i2();
|
|
2224
|
+
if ((isInterface(element, KtMap) ? element : THROW_CCE()).j2(key)) {
|
|
2154
2225
|
tmp$ret$0 = element;
|
|
2155
2226
|
break $l$block;
|
|
2156
2227
|
}
|
|
@@ -2158,7 +2229,7 @@
|
|
|
2158
2229
|
tmp$ret$0 = null;
|
|
2159
2230
|
}
|
|
2160
2231
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
2161
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2232
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l2(term.i2());
|
|
2162
2233
|
var tmp_1;
|
|
2163
2234
|
if (tmp1_elvis_lhs == null) {
|
|
2164
2235
|
throw Companion_instance_8.forSourceSink(_this__u8e3s4.context, term);
|
|
@@ -2167,8 +2238,8 @@
|
|
|
2167
2238
|
}
|
|
2168
2239
|
tmp_0 = tmp_1;
|
|
2169
2240
|
} else {
|
|
2170
|
-
if (Companion_getInstance_1().
|
|
2171
|
-
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2241
|
+
if (Companion_getInstance_1().k2l(_this__u8e3s4, term, _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(this))) {
|
|
2242
|
+
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.d1y().findByTerm(term));
|
|
2172
2243
|
var tmp_2;
|
|
2173
2244
|
if (tmp2_elvis_lhs == null) {
|
|
2174
2245
|
throw Companion_instance_8.forStream(_this__u8e3s4.context, term);
|
|
@@ -2177,8 +2248,8 @@
|
|
|
2177
2248
|
}
|
|
2178
2249
|
tmp_0 = tmp_2;
|
|
2179
2250
|
} else {
|
|
2180
|
-
if (Companion_getInstance_1().
|
|
2181
|
-
var tmp3_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2251
|
+
if (Companion_getInstance_1().k2l(_this__u8e3s4, term, _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(this))) {
|
|
2252
|
+
var tmp3_elvis_lhs = firstOrNull(_this__u8e3s4.context.c1y().findByTerm(term));
|
|
2182
2253
|
var tmp_3;
|
|
2183
2254
|
if (tmp3_elvis_lhs == null) {
|
|
2184
2255
|
throw Companion_instance_8.forStream(_this__u8e3s4.context, term);
|
|
@@ -2187,33 +2258,33 @@
|
|
|
2187
2258
|
}
|
|
2188
2259
|
tmp_0 = tmp_3;
|
|
2189
2260
|
} else {
|
|
2190
|
-
throw Companion_instance_6.
|
|
2261
|
+
throw Companion_instance_6.q28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_OR_ALIAS_getInstance(), term, index);
|
|
2191
2262
|
}
|
|
2192
2263
|
}
|
|
2193
2264
|
}
|
|
2194
2265
|
return tmp_0;
|
|
2195
2266
|
};
|
|
2196
|
-
protoOf(IOPrimitiveUtils).
|
|
2197
|
-
var channel = this.
|
|
2267
|
+
protoOf(IOPrimitiveUtils).q47 = function (_this__u8e3s4, index) {
|
|
2268
|
+
var channel = this.v47(_this__u8e3s4, index);
|
|
2198
2269
|
var tmp;
|
|
2199
2270
|
if (isInterface(channel, InputChannel)) {
|
|
2200
2271
|
tmp = channel;
|
|
2201
2272
|
} else {
|
|
2202
|
-
throw Companion_instance_6.
|
|
2273
|
+
throw Companion_instance_6.q28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_TYPE_getInstance(), _this__u8e3s4.arguments.u(index), index);
|
|
2203
2274
|
}
|
|
2204
2275
|
return tmp;
|
|
2205
2276
|
};
|
|
2206
|
-
protoOf(IOPrimitiveUtils).
|
|
2207
|
-
var channel = this.
|
|
2277
|
+
protoOf(IOPrimitiveUtils).m48 = function (_this__u8e3s4, index) {
|
|
2278
|
+
var channel = this.v47(_this__u8e3s4, index);
|
|
2208
2279
|
var tmp;
|
|
2209
2280
|
if (isInterface(channel, OutputChannel)) {
|
|
2210
2281
|
tmp = channel;
|
|
2211
2282
|
} else {
|
|
2212
|
-
throw Companion_instance_6.
|
|
2283
|
+
throw Companion_instance_6.q28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_TYPE_getInstance(), _this__u8e3s4.arguments.u(index), index);
|
|
2213
2284
|
}
|
|
2214
2285
|
return tmp;
|
|
2215
2286
|
};
|
|
2216
|
-
protoOf(IOPrimitiveUtils).
|
|
2287
|
+
protoOf(IOPrimitiveUtils).c4a = function (_this__u8e3s4, channel, term, formatter) {
|
|
2217
2288
|
var tmp;
|
|
2218
2289
|
try {
|
|
2219
2290
|
channel.write(format(term, formatter));
|
|
@@ -2230,10 +2301,10 @@
|
|
|
2230
2301
|
}
|
|
2231
2302
|
return tmp;
|
|
2232
2303
|
};
|
|
2233
|
-
protoOf(IOPrimitiveUtils).
|
|
2304
|
+
protoOf(IOPrimitiveUtils).d4a = function (_this__u8e3s4, channel, arg) {
|
|
2234
2305
|
var tmp;
|
|
2235
2306
|
try {
|
|
2236
|
-
channel.write(toString_0(arg.
|
|
2307
|
+
channel.write(toString_0(arg.f11().toChar()));
|
|
2237
2308
|
tmp = _this__u8e3s4.replySuccess(VOID, VOID, []);
|
|
2238
2309
|
} catch ($p) {
|
|
2239
2310
|
var tmp_0;
|
|
@@ -2247,10 +2318,10 @@
|
|
|
2247
2318
|
}
|
|
2248
2319
|
return tmp;
|
|
2249
2320
|
};
|
|
2250
|
-
protoOf(IOPrimitiveUtils).
|
|
2321
|
+
protoOf(IOPrimitiveUtils).e4a = function (_this__u8e3s4, channel, arg) {
|
|
2251
2322
|
var tmp;
|
|
2252
2323
|
try {
|
|
2253
|
-
channel.write(arg.
|
|
2324
|
+
channel.write(arg.i2());
|
|
2254
2325
|
tmp = _this__u8e3s4.replySuccess(VOID, VOID, []);
|
|
2255
2326
|
} catch ($p) {
|
|
2256
2327
|
var tmp_0;
|
|
@@ -2264,7 +2335,7 @@
|
|
|
2264
2335
|
}
|
|
2265
2336
|
return tmp;
|
|
2266
2337
|
};
|
|
2267
|
-
protoOf(IOPrimitiveUtils).
|
|
2338
|
+
protoOf(IOPrimitiveUtils).f4a = function (_this__u8e3s4, channel, arg) {
|
|
2268
2339
|
var tmp;
|
|
2269
2340
|
try {
|
|
2270
2341
|
var tmp0_safe_receiver = channel.peek();
|
|
@@ -2279,7 +2350,7 @@
|
|
|
2279
2350
|
}
|
|
2280
2351
|
var tmp2_elvis_lhs = tmp_0;
|
|
2281
2352
|
var code = tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2282
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2353
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().j2l(_this__u8e3s4, arg, Companion_getInstance_6().ofInt(code)), VOID, []);
|
|
2283
2354
|
} catch ($p) {
|
|
2284
2355
|
var tmp_2;
|
|
2285
2356
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2292,12 +2363,12 @@
|
|
|
2292
2363
|
}
|
|
2293
2364
|
return tmp;
|
|
2294
2365
|
};
|
|
2295
|
-
protoOf(IOPrimitiveUtils).
|
|
2366
|
+
protoOf(IOPrimitiveUtils).g4a = function (_this__u8e3s4, channel, arg) {
|
|
2296
2367
|
var tmp;
|
|
2297
2368
|
try {
|
|
2298
2369
|
var tmp0_elvis_lhs = channel.peek();
|
|
2299
2370
|
var char = tmp0_elvis_lhs == null ? 'end_of_file' : tmp0_elvis_lhs;
|
|
2300
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2371
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().j2l(_this__u8e3s4, arg, Companion_getInstance_0().of(char)), VOID, []);
|
|
2301
2372
|
} catch ($p) {
|
|
2302
2373
|
var tmp_0;
|
|
2303
2374
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2310,7 +2381,7 @@
|
|
|
2310
2381
|
}
|
|
2311
2382
|
return tmp;
|
|
2312
2383
|
};
|
|
2313
|
-
protoOf(IOPrimitiveUtils).
|
|
2384
|
+
protoOf(IOPrimitiveUtils).a49 = function (_this__u8e3s4, channel, arg) {
|
|
2314
2385
|
var tmp;
|
|
2315
2386
|
try {
|
|
2316
2387
|
var tmp0_safe_receiver = channel.read();
|
|
@@ -2325,7 +2396,7 @@
|
|
|
2325
2396
|
}
|
|
2326
2397
|
var tmp2_elvis_lhs = tmp_0;
|
|
2327
2398
|
var code = tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2328
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2399
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().j2l(_this__u8e3s4, arg, Companion_getInstance_6().ofInt(code)), VOID, []);
|
|
2329
2400
|
} catch ($p) {
|
|
2330
2401
|
var tmp_2;
|
|
2331
2402
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2338,12 +2409,12 @@
|
|
|
2338
2409
|
}
|
|
2339
2410
|
return tmp;
|
|
2340
2411
|
};
|
|
2341
|
-
protoOf(IOPrimitiveUtils).
|
|
2412
|
+
protoOf(IOPrimitiveUtils).u48 = function (_this__u8e3s4, channel, arg) {
|
|
2342
2413
|
var tmp;
|
|
2343
2414
|
try {
|
|
2344
2415
|
var tmp0_elvis_lhs = channel.read();
|
|
2345
2416
|
var char = tmp0_elvis_lhs == null ? 'end_of_file' : tmp0_elvis_lhs;
|
|
2346
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2417
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().j2l(_this__u8e3s4, arg, Companion_getInstance_0().of(char)), VOID, []);
|
|
2347
2418
|
} catch ($p) {
|
|
2348
2419
|
var tmp_0;
|
|
2349
2420
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2356,37 +2427,37 @@
|
|
|
2356
2427
|
}
|
|
2357
2428
|
return tmp;
|
|
2358
2429
|
};
|
|
2359
|
-
protoOf(IOPrimitiveUtils).
|
|
2430
|
+
protoOf(IOPrimitiveUtils).h4a = function (_this__u8e3s4, channel, arg, lastIsInfoList) {
|
|
2360
2431
|
try {
|
|
2361
|
-
var termsChannel = asTermChannel(channel, _this__u8e3s4.context.
|
|
2432
|
+
var termsChannel = asTermChannel(channel, _this__u8e3s4.context.h1y());
|
|
2362
2433
|
var tmp;
|
|
2363
2434
|
if (lastIsInfoList) {
|
|
2364
|
-
tmp = this.
|
|
2435
|
+
tmp = this.x49(_this__u8e3s4, get_lastIndex(_this__u8e3s4.arguments));
|
|
2365
2436
|
} else {
|
|
2366
2437
|
tmp = emptyList();
|
|
2367
2438
|
}
|
|
2368
2439
|
var infoList = tmp;
|
|
2369
|
-
if (!termsChannel.
|
|
2440
|
+
if (!termsChannel.m22())
|
|
2370
2441
|
return _this__u8e3s4.replyFail(VOID, []);
|
|
2371
2442
|
var read = termsChannel.read();
|
|
2372
2443
|
var tmp_0;
|
|
2373
2444
|
if (read == null) {
|
|
2374
2445
|
tmp_0 = _this__u8e3s4.replyFail(VOID, []);
|
|
2375
2446
|
} else {
|
|
2376
|
-
var variables_0 = variables(this, toList_0(read.
|
|
2377
|
-
var variableNames_0 = variableNames(this, toAssignments_0(this, read.
|
|
2447
|
+
var variables_0 = variables(this, toList_0(read.zw()));
|
|
2448
|
+
var variableNames_0 = variableNames(this, toAssignments_0(this, read.zw()));
|
|
2378
2449
|
var singletons_0 = singletons(this, toAssignments(this, _get_singletons__bihqrn(this, read)));
|
|
2379
2450
|
var tmp_1;
|
|
2380
2451
|
if (infoList == null) {
|
|
2381
2452
|
tmp_1 = null;
|
|
2382
2453
|
} else {
|
|
2383
2454
|
// Inline function 'kotlin.let' call
|
|
2384
|
-
var u = _this__u8e3s4.context.
|
|
2455
|
+
var u = _this__u8e3s4.context.z1n();
|
|
2385
2456
|
tmp_1 = getInfo(IOPrimitiveUtils_getInstance(), infoList, u, _get_INFO_SINGLETONS_PATTERN__y21s87(IOPrimitiveUtils_getInstance()), singletons_0).plus(getInfo(IOPrimitiveUtils_getInstance(), infoList, u, _get_INFO_VARIABLES_PATTERN__bhp1h0(IOPrimitiveUtils_getInstance()), variables_0)).plus(getInfo(IOPrimitiveUtils_getInstance(), infoList, u, _get_INFO_VARIABLE_NAMES_PATTERN__j3oaom(IOPrimitiveUtils_getInstance()), variableNames_0));
|
|
2386
2457
|
}
|
|
2387
2458
|
var tmp1_elvis_lhs = tmp_1;
|
|
2388
|
-
var info = tmp1_elvis_lhs == null ? Companion_getInstance_1().
|
|
2389
|
-
tmp_0 = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2459
|
+
var info = tmp1_elvis_lhs == null ? Companion_getInstance_1().j2l(_this__u8e3s4, last(_this__u8e3s4.arguments), Companion_instance_4.of([variables_0, variableNames_0, singletons_0])) : tmp1_elvis_lhs;
|
|
2460
|
+
tmp_0 = _this__u8e3s4.replyWith(Companion_getInstance_1().j2l(_this__u8e3s4, arg, read).plus(info), VOID, []);
|
|
2390
2461
|
}
|
|
2391
2462
|
return tmp_0;
|
|
2392
2463
|
} catch ($p) {
|
|
@@ -2397,7 +2468,7 @@
|
|
|
2397
2468
|
if ($p instanceof ParseException) {
|
|
2398
2469
|
var e_0 = $p;
|
|
2399
2470
|
var tmp_2 = Companion_instance_10;
|
|
2400
|
-
var tmp_3 = channel.
|
|
2471
|
+
var tmp_3 = channel.j22().toString();
|
|
2401
2472
|
var tmp_4 = e_0.line;
|
|
2402
2473
|
var tmp_5 = e_0.column;
|
|
2403
2474
|
var tmp2_elvis_lhs = e_0.message;
|
|
@@ -2408,19 +2479,19 @@
|
|
|
2408
2479
|
}
|
|
2409
2480
|
}
|
|
2410
2481
|
};
|
|
2411
|
-
protoOf(IOPrimitiveUtils).
|
|
2482
|
+
protoOf(IOPrimitiveUtils).i4a = function (_this__u8e3s4, channel, arg, lastIsInfoList, $super) {
|
|
2412
2483
|
lastIsInfoList = lastIsInfoList === VOID ? false : lastIsInfoList;
|
|
2413
|
-
return $super === VOID ? this.
|
|
2484
|
+
return $super === VOID ? this.h4a(_this__u8e3s4, channel, arg, lastIsInfoList) : $super.h4a.call(this, _this__u8e3s4, channel, arg, lastIsInfoList);
|
|
2414
2485
|
};
|
|
2415
|
-
protoOf(IOPrimitiveUtils).
|
|
2416
|
-
var url = this.
|
|
2417
|
-
var mode = this.
|
|
2418
|
-
Companion_getInstance_1().
|
|
2486
|
+
protoOf(IOPrimitiveUtils).j4a = function (_this__u8e3s4, third) {
|
|
2487
|
+
var url = this.a4a(_this__u8e3s4, 0);
|
|
2488
|
+
var mode = this.b4a(_this__u8e3s4, 1);
|
|
2489
|
+
Companion_getInstance_1().w2l(_this__u8e3s4, 2);
|
|
2419
2490
|
var tmp;
|
|
2420
|
-
if (_this__u8e3s4.arguments.
|
|
2421
|
-
Companion_getInstance_1().
|
|
2422
|
-
var tmp_0 = _this__u8e3s4.arguments.
|
|
2423
|
-
var tmp_1 = (isInterface(tmp_0, List) ? tmp_0 : THROW_CCE()).
|
|
2491
|
+
if (_this__u8e3s4.arguments.t() >= 4) {
|
|
2492
|
+
Companion_getInstance_1().d2m(_this__u8e3s4, 3);
|
|
2493
|
+
var tmp_0 = _this__u8e3s4.arguments.u(3);
|
|
2494
|
+
var tmp_1 = (isInterface(tmp_0, List) ? tmp_0 : THROW_CCE()).bv();
|
|
2424
2495
|
var tmp_2 = map(tmp_1, IOPrimitiveUtils$open$lambda(_this__u8e3s4));
|
|
2425
2496
|
tmp = toSet(map(tmp_2, IOPrimitiveUtils$open$lambda_0(_this__u8e3s4)));
|
|
2426
2497
|
} else {
|
|
@@ -2430,10 +2501,10 @@
|
|
|
2430
2501
|
var tmp$ret$0;
|
|
2431
2502
|
$l$block: {
|
|
2432
2503
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2433
|
-
var _iterator__ex2g4s = options.
|
|
2434
|
-
while (_iterator__ex2g4s.
|
|
2435
|
-
var element = _iterator__ex2g4s.
|
|
2436
|
-
if (Companion_getInstance_1().
|
|
2504
|
+
var _iterator__ex2g4s = options.n();
|
|
2505
|
+
while (_iterator__ex2g4s.q()) {
|
|
2506
|
+
var element = _iterator__ex2g4s.r();
|
|
2507
|
+
if (Companion_getInstance_1().k2l(_this__u8e3s4, _get_PROPERTY_ALIAS_PATTERN__wipd2s(IOPrimitiveUtils_getInstance()), element)) {
|
|
2437
2508
|
tmp$ret$0 = element;
|
|
2438
2509
|
break $l$block;
|
|
2439
2510
|
}
|
|
@@ -2443,19 +2514,38 @@
|
|
|
2443
2514
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
2444
2515
|
var alias = tmp0_safe_receiver == null ? null : _get_alias__jw26bj(this, tmp0_safe_receiver);
|
|
2445
2516
|
var tmp_3;
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2517
|
+
try {
|
|
2518
|
+
var tmp_4;
|
|
2519
|
+
switch (mode.p2_1) {
|
|
2520
|
+
case 0:
|
|
2521
|
+
tmp_4 = replyOpeningStream_0(this, _this__u8e3s4, openInputChannel(url), third, alias);
|
|
2522
|
+
break;
|
|
2523
|
+
case 1:
|
|
2524
|
+
tmp_4 = replyOpeningStream(this, _this__u8e3s4, openOutputChannel(url, false), third, alias);
|
|
2525
|
+
break;
|
|
2526
|
+
case 2:
|
|
2527
|
+
tmp_4 = replyOpeningStream(this, _this__u8e3s4, openOutputChannel(url, true), third, alias);
|
|
2528
|
+
break;
|
|
2529
|
+
default:
|
|
2530
|
+
noWhenBranchMatchedException();
|
|
2531
|
+
break;
|
|
2532
|
+
}
|
|
2533
|
+
tmp_3 = tmp_4;
|
|
2534
|
+
} catch ($p) {
|
|
2535
|
+
var tmp_5;
|
|
2536
|
+
if ($p instanceof IOException_0) {
|
|
2537
|
+
var e = $p;
|
|
2538
|
+
var tmp_6;
|
|
2539
|
+
var tmp_7 = e.cause;
|
|
2540
|
+
if (tmp_7 instanceof FileNotFoundException) {
|
|
2541
|
+
tmp_6 = ExistenceError_init_$Create$(e.message, e, _this__u8e3s4.context, ObjectType_SOURCE_SINK_getInstance(), _this__u8e3s4.arguments.u(0));
|
|
2542
|
+
} else {
|
|
2543
|
+
tmp_6 = e.q46(_this__u8e3s4.context);
|
|
2544
|
+
}
|
|
2545
|
+
throw tmp_6;
|
|
2546
|
+
} else {
|
|
2547
|
+
throw $p;
|
|
2548
|
+
}
|
|
2459
2549
|
}
|
|
2460
2550
|
return tmp_3;
|
|
2461
2551
|
};
|
|
@@ -2468,9 +2558,13 @@
|
|
|
2468
2558
|
function Nl1() {
|
|
2469
2559
|
Nl1_instance = this;
|
|
2470
2560
|
NonBacktrackable_0.call(this, 'nl');
|
|
2561
|
+
this.l4a_1 = '`nl(+Stream)`\n\nWrites a newline character to the output stream `Stream`, succeeding deterministically (`nl/0`, writing to the current output, is provided by `prolog.lang`). `Stream` must be an alias (e.g. `user_output`) or a `$stream(out, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an input stream a domain error (`stream_type`), where ISO prescribes a permission error. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- write(user_output, hello), nl(user_output).\n% prints: hello, then a newline\nyes.\n\n?- nl(user_input).\nthrows error(domain_error(stream_type, user_input), _).\n\n?- nl(S).\nthrows error(instantiation_error, _).\n```';
|
|
2471
2562
|
}
|
|
2472
|
-
protoOf(Nl1).
|
|
2473
|
-
|
|
2563
|
+
protoOf(Nl1).n1x = function () {
|
|
2564
|
+
return this.l4a_1;
|
|
2565
|
+
};
|
|
2566
|
+
protoOf(Nl1).f2u = function (_this__u8e3s4, first) {
|
|
2567
|
+
var channel = IOPrimitiveUtils_getInstance().m48(_this__u8e3s4, 0);
|
|
2474
2568
|
var tmp;
|
|
2475
2569
|
try {
|
|
2476
2570
|
channel.write('\n');
|
|
@@ -2487,8 +2581,8 @@
|
|
|
2487
2581
|
}
|
|
2488
2582
|
return tmp;
|
|
2489
2583
|
};
|
|
2490
|
-
protoOf(Nl1).
|
|
2491
|
-
return this.
|
|
2584
|
+
protoOf(Nl1).x2n = function (_this__u8e3s4, first) {
|
|
2585
|
+
return this.f2u(_this__u8e3s4, first);
|
|
2492
2586
|
};
|
|
2493
2587
|
var Nl1_instance;
|
|
2494
2588
|
function Nl1_getInstance() {
|
|
@@ -2499,12 +2593,16 @@
|
|
|
2499
2593
|
function Open3() {
|
|
2500
2594
|
Open3_instance = this;
|
|
2501
2595
|
NonBacktrackable_1.call(this, 'open');
|
|
2596
|
+
this.n4a_1 = "`open(+SourceSink, +Mode, -Stream)`\n\nOpens `SourceSink`, an atom holding a URL or a plain file path, in `Mode` (`read`, `write` or `append`), registers the new stream under an auto-generated alias, and unifies `Stream` with its `$stream(Direction, Id)` term; it behaves as `open/4` with an empty options list. Any URL readable by the platform (e.g. files or `http(s)`) can be opened for reading, but the current implementation can only write or append to local files on the JVM, and never on JS. It raises an instantiation error if `SourceSink` or `Mode` is unbound, a domain error (`source_sink`) if `SourceSink` is not a valid URL or path, a type or domain error (`io_mode`) if `Mode` is not one of the allowed atoms, a type error (`variable`) if `Stream` is bound (ISO prescribes an uninstantiation error), an existence error (`source_sink`) if the resource does not exist, and a system error if it cannot be opened for any other reason.\n\n**Examples**\n\n```prolog\n% with /path/to/data.pl containing `hello(world).`\n?- open('/path/to/data.pl', read, S), read(S, T), close(S).\nT = hello(world).\n\n?- open(F, read, S).\nthrows error(instantiation_error, _).\n\n?- open('/path/to/data.pl', update, S).\nthrows error(domain_error(io_mode, update), _).\n\n?- open('/path/to/data.pl', read, foo).\nthrows error(type_error(variable, foo), _).\n```";
|
|
2502
2597
|
}
|
|
2503
|
-
protoOf(Open3).
|
|
2504
|
-
return
|
|
2598
|
+
protoOf(Open3).n1x = function () {
|
|
2599
|
+
return this.n4a_1;
|
|
2600
|
+
};
|
|
2601
|
+
protoOf(Open3).q2z = function (_this__u8e3s4, first, second, third) {
|
|
2602
|
+
return IOPrimitiveUtils_getInstance().j4a(_this__u8e3s4, third);
|
|
2505
2603
|
};
|
|
2506
|
-
protoOf(Open3).
|
|
2507
|
-
return this.
|
|
2604
|
+
protoOf(Open3).q2n = function (_this__u8e3s4, first, second, third) {
|
|
2605
|
+
return this.q2z(_this__u8e3s4, first, second, third);
|
|
2508
2606
|
};
|
|
2509
2607
|
var Open3_instance;
|
|
2510
2608
|
function Open3_getInstance() {
|
|
@@ -2515,12 +2613,16 @@
|
|
|
2515
2613
|
function Open4() {
|
|
2516
2614
|
Open4_instance = this;
|
|
2517
2615
|
NonBacktrackable_2.call(this, 'open');
|
|
2616
|
+
this.p4a_1 = "`open(+SourceSink, +Mode, -Stream, +Options)`\n\nLike `open/3`, opens `SourceSink` (a URL or file path atom) in `Mode` (`read`, `write` or `append`) and unifies `Stream` with the new `$stream(Direction, Id)` term, but also takes a list of `Options`. In the current implementation only `alias(Name)` has an effect, registering the stream under `Name` instead of an auto-generated alias; `input`, `output`, `type(text)`, `eof_action(eof_code)` and `reposition(false)` are accepted and ignored, other values of `type/1`, `eof_action/1` and `reposition/1` (e.g. `type(binary)`) raise a system error, and any other element raises a domain error (`stream_property`). `Options` must be a list (type error otherwise, even when unbound), and all other arguments are checked and raise errors exactly as for `open/3`.\n\n**Examples**\n\n```prolog\n?- open('/path/to/out.txt', write, _, [alias(out)]), write(out, hello), close(out).\nyes.\n\n?- open('/path/to/out.txt', write, S, [type(binary)]).\nthrows error(system_error, _).\n\n?- open('/path/to/out.txt', write, S, [foo]).\nthrows error(domain_error(stream_property, foo), _).\n```";
|
|
2518
2617
|
}
|
|
2519
|
-
protoOf(Open4).
|
|
2520
|
-
return
|
|
2618
|
+
protoOf(Open4).n1x = function () {
|
|
2619
|
+
return this.p4a_1;
|
|
2620
|
+
};
|
|
2621
|
+
protoOf(Open4).q4a = function (_this__u8e3s4, first, second, third, fourth) {
|
|
2622
|
+
return IOPrimitiveUtils_getInstance().j4a(_this__u8e3s4, third);
|
|
2521
2623
|
};
|
|
2522
|
-
protoOf(Open4).
|
|
2523
|
-
return this.
|
|
2624
|
+
protoOf(Open4).n2m = function (_this__u8e3s4, first, second, third, fourth) {
|
|
2625
|
+
return this.q4a(_this__u8e3s4, first, second, third, fourth);
|
|
2524
2626
|
};
|
|
2525
2627
|
var Open4_instance;
|
|
2526
2628
|
function Open4_getInstance() {
|
|
@@ -2531,12 +2633,16 @@
|
|
|
2531
2633
|
function PeekByte1() {
|
|
2532
2634
|
PeekByte1_instance = this;
|
|
2533
2635
|
NonBacktrackable_0.call(this, 'peek_byte');
|
|
2636
|
+
this.s4a_1 = '`peek_byte(?Byte)`\n\nRegistered for ISO conformance only: the current implementation supports text streams exclusively, so every call raises a system error regardless of its arguments; use `peek_code/1` instead.\n\n**Examples**\n\n```prolog\n?- peek_byte(B).\nthrows error(system_error, _).\n```';
|
|
2534
2637
|
}
|
|
2535
|
-
protoOf(PeekByte1).
|
|
2536
|
-
return
|
|
2638
|
+
protoOf(PeekByte1).n1x = function () {
|
|
2639
|
+
return this.s4a_1;
|
|
2537
2640
|
};
|
|
2538
|
-
protoOf(PeekByte1).
|
|
2539
|
-
return
|
|
2641
|
+
protoOf(PeekByte1).f2u = function (_this__u8e3s4, first) {
|
|
2642
|
+
return Companion_getInstance_1().r2l(_this__u8e3s4);
|
|
2643
|
+
};
|
|
2644
|
+
protoOf(PeekByte1).x2n = function (_this__u8e3s4, first) {
|
|
2645
|
+
return this.f2u(_this__u8e3s4, first);
|
|
2540
2646
|
};
|
|
2541
2647
|
var PeekByte1_instance;
|
|
2542
2648
|
function PeekByte1_getInstance() {
|
|
@@ -2547,12 +2653,16 @@
|
|
|
2547
2653
|
function PeekByte2() {
|
|
2548
2654
|
PeekByte2_instance = this;
|
|
2549
2655
|
NonBacktrackable.call(this, 'peek_byte');
|
|
2656
|
+
this.u4a_1 = '`peek_byte(+Stream, ?Byte)`\n\nRegistered for ISO conformance only: the current implementation supports text streams exclusively, so every call raises a system error regardless of its arguments; use `peek_code/2` instead.\n\n**Examples**\n\n```prolog\n?- peek_byte(user_input, B).\nthrows error(system_error, _).\n```';
|
|
2550
2657
|
}
|
|
2551
|
-
protoOf(PeekByte2).
|
|
2552
|
-
return
|
|
2658
|
+
protoOf(PeekByte2).n1x = function () {
|
|
2659
|
+
return this.u4a_1;
|
|
2660
|
+
};
|
|
2661
|
+
protoOf(PeekByte2).w2u = function (_this__u8e3s4, first, second) {
|
|
2662
|
+
return Companion_getInstance_1().r2l(_this__u8e3s4);
|
|
2553
2663
|
};
|
|
2554
|
-
protoOf(PeekByte2).
|
|
2555
|
-
return this.
|
|
2664
|
+
protoOf(PeekByte2).o2k = function (_this__u8e3s4, first, second) {
|
|
2665
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
2556
2666
|
};
|
|
2557
2667
|
var PeekByte2_instance;
|
|
2558
2668
|
function PeekByte2_getInstance() {
|
|
@@ -2563,13 +2673,17 @@
|
|
|
2563
2673
|
function PeekChar1() {
|
|
2564
2674
|
PeekChar1_instance = this;
|
|
2565
2675
|
NonBacktrackable_0.call(this, 'peek_char');
|
|
2676
|
+
this.w4a_1 = '`peek_char(?Char)`\n\nUnifies `Char` with the next character of the current input stream (standard input, unless changed via `set_input/1`) without consuming it, or with `end_of_file` at the end of the stream. It is deterministic. `Char` must be unbound, `end_of_file`, or a one-character atom, otherwise a type error (`in_character`) is raised. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- peek_char(ab).\nthrows error(type_error(in_character, ab), _).\n```';
|
|
2566
2677
|
}
|
|
2567
|
-
protoOf(PeekChar1).
|
|
2568
|
-
|
|
2569
|
-
|
|
2678
|
+
protoOf(PeekChar1).n1x = function () {
|
|
2679
|
+
return this.w4a_1;
|
|
2680
|
+
};
|
|
2681
|
+
protoOf(PeekChar1).f2u = function (_this__u8e3s4, first) {
|
|
2682
|
+
IOPrimitiveUtils_getInstance().t48(_this__u8e3s4, 0);
|
|
2683
|
+
return IOPrimitiveUtils_getInstance().g4a(_this__u8e3s4, IOPrimitiveUtils_getInstance().m47(_this__u8e3s4), first);
|
|
2570
2684
|
};
|
|
2571
|
-
protoOf(PeekChar1).
|
|
2572
|
-
return this.
|
|
2685
|
+
protoOf(PeekChar1).x2n = function (_this__u8e3s4, first) {
|
|
2686
|
+
return this.f2u(_this__u8e3s4, first);
|
|
2573
2687
|
};
|
|
2574
2688
|
var PeekChar1_instance;
|
|
2575
2689
|
function PeekChar1_getInstance() {
|
|
@@ -2580,14 +2694,18 @@
|
|
|
2580
2694
|
function PeekChar2() {
|
|
2581
2695
|
PeekChar2_instance = this;
|
|
2582
2696
|
NonBacktrackable.call(this, 'peek_char');
|
|
2697
|
+
this.y4a_1 = '`peek_char(+Stream, ?Char)`\n\nUnifies `Char` with the next character of the input stream `Stream` without consuming it, or with `end_of_file` at the end of the stream. `Stream` must be an alias (e.g. `user_input`) or a `$stream(in, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an output stream a domain error (`stream_type`), where ISO prescribes a permission error. `Char` must be unbound, `end_of_file`, or a one-character atom, otherwise a type error (`in_character`) is raised. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- peek_char(user_input, ab).\nthrows error(type_error(in_character, ab), _).\n\n?- peek_char(S, C).\nthrows error(instantiation_error, _).\n\n?- peek_char(user_output, C).\nthrows error(domain_error(stream_type, user_output), _).\n```';
|
|
2583
2698
|
}
|
|
2584
|
-
protoOf(PeekChar2).
|
|
2585
|
-
|
|
2586
|
-
IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrChar_zdzofu_k$(_this__u8e3s4, 1);
|
|
2587
|
-
return IOPrimitiveUtils_getInstance().peekCharAndReply_r80pc6_k$(_this__u8e3s4, channel, second);
|
|
2699
|
+
protoOf(PeekChar2).n1x = function () {
|
|
2700
|
+
return this.y4a_1;
|
|
2588
2701
|
};
|
|
2589
|
-
protoOf(PeekChar2).
|
|
2590
|
-
|
|
2702
|
+
protoOf(PeekChar2).w2u = function (_this__u8e3s4, first, second) {
|
|
2703
|
+
var channel = IOPrimitiveUtils_getInstance().q47(_this__u8e3s4, 0);
|
|
2704
|
+
IOPrimitiveUtils_getInstance().t48(_this__u8e3s4, 1);
|
|
2705
|
+
return IOPrimitiveUtils_getInstance().g4a(_this__u8e3s4, channel, second);
|
|
2706
|
+
};
|
|
2707
|
+
protoOf(PeekChar2).o2k = function (_this__u8e3s4, first, second) {
|
|
2708
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
2591
2709
|
};
|
|
2592
2710
|
var PeekChar2_instance;
|
|
2593
2711
|
function PeekChar2_getInstance() {
|
|
@@ -2598,13 +2716,17 @@
|
|
|
2598
2716
|
function PeekCode1() {
|
|
2599
2717
|
PeekCode1_instance = this;
|
|
2600
2718
|
NonBacktrackable_0.call(this, 'peek_code');
|
|
2719
|
+
this.a4b_1 = '`peek_code(?Code)`\n\nUnifies `Code` with the code of the next character of the current input stream (standard input, unless changed via `set_input/1`) without consuming it, or with `-1` at the end of the stream. It is deterministic. `Code` must be unbound or an integer (type error otherwise) within the character-code range or `-1` (representation error otherwise). It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- peek_code(a).\nthrows error(type_error(integer, a), _).\n\n?- peek_code(-2).\nthrows error(representation_error(character_code), _).\n```';
|
|
2601
2720
|
}
|
|
2602
|
-
protoOf(PeekCode1).
|
|
2603
|
-
|
|
2604
|
-
|
|
2721
|
+
protoOf(PeekCode1).n1x = function () {
|
|
2722
|
+
return this.a4b_1;
|
|
2723
|
+
};
|
|
2724
|
+
protoOf(PeekCode1).f2u = function (_this__u8e3s4, first) {
|
|
2725
|
+
IOPrimitiveUtils_getInstance().z48(_this__u8e3s4, 0);
|
|
2726
|
+
return IOPrimitiveUtils_getInstance().f4a(_this__u8e3s4, IOPrimitiveUtils_getInstance().m47(_this__u8e3s4), first);
|
|
2605
2727
|
};
|
|
2606
|
-
protoOf(PeekCode1).
|
|
2607
|
-
return this.
|
|
2728
|
+
protoOf(PeekCode1).x2n = function (_this__u8e3s4, first) {
|
|
2729
|
+
return this.f2u(_this__u8e3s4, first);
|
|
2608
2730
|
};
|
|
2609
2731
|
var PeekCode1_instance;
|
|
2610
2732
|
function PeekCode1_getInstance() {
|
|
@@ -2615,14 +2737,18 @@
|
|
|
2615
2737
|
function PeekCode2() {
|
|
2616
2738
|
PeekCode2_instance = this;
|
|
2617
2739
|
NonBacktrackable.call(this, 'peek_code');
|
|
2740
|
+
this.c4b_1 = '`peek_code(+Stream, ?Code)`\n\nUnifies `Code` with the code of the next character of the input stream `Stream` without consuming it, or with `-1` at the end of the stream. `Stream` must be an alias (e.g. `user_input`) or a `$stream(in, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an output stream a domain error (`stream_type`), where ISO prescribes a permission error. `Code` must be unbound or an integer (type error otherwise) within the character-code range or `-1` (representation error otherwise). It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- peek_code(user_input, a).\nthrows error(type_error(integer, a), _).\n\n?- peek_code(S, C).\nthrows error(instantiation_error, _).\n\n?- peek_code(user_output, C).\nthrows error(domain_error(stream_type, user_output), _).\n```';
|
|
2618
2741
|
}
|
|
2619
|
-
protoOf(PeekCode2).
|
|
2620
|
-
|
|
2621
|
-
IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrCharCode_tmh0sz_k$(_this__u8e3s4, 1);
|
|
2622
|
-
return IOPrimitiveUtils_getInstance().peekCodeAndReply_y06qz3_k$(_this__u8e3s4, channel, second);
|
|
2742
|
+
protoOf(PeekCode2).n1x = function () {
|
|
2743
|
+
return this.c4b_1;
|
|
2623
2744
|
};
|
|
2624
|
-
protoOf(PeekCode2).
|
|
2625
|
-
|
|
2745
|
+
protoOf(PeekCode2).w2u = function (_this__u8e3s4, first, second) {
|
|
2746
|
+
var channel = IOPrimitiveUtils_getInstance().q47(_this__u8e3s4, 0);
|
|
2747
|
+
IOPrimitiveUtils_getInstance().z48(_this__u8e3s4, 1);
|
|
2748
|
+
return IOPrimitiveUtils_getInstance().f4a(_this__u8e3s4, channel, second);
|
|
2749
|
+
};
|
|
2750
|
+
protoOf(PeekCode2).o2k = function (_this__u8e3s4, first, second) {
|
|
2751
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
2626
2752
|
};
|
|
2627
2753
|
var PeekCode2_instance;
|
|
2628
2754
|
function PeekCode2_getInstance() {
|
|
@@ -2633,12 +2759,16 @@
|
|
|
2633
2759
|
function PutByte1() {
|
|
2634
2760
|
PutByte1_instance = this;
|
|
2635
2761
|
NonBacktrackable_0.call(this, 'put_byte');
|
|
2762
|
+
this.e4b_1 = '`put_byte(+Byte)`\n\nRegistered for ISO conformance only: the current implementation supports text streams exclusively, so every call raises a system error regardless of its arguments; use `put_code/1` instead.\n\n**Examples**\n\n```prolog\n?- put_byte(65).\nthrows error(system_error, _).\n```';
|
|
2636
2763
|
}
|
|
2637
|
-
protoOf(PutByte1).
|
|
2638
|
-
return
|
|
2764
|
+
protoOf(PutByte1).n1x = function () {
|
|
2765
|
+
return this.e4b_1;
|
|
2766
|
+
};
|
|
2767
|
+
protoOf(PutByte1).f2u = function (_this__u8e3s4, first) {
|
|
2768
|
+
return Companion_getInstance_1().r2l(_this__u8e3s4);
|
|
2639
2769
|
};
|
|
2640
|
-
protoOf(PutByte1).
|
|
2641
|
-
return this.
|
|
2770
|
+
protoOf(PutByte1).x2n = function (_this__u8e3s4, first) {
|
|
2771
|
+
return this.f2u(_this__u8e3s4, first);
|
|
2642
2772
|
};
|
|
2643
2773
|
var PutByte1_instance;
|
|
2644
2774
|
function PutByte1_getInstance() {
|
|
@@ -2649,12 +2779,16 @@
|
|
|
2649
2779
|
function PutByte2() {
|
|
2650
2780
|
PutByte2_instance = this;
|
|
2651
2781
|
NonBacktrackable.call(this, 'put_byte');
|
|
2782
|
+
this.g4b_1 = '`put_byte(+Stream, +Byte)`\n\nRegistered for ISO conformance only: the current implementation supports text streams exclusively, so every call raises a system error regardless of its arguments; use `put_code/2` instead.\n\n**Examples**\n\n```prolog\n?- put_byte(user_output, 65).\nthrows error(system_error, _).\n```';
|
|
2652
2783
|
}
|
|
2653
|
-
protoOf(PutByte2).
|
|
2654
|
-
return
|
|
2784
|
+
protoOf(PutByte2).n1x = function () {
|
|
2785
|
+
return this.g4b_1;
|
|
2786
|
+
};
|
|
2787
|
+
protoOf(PutByte2).w2u = function (_this__u8e3s4, first, second) {
|
|
2788
|
+
return Companion_getInstance_1().r2l(_this__u8e3s4);
|
|
2655
2789
|
};
|
|
2656
|
-
protoOf(PutByte2).
|
|
2657
|
-
return this.
|
|
2790
|
+
protoOf(PutByte2).o2k = function (_this__u8e3s4, first, second) {
|
|
2791
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
2658
2792
|
};
|
|
2659
2793
|
var PutByte2_instance;
|
|
2660
2794
|
function PutByte2_getInstance() {
|
|
@@ -2665,15 +2799,19 @@
|
|
|
2665
2799
|
function PutChar1() {
|
|
2666
2800
|
PutChar1_instance = this;
|
|
2667
2801
|
NonBacktrackable_0.call(this, 'put_char');
|
|
2802
|
+
this.i4b_1 = '`put_char(+Char)`\n\nWrites the character `Char` to the current output stream (standard output, unless changed via `set_output/1`), succeeding deterministically. `Char` must be a one-character atom, otherwise a type error (`character`) is raised; the current implementation raises that type error even when `Char` is unbound, where ISO prescribes an instantiation error. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- put_char(a).\n% prints: a\nyes.\n\n?- put_char(ab).\nthrows error(type_error(character, ab), _).\n\n?- put_char(C).\nthrows error(type_error(character, _), _).\n```';
|
|
2668
2803
|
}
|
|
2669
|
-
protoOf(PutChar1).
|
|
2670
|
-
|
|
2804
|
+
protoOf(PutChar1).n1x = function () {
|
|
2805
|
+
return this.i4b_1;
|
|
2806
|
+
};
|
|
2807
|
+
protoOf(PutChar1).f2u = function (_this__u8e3s4, first) {
|
|
2808
|
+
Companion_getInstance_1().a2m(_this__u8e3s4, 0);
|
|
2671
2809
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2672
|
-
var tmp_0 = IOPrimitiveUtils_getInstance().
|
|
2673
|
-
return tmp.
|
|
2810
|
+
var tmp_0 = IOPrimitiveUtils_getInstance().t49(_this__u8e3s4);
|
|
2811
|
+
return tmp.e4a(_this__u8e3s4, tmp_0, isInterface(first, Atom) ? first : THROW_CCE());
|
|
2674
2812
|
};
|
|
2675
|
-
protoOf(PutChar1).
|
|
2676
|
-
return this.
|
|
2813
|
+
protoOf(PutChar1).x2n = function (_this__u8e3s4, first) {
|
|
2814
|
+
return this.f2u(_this__u8e3s4, first);
|
|
2677
2815
|
};
|
|
2678
2816
|
var PutChar1_instance;
|
|
2679
2817
|
function PutChar1_getInstance() {
|
|
@@ -2684,15 +2822,19 @@
|
|
|
2684
2822
|
function PutChar2() {
|
|
2685
2823
|
PutChar2_instance = this;
|
|
2686
2824
|
NonBacktrackable.call(this, 'put_char');
|
|
2825
|
+
this.k4b_1 = '`put_char(+Stream, +Char)`\n\nWrites the character `Char` to the output stream `Stream`, succeeding deterministically. `Stream` must be an alias (e.g. `user_output`) or a `$stream(out, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an input stream a domain error (`stream_type`), where ISO prescribes a permission error. `Char` must be a one-character atom, otherwise (even when unbound) a type error (`character`) is raised. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- put_char(user_output, a).\n% prints: a\nyes.\n\n?- put_char(user_output, ab).\nthrows error(type_error(character, ab), _).\n\n?- put_char(user_input, a).\nthrows error(domain_error(stream_type, user_input), _).\n```';
|
|
2687
2826
|
}
|
|
2688
|
-
protoOf(PutChar2).
|
|
2689
|
-
|
|
2690
|
-
|
|
2827
|
+
protoOf(PutChar2).n1x = function () {
|
|
2828
|
+
return this.k4b_1;
|
|
2829
|
+
};
|
|
2830
|
+
protoOf(PutChar2).w2u = function (_this__u8e3s4, first, second) {
|
|
2831
|
+
var channel = IOPrimitiveUtils_getInstance().m48(_this__u8e3s4, 0);
|
|
2832
|
+
Companion_getInstance_1().a2m(_this__u8e3s4, 1);
|
|
2691
2833
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2692
|
-
return tmp.
|
|
2834
|
+
return tmp.e4a(_this__u8e3s4, channel, isInterface(second, Atom) ? second : THROW_CCE());
|
|
2693
2835
|
};
|
|
2694
|
-
protoOf(PutChar2).
|
|
2695
|
-
return this.
|
|
2836
|
+
protoOf(PutChar2).o2k = function (_this__u8e3s4, first, second) {
|
|
2837
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
2696
2838
|
};
|
|
2697
2839
|
var PutChar2_instance;
|
|
2698
2840
|
function PutChar2_getInstance() {
|
|
@@ -2703,15 +2845,19 @@
|
|
|
2703
2845
|
function PutCode1() {
|
|
2704
2846
|
PutCode1_instance = this;
|
|
2705
2847
|
NonBacktrackable_0.call(this, 'put_code');
|
|
2848
|
+
this.m4b_1 = '`put_code(+Code)`\n\nWrites the character whose code is `Code` to the current output stream (standard output, unless changed via `set_output/1`), succeeding deterministically. `Code` must be an integer, otherwise (even when unbound, where ISO prescribes an instantiation error) a type error (`integer`) is raised, and a valid character code, otherwise a representation error (`character_code`) is raised. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- put_code(97).\n% prints: a\nyes.\n\n?- put_code(a).\nthrows error(type_error(integer, a), _).\n\n?- put_code(-1).\nthrows error(representation_error(character_code), _).\n```';
|
|
2706
2849
|
}
|
|
2707
|
-
protoOf(PutCode1).
|
|
2708
|
-
|
|
2850
|
+
protoOf(PutCode1).n1x = function () {
|
|
2851
|
+
return this.m4b_1;
|
|
2852
|
+
};
|
|
2853
|
+
protoOf(PutCode1).f2u = function (_this__u8e3s4, first) {
|
|
2854
|
+
Companion_getInstance_1().j2m(_this__u8e3s4, 0);
|
|
2709
2855
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2710
|
-
var tmp_0 = IOPrimitiveUtils_getInstance().
|
|
2711
|
-
return tmp.
|
|
2856
|
+
var tmp_0 = IOPrimitiveUtils_getInstance().t49(_this__u8e3s4);
|
|
2857
|
+
return tmp.d4a(_this__u8e3s4, tmp_0, isInterface(first, Integer) ? first : THROW_CCE());
|
|
2712
2858
|
};
|
|
2713
|
-
protoOf(PutCode1).
|
|
2714
|
-
return this.
|
|
2859
|
+
protoOf(PutCode1).x2n = function (_this__u8e3s4, first) {
|
|
2860
|
+
return this.f2u(_this__u8e3s4, first);
|
|
2715
2861
|
};
|
|
2716
2862
|
var PutCode1_instance;
|
|
2717
2863
|
function PutCode1_getInstance() {
|
|
@@ -2722,15 +2868,19 @@
|
|
|
2722
2868
|
function PutCode2() {
|
|
2723
2869
|
PutCode2_instance = this;
|
|
2724
2870
|
NonBacktrackable.call(this, 'put_code');
|
|
2871
|
+
this.o4b_1 = '`put_code(+Stream, +Code)`\n\nWrites the character whose code is `Code` to the output stream `Stream`, succeeding deterministically. `Stream` must be an alias (e.g. `user_output`) or a `$stream(out, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an input stream a domain error (`stream_type`), where ISO prescribes a permission error. `Code` must be an integer (type error otherwise, even when unbound) and a valid character code (representation error otherwise). It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- put_code(user_output, 97).\n% prints: a\nyes.\n\n?- put_code(user_output, C).\nthrows error(type_error(integer, _), _).\n\n?- put_code(user_input, 97).\nthrows error(domain_error(stream_type, user_input), _).\n```';
|
|
2725
2872
|
}
|
|
2726
|
-
protoOf(PutCode2).
|
|
2727
|
-
|
|
2728
|
-
|
|
2873
|
+
protoOf(PutCode2).n1x = function () {
|
|
2874
|
+
return this.o4b_1;
|
|
2875
|
+
};
|
|
2876
|
+
protoOf(PutCode2).w2u = function (_this__u8e3s4, first, second) {
|
|
2877
|
+
var channel = IOPrimitiveUtils_getInstance().m48(_this__u8e3s4, 0);
|
|
2878
|
+
Companion_getInstance_1().j2m(_this__u8e3s4, 1);
|
|
2729
2879
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2730
|
-
return tmp.
|
|
2880
|
+
return tmp.d4a(_this__u8e3s4, channel, isInterface(second, Integer) ? second : THROW_CCE());
|
|
2731
2881
|
};
|
|
2732
|
-
protoOf(PutCode2).
|
|
2733
|
-
return this.
|
|
2882
|
+
protoOf(PutCode2).o2k = function (_this__u8e3s4, first, second) {
|
|
2883
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
2734
2884
|
};
|
|
2735
2885
|
var PutCode2_instance;
|
|
2736
2886
|
function PutCode2_getInstance() {
|
|
@@ -2741,12 +2891,16 @@
|
|
|
2741
2891
|
function Read1() {
|
|
2742
2892
|
Read1_instance = this;
|
|
2743
2893
|
NonBacktrackable_0.call(this, 'read');
|
|
2894
|
+
this.q4b_1 = '`read(?Term)`\n\nReads the next term, terminated by a full stop, from the current input stream (standard input, unless changed via `set_input/1`) and unifies it with `Term`, using the current operators. It is deterministic. Deviating from ISO, the current implementation fails, instead of unifying `Term` with `end_of_file`, when no more terms are available; it raises a syntax error if the next term is malformed and a system error if the channel is closed or cannot be read term by term.\n\n**Examples**\n\n```prolog\n% with `foo(X, bar).` to be read from standard input\n?- read(T).\nT = foo(_, bar).\n\n% once standard input has been exhausted\n?- read(T).\nno.\n```';
|
|
2744
2895
|
}
|
|
2745
|
-
protoOf(Read1).
|
|
2746
|
-
return
|
|
2896
|
+
protoOf(Read1).n1x = function () {
|
|
2897
|
+
return this.q4b_1;
|
|
2898
|
+
};
|
|
2899
|
+
protoOf(Read1).f2u = function (_this__u8e3s4, first) {
|
|
2900
|
+
return IOPrimitiveUtils_getInstance().i4a(_this__u8e3s4, IOPrimitiveUtils_getInstance().m47(_this__u8e3s4), first);
|
|
2747
2901
|
};
|
|
2748
|
-
protoOf(Read1).
|
|
2749
|
-
return this.
|
|
2902
|
+
protoOf(Read1).x2n = function (_this__u8e3s4, first) {
|
|
2903
|
+
return this.f2u(_this__u8e3s4, first);
|
|
2750
2904
|
};
|
|
2751
2905
|
var Read1_instance;
|
|
2752
2906
|
function Read1_getInstance() {
|
|
@@ -2757,13 +2911,17 @@
|
|
|
2757
2911
|
function Read2() {
|
|
2758
2912
|
Read2_instance = this;
|
|
2759
2913
|
NonBacktrackable.call(this, 'read');
|
|
2914
|
+
this.s4b_1 = '`read(+Stream, ?Term)`\n\nReads the next term, terminated by a full stop, from the input stream `Stream` and unifies it with `Term`, using the current operators. `Stream` must be an alias (e.g. `user_input`) or a `$stream(in, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an output stream a domain error (`stream_type`), where ISO prescribes a permission error. Deviating from ISO, the current implementation fails, instead of unifying `Term` with `end_of_file`, when no more terms are available; it raises a syntax error if the next term is malformed and a system error if the channel is closed or cannot be read term by term.\n\n**Examples**\n\n```prolog\n?- read(S, T).\nthrows error(instantiation_error, _).\n\n?- read(user_output, T).\nthrows error(domain_error(stream_type, user_output), _).\n\n?- read(no_such_stream, T).\nthrows error(existence_error(source_sink, no_such_stream), _).\n```';
|
|
2760
2915
|
}
|
|
2761
|
-
protoOf(Read2).
|
|
2762
|
-
|
|
2763
|
-
|
|
2916
|
+
protoOf(Read2).n1x = function () {
|
|
2917
|
+
return this.s4b_1;
|
|
2918
|
+
};
|
|
2919
|
+
protoOf(Read2).w2u = function (_this__u8e3s4, first, second) {
|
|
2920
|
+
var channel = IOPrimitiveUtils_getInstance().q47(_this__u8e3s4, 0);
|
|
2921
|
+
return IOPrimitiveUtils_getInstance().i4a(_this__u8e3s4, channel, second);
|
|
2764
2922
|
};
|
|
2765
|
-
protoOf(Read2).
|
|
2766
|
-
return this.
|
|
2923
|
+
protoOf(Read2).o2k = function (_this__u8e3s4, first, second) {
|
|
2924
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
2767
2925
|
};
|
|
2768
2926
|
var Read2_instance;
|
|
2769
2927
|
function Read2_getInstance() {
|
|
@@ -2774,12 +2932,16 @@
|
|
|
2774
2932
|
function ReadTerm2() {
|
|
2775
2933
|
ReadTerm2_instance = this;
|
|
2776
2934
|
NonBacktrackable.call(this, 'read_term');
|
|
2935
|
+
this.u4b_1 = "`read_term(?Term, ?Options)`\n\nReads the next term from the current input stream (standard input, unless changed via `set_input/1`) like `read/1`, and unifies the elements of the `Options` list with information about the term's variables. Each element of `Options` may be `variables(Vars)` (the variables of the term, in order of appearance), `variable_names(Names)` (a list of `'Name' = Var` pairs) or `singletons(Names)` (the same, for variables occurring once); other elements raise a domain error (`read_option`). Deviating from ISO, an unbound `Options` is not an error: it is unified with `[variables(Vars), variable_names(Names), singletons(Singletons)]`. Deviating from ISO, the current implementation fails, instead of unifying `Term` with `end_of_file`, when no more terms are available; it raises a syntax error if the next term is malformed and a system error if the channel is closed or cannot be read term by term.\n\n**Examples**\n\n```prolog\n?- read_term(T, [foo]).\nthrows error(domain_error(read_option, foo), _).\n\n?- read_term(T, foo).\nthrows error(type_error(list, foo), _).\n```";
|
|
2777
2936
|
}
|
|
2778
|
-
protoOf(ReadTerm2).
|
|
2779
|
-
return
|
|
2937
|
+
protoOf(ReadTerm2).n1x = function () {
|
|
2938
|
+
return this.u4b_1;
|
|
2780
2939
|
};
|
|
2781
|
-
protoOf(ReadTerm2).
|
|
2782
|
-
return
|
|
2940
|
+
protoOf(ReadTerm2).w2u = function (_this__u8e3s4, first, second) {
|
|
2941
|
+
return IOPrimitiveUtils_getInstance().h4a(_this__u8e3s4, IOPrimitiveUtils_getInstance().m47(_this__u8e3s4), first, true);
|
|
2942
|
+
};
|
|
2943
|
+
protoOf(ReadTerm2).o2k = function (_this__u8e3s4, first, second) {
|
|
2944
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
2783
2945
|
};
|
|
2784
2946
|
var ReadTerm2_instance;
|
|
2785
2947
|
function ReadTerm2_getInstance() {
|
|
@@ -2790,13 +2952,17 @@
|
|
|
2790
2952
|
function ReadTerm3() {
|
|
2791
2953
|
ReadTerm3_instance = this;
|
|
2792
2954
|
NonBacktrackable_1.call(this, 'read_term');
|
|
2955
|
+
this.w4b_1 = "`read_term(+Stream, ?Term, ?Options)`\n\nReads the next term from the input stream `Stream` like `read/2`, and unifies the elements of the `Options` list with information about the term's variables. `Stream` must be an alias (e.g. `user_input`) or a `$stream(in, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an output stream a domain error (`stream_type`), where ISO prescribes a permission error. Each element of `Options` may be `variables(Vars)` (the variables of the term, in order of appearance), `variable_names(Names)` (a list of `'Name' = Var` pairs) or `singletons(Names)` (the same, for variables occurring once); other elements raise a domain error (`read_option`). Deviating from ISO, an unbound `Options` is not an error: it is unified with `[variables(Vars), variable_names(Names), singletons(Singletons)]`. Deviating from ISO, the current implementation fails, instead of unifying `Term` with `end_of_file`, when no more terms are available; it raises a syntax error if the next term is malformed and a system error if the channel is closed or cannot be read term by term.\n\n**Examples**\n\n```prolog\n?- read_term(user_input, T, [foo]).\nthrows error(domain_error(read_option, foo), _).\n\n?- read_term(S, T, []).\nthrows error(instantiation_error, _).\n\n?- read_term(user_output, T, []).\nthrows error(domain_error(stream_type, user_output), _).\n```";
|
|
2793
2956
|
}
|
|
2794
|
-
protoOf(ReadTerm3).
|
|
2795
|
-
|
|
2796
|
-
|
|
2957
|
+
protoOf(ReadTerm3).n1x = function () {
|
|
2958
|
+
return this.w4b_1;
|
|
2959
|
+
};
|
|
2960
|
+
protoOf(ReadTerm3).q2z = function (_this__u8e3s4, first, second, third) {
|
|
2961
|
+
var channel = IOPrimitiveUtils_getInstance().q47(_this__u8e3s4, 0);
|
|
2962
|
+
return IOPrimitiveUtils_getInstance().h4a(_this__u8e3s4, channel, second, true);
|
|
2797
2963
|
};
|
|
2798
|
-
protoOf(ReadTerm3).
|
|
2799
|
-
return this.
|
|
2964
|
+
protoOf(ReadTerm3).q2n = function (_this__u8e3s4, first, second, third) {
|
|
2965
|
+
return this.q2z(_this__u8e3s4, first, second, third);
|
|
2800
2966
|
};
|
|
2801
2967
|
var ReadTerm3_instance;
|
|
2802
2968
|
function ReadTerm3_getInstance() {
|
|
@@ -2806,20 +2972,24 @@
|
|
|
2806
2972
|
}
|
|
2807
2973
|
function SetInput$computeOne$lambda($this_computeOne, $channel) {
|
|
2808
2974
|
return function ($this$replySuccess) {
|
|
2809
|
-
$this$replySuccess.
|
|
2975
|
+
$this$replySuccess.a2r($this_computeOne.context.c1y().setCurrentChannel($channel));
|
|
2810
2976
|
return Unit_instance;
|
|
2811
2977
|
};
|
|
2812
2978
|
}
|
|
2813
2979
|
function SetInput() {
|
|
2814
2980
|
SetInput_instance = this;
|
|
2815
2981
|
NonBacktrackable_0.call(this, 'set_input');
|
|
2982
|
+
this.y4b_1 = '`set_input(+Stream)`\n\nMakes the input stream `Stream` the current input stream, i.e. the one used by the predicates without an explicit stream argument (e.g. `get_char/1`, `read/1`), succeeding deterministically. `Stream` must be an alias (e.g. `user_input`) or a `$stream(in, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an output stream a domain error (`stream_type`), where ISO prescribes a permission error.\n\n**Examples**\n\n```prolog\n?- set_input(user_input), current_input(S), stream_property(S, alias(user_input)).\nyes.\n\n?- set_input(user_output).\nthrows error(domain_error(stream_type, user_output), _).\n\n?- set_input(S).\nthrows error(instantiation_error, _).\n```';
|
|
2816
2983
|
}
|
|
2817
|
-
protoOf(SetInput).
|
|
2818
|
-
|
|
2984
|
+
protoOf(SetInput).n1x = function () {
|
|
2985
|
+
return this.y4b_1;
|
|
2986
|
+
};
|
|
2987
|
+
protoOf(SetInput).f2u = function (_this__u8e3s4, first) {
|
|
2988
|
+
var channel = IOPrimitiveUtils_getInstance().q47(_this__u8e3s4, 0);
|
|
2819
2989
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetInput$computeOne$lambda(_this__u8e3s4, channel));
|
|
2820
2990
|
};
|
|
2821
|
-
protoOf(SetInput).
|
|
2822
|
-
return this.
|
|
2991
|
+
protoOf(SetInput).x2n = function (_this__u8e3s4, first) {
|
|
2992
|
+
return this.f2u(_this__u8e3s4, first);
|
|
2823
2993
|
};
|
|
2824
2994
|
var SetInput_instance;
|
|
2825
2995
|
function SetInput_getInstance() {
|
|
@@ -2829,20 +2999,24 @@
|
|
|
2829
2999
|
}
|
|
2830
3000
|
function SetOutput$computeOne$lambda($this_computeOne, $channel) {
|
|
2831
3001
|
return function ($this$replySuccess) {
|
|
2832
|
-
$this$replySuccess.
|
|
3002
|
+
$this$replySuccess.d2r($this_computeOne.context.d1y().setCurrentChannel($channel));
|
|
2833
3003
|
return Unit_instance;
|
|
2834
3004
|
};
|
|
2835
3005
|
}
|
|
2836
3006
|
function SetOutput() {
|
|
2837
3007
|
SetOutput_instance = this;
|
|
2838
3008
|
NonBacktrackable_0.call(this, 'set_output');
|
|
3009
|
+
this.a4c_1 = '`set_output(+Stream)`\n\nMakes the output stream `Stream` the current output stream, i.e. the one used by the predicates without an explicit stream argument (e.g. `put_char/1`, `write/1`), succeeding deterministically. `Stream` must be an alias (e.g. `user_output`) or a `$stream(out, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an input stream a domain error (`stream_type`), where ISO prescribes a permission error.\n\n**Examples**\n\n```prolog\n?- set_output(user_output), put_char(a).\n% prints: a\nyes.\n\n?- set_output(user_input).\nthrows error(domain_error(stream_type, user_input), _).\n\n?- set_output(S).\nthrows error(instantiation_error, _).\n```';
|
|
2839
3010
|
}
|
|
2840
|
-
protoOf(SetOutput).
|
|
2841
|
-
|
|
3011
|
+
protoOf(SetOutput).n1x = function () {
|
|
3012
|
+
return this.a4c_1;
|
|
3013
|
+
};
|
|
3014
|
+
protoOf(SetOutput).f2u = function (_this__u8e3s4, first) {
|
|
3015
|
+
var channel = IOPrimitiveUtils_getInstance().m48(_this__u8e3s4, 0);
|
|
2842
3016
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetOutput$computeOne$lambda(_this__u8e3s4, channel));
|
|
2843
3017
|
};
|
|
2844
|
-
protoOf(SetOutput).
|
|
2845
|
-
return this.
|
|
3018
|
+
protoOf(SetOutput).x2n = function (_this__u8e3s4, first) {
|
|
3019
|
+
return this.f2u(_this__u8e3s4, first);
|
|
2846
3020
|
};
|
|
2847
3021
|
var SetOutput_instance;
|
|
2848
3022
|
function SetOutput_getInstance() {
|
|
@@ -2853,32 +3027,36 @@
|
|
|
2853
3027
|
function SetTheory$setTheory$lambda($append, $solver) {
|
|
2854
3028
|
return function ($this$replySuccess) {
|
|
2855
3029
|
if ($append) {
|
|
2856
|
-
$this$replySuccess.
|
|
2857
|
-
$this$replySuccess.
|
|
3030
|
+
$this$replySuccess.q2q($solver.a1y());
|
|
3031
|
+
$this$replySuccess.t2q($solver.b1y());
|
|
2858
3032
|
} else {
|
|
2859
|
-
$this$replySuccess.
|
|
2860
|
-
$this$replySuccess.
|
|
3033
|
+
$this$replySuccess.o2q($solver.a1y());
|
|
3034
|
+
$this$replySuccess.r2q($solver.b1y());
|
|
2861
3035
|
}
|
|
2862
|
-
$this$replySuccess.
|
|
2863
|
-
$this$replySuccess.
|
|
3036
|
+
$this$replySuccess.y2q($solver.h1y());
|
|
3037
|
+
$this$replySuccess.x2q($solver.z1x());
|
|
2864
3038
|
return Unit_instance;
|
|
2865
3039
|
};
|
|
2866
3040
|
}
|
|
2867
3041
|
function SetTheory() {
|
|
2868
3042
|
SetTheory_instance = this;
|
|
2869
3043
|
NonBacktrackable_0.call(this, 'set_theory');
|
|
3044
|
+
this.b48_1 = "`set_theory(+Text)`\n\nParses the atom `Text` as Prolog source code, using the current operators, and makes the resulting theory the new knowledge base: both the static and the dynamic knowledge bases are replaced (clauses of predicates declared dynamic go to the dynamic one), and operators and flags set by its directives take effect. This predicate is tuProlog-specific; see `consult/1` to add clauses loaded from a file or URL instead. It raises a type error (`atom`) if `Text` is not an atom (including when it is unbound, where an instantiation error would be customary) and a syntax error if `Text` is not a well-formed theory.\n\n**Examples**\n\n```prolog\n?- set_theory('parent(tom, bob). parent(bob, ann).'), parent(bob, X).\nX = ann.\n\n?- set_theory(42).\nthrows error(type_error(atom, 42), _).\n\n?- set_theory('foo(.').\nthrows error(syntax_error, _).\n```";
|
|
2870
3045
|
}
|
|
2871
|
-
protoOf(SetTheory).
|
|
2872
|
-
|
|
2873
|
-
|
|
3046
|
+
protoOf(SetTheory).n1x = function () {
|
|
3047
|
+
return this.b48_1;
|
|
3048
|
+
};
|
|
3049
|
+
protoOf(SetTheory).f2u = function (_this__u8e3s4, first) {
|
|
3050
|
+
Companion_getInstance_1().y2l(_this__u8e3s4, 0);
|
|
3051
|
+
return this.b4c(_this__u8e3s4, first.rx().i2(), false);
|
|
2874
3052
|
};
|
|
2875
|
-
protoOf(SetTheory).
|
|
2876
|
-
return this.
|
|
3053
|
+
protoOf(SetTheory).x2n = function (_this__u8e3s4, first) {
|
|
3054
|
+
return this.f2u(_this__u8e3s4, first);
|
|
2877
3055
|
};
|
|
2878
|
-
protoOf(SetTheory).
|
|
3056
|
+
protoOf(SetTheory).b4c = function (_this__u8e3s4, text, append) {
|
|
2879
3057
|
try {
|
|
2880
|
-
var theory = Companion_instance_11.withOperatorSet(_this__u8e3s4.context.
|
|
2881
|
-
var solver = _this__u8e3s4.context.createMutableSolver(VOID, VOID, VOID, Companion_instance_12.empty(_this__u8e3s4.context.
|
|
3058
|
+
var theory = Companion_instance_11.withOperatorSet(_this__u8e3s4.context.h1y()).parseTheoryWithDefaultUnificator(text);
|
|
3059
|
+
var solver = _this__u8e3s4.context.createMutableSolver(VOID, VOID, VOID, Companion_instance_12.empty(_this__u8e3s4.context.z1n()), Companion_instance_13.empty(_this__u8e3s4.context.z1n()));
|
|
2882
3060
|
solver.loadStaticKb(theory);
|
|
2883
3061
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetTheory$setTheory$lambda(append, solver));
|
|
2884
3062
|
} catch ($p) {
|
|
@@ -2912,9 +3090,9 @@
|
|
|
2912
3090
|
}
|
|
2913
3091
|
}
|
|
2914
3092
|
};
|
|
2915
|
-
protoOf(SetTheory).
|
|
3093
|
+
protoOf(SetTheory).c48 = function (_this__u8e3s4, text, append, $super) {
|
|
2916
3094
|
append = append === VOID ? true : append;
|
|
2917
|
-
return $super === VOID ? this.
|
|
3095
|
+
return $super === VOID ? this.b4c(_this__u8e3s4, text, append) : $super.b4c.call(this, _this__u8e3s4, text, append);
|
|
2918
3096
|
};
|
|
2919
3097
|
var SetTheory_instance;
|
|
2920
3098
|
function SetTheory_getInstance() {
|
|
@@ -2923,16 +3101,16 @@
|
|
|
2923
3101
|
return SetTheory_instance;
|
|
2924
3102
|
}
|
|
2925
3103
|
function StreamProperty$computeAll$lambda(it) {
|
|
2926
|
-
return asSequence(it.
|
|
3104
|
+
return asSequence(it.n2());
|
|
2927
3105
|
}
|
|
2928
3106
|
function StreamProperty$computeAll$lambda_0($this_computeAll) {
|
|
2929
3107
|
return function (it) {
|
|
2930
|
-
return to(it.
|
|
3108
|
+
return to(it.j22(), IOPrimitiveUtils_getInstance().s49($this_computeAll, it));
|
|
2931
3109
|
};
|
|
2932
3110
|
}
|
|
2933
3111
|
function StreamProperty$computeAll$lambda_1(_destruct__k2r9zo) {
|
|
2934
|
-
var streamTerm = _destruct__k2r9zo.
|
|
2935
|
-
var properties = _destruct__k2r9zo.
|
|
3112
|
+
var streamTerm = _destruct__k2r9zo.zd();
|
|
3113
|
+
var properties = _destruct__k2r9zo.ae();
|
|
2936
3114
|
return map(properties, StreamProperty$computeAll$lambda$lambda(streamTerm));
|
|
2937
3115
|
}
|
|
2938
3116
|
function StreamProperty$computeAll$lambda$lambda($streamTerm) {
|
|
@@ -2942,13 +3120,13 @@
|
|
|
2942
3120
|
}
|
|
2943
3121
|
function StreamProperty$computeAll$lambda_2($this_computeAll, $first, $second) {
|
|
2944
3122
|
return function (_destruct__k2r9zo) {
|
|
2945
|
-
var streamTerm = _destruct__k2r9zo.
|
|
2946
|
-
var property = _destruct__k2r9zo.
|
|
2947
|
-
return Companion_getInstance_1().
|
|
3123
|
+
var streamTerm = _destruct__k2r9zo.zd();
|
|
3124
|
+
var property = _destruct__k2r9zo.ae();
|
|
3125
|
+
return Companion_getInstance_1().j2l($this_computeAll, $first, streamTerm).plus(Companion_getInstance_1().j2l($this_computeAll, $second, property));
|
|
2948
3126
|
};
|
|
2949
3127
|
}
|
|
2950
3128
|
function StreamProperty$computeAll$lambda_3(it) {
|
|
2951
|
-
return it.
|
|
3129
|
+
return it.b13();
|
|
2952
3130
|
}
|
|
2953
3131
|
function StreamProperty$computeAll$lambda_4($this_computeAll) {
|
|
2954
3132
|
return function (it) {
|
|
@@ -2958,11 +3136,15 @@
|
|
|
2958
3136
|
function StreamProperty() {
|
|
2959
3137
|
StreamProperty_instance = this;
|
|
2960
3138
|
BinaryRelation.call(this, 'stream_property');
|
|
3139
|
+
this.d4c_1 = '`stream_property(?Stream, ?Property)`\n\nEnumerates, on backtracking, every open stream `Stream` (as a `$stream(Direction, Id)` term) together with each `Property` holding for it; the current implementation reports `input` or `output`, one `alias(Name)` per alias of the stream, and `type(text)`. If `Stream` is bound it must be a stream term (aliases are not accepted), otherwise a domain error (`stream_or_alias`) is raised, or an existence error if it denotes no open stream. If `Property` is bound it must be `input`, `output` or `alias(Name)`, otherwise a domain error (`stream_property`) is raised, so the reported `type(text)` property cannot be queried directly.\n\n**Examples**\n\n```prolog\n?- stream_property(S, alias(user_output)), stream_property(S, output).\nyes.\n\n?- stream_property(S, type(text)).\nthrows error(domain_error(stream_property, type(text)), _).\n\n?- stream_property(user_output, P).\nthrows error(domain_error(stream_or_alias, user_output), _).\n```';
|
|
2961
3140
|
}
|
|
2962
|
-
protoOf(StreamProperty).
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
3141
|
+
protoOf(StreamProperty).n1x = function () {
|
|
3142
|
+
return this.d4c_1;
|
|
3143
|
+
};
|
|
3144
|
+
protoOf(StreamProperty).s2u = function (_this__u8e3s4, first, second) {
|
|
3145
|
+
IOPrimitiveUtils_getInstance().h48(_this__u8e3s4, 0);
|
|
3146
|
+
IOPrimitiveUtils_getInstance().z49(_this__u8e3s4, 1);
|
|
3147
|
+
var tmp = sequenceOf([_this__u8e3s4.context.c1y(), _this__u8e3s4.context.d1y()]);
|
|
2966
3148
|
var tmp_0 = distinct(flatMap(tmp, StreamProperty$computeAll$lambda));
|
|
2967
3149
|
var tmp_1 = map(tmp_0, StreamProperty$computeAll$lambda_0(_this__u8e3s4));
|
|
2968
3150
|
var tmp_2 = flatMap(tmp_1, StreamProperty$computeAll$lambda_1);
|
|
@@ -2970,8 +3152,8 @@
|
|
|
2970
3152
|
var tmp_4 = filter(tmp_3, StreamProperty$computeAll$lambda_3);
|
|
2971
3153
|
return map(tmp_4, StreamProperty$computeAll$lambda_4(_this__u8e3s4));
|
|
2972
3154
|
};
|
|
2973
|
-
protoOf(StreamProperty).
|
|
2974
|
-
return this.
|
|
3155
|
+
protoOf(StreamProperty).q2k = function (_this__u8e3s4, first, second) {
|
|
3156
|
+
return this.s2u(_this__u8e3s4, first, second);
|
|
2975
3157
|
};
|
|
2976
3158
|
var StreamProperty_instance;
|
|
2977
3159
|
function StreamProperty_getInstance() {
|
|
@@ -2982,13 +3164,17 @@
|
|
|
2982
3164
|
function Write2() {
|
|
2983
3165
|
Write2_instance = this;
|
|
2984
3166
|
NonBacktrackable.call(this, 'write');
|
|
3167
|
+
this.f4c_1 = "`write(+Stream, @Term)`\n\nWrites `Term` to the output stream `Stream` as `write/1` does: unquoted, using the current operators, and writing `'$VAR'(N)` terms as variable letters. It succeeds deterministically. `Stream` must be an alias (e.g. `user_output`) or a `$stream(out, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an input stream a domain error (`stream_type`), where ISO prescribes a permission error. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- write(user_output, 'hello world').\n% prints: hello world\nyes.\n\n?- write(user_output, f('A', 1 + 2, '$VAR'(27))).\n% prints: f(A, 1 + 2, B1)\nyes.\n\n?- write(user_input, hello).\nthrows error(domain_error(stream_type, user_input), _).\n```";
|
|
2985
3168
|
}
|
|
2986
|
-
protoOf(Write2).
|
|
2987
|
-
|
|
2988
|
-
|
|
3169
|
+
protoOf(Write2).n1x = function () {
|
|
3170
|
+
return this.f4c_1;
|
|
3171
|
+
};
|
|
3172
|
+
protoOf(Write2).w2u = function (_this__u8e3s4, first, second) {
|
|
3173
|
+
var channel = IOPrimitiveUtils_getInstance().m48(_this__u8e3s4, 0);
|
|
3174
|
+
return IOPrimitiveUtils_getInstance().c4a(_this__u8e3s4, channel, second, Companion_instance_7.default(_this__u8e3s4.context.h1y()));
|
|
2989
3175
|
};
|
|
2990
|
-
protoOf(Write2).
|
|
2991
|
-
return this.
|
|
3176
|
+
protoOf(Write2).o2k = function (_this__u8e3s4, first, second) {
|
|
3177
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
2992
3178
|
};
|
|
2993
3179
|
var Write2_instance;
|
|
2994
3180
|
function Write2_getInstance() {
|
|
@@ -2999,12 +3185,16 @@
|
|
|
2999
3185
|
function WriteCanonical1() {
|
|
3000
3186
|
WriteCanonical1_instance = this;
|
|
3001
3187
|
NonBacktrackable_0.call(this, 'write_canonical');
|
|
3188
|
+
this.h4c_1 = "`write_canonical(@Term)`\n\nWrites `Term` to the current output stream (standard output, unless changed via `set_output/1`) in canonical form: atoms and functors are quoted where needed, operators are written in functional notation, and `'$VAR'(N)` terms are written as-is. It succeeds deterministically. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- write_canonical(f('A', 1 + 2, '$VAR'(27))).\n% prints: f('A', '+'(1, 2), '$VAR'(27))\nyes.\n```";
|
|
3002
3189
|
}
|
|
3003
|
-
protoOf(WriteCanonical1).
|
|
3004
|
-
return
|
|
3190
|
+
protoOf(WriteCanonical1).n1x = function () {
|
|
3191
|
+
return this.h4c_1;
|
|
3192
|
+
};
|
|
3193
|
+
protoOf(WriteCanonical1).f2u = function (_this__u8e3s4, first) {
|
|
3194
|
+
return IOPrimitiveUtils_getInstance().c4a(_this__u8e3s4, IOPrimitiveUtils_getInstance().t49(_this__u8e3s4), first, Companion_instance_7.canonical());
|
|
3005
3195
|
};
|
|
3006
|
-
protoOf(WriteCanonical1).
|
|
3007
|
-
return this.
|
|
3196
|
+
protoOf(WriteCanonical1).x2n = function (_this__u8e3s4, first) {
|
|
3197
|
+
return this.f2u(_this__u8e3s4, first);
|
|
3008
3198
|
};
|
|
3009
3199
|
var WriteCanonical1_instance;
|
|
3010
3200
|
function WriteCanonical1_getInstance() {
|
|
@@ -3015,13 +3205,17 @@
|
|
|
3015
3205
|
function WriteCanonical2() {
|
|
3016
3206
|
WriteCanonical2_instance = this;
|
|
3017
3207
|
NonBacktrackable.call(this, 'write_canonical');
|
|
3208
|
+
this.j4c_1 = "`write_canonical(+Stream, @Term)`\n\nWrites `Term` to the output stream `Stream` in canonical form: atoms and functors are quoted where needed, operators are written in functional notation, and `'$VAR'(N)` terms are written as-is. It succeeds deterministically. `Stream` must be an alias (e.g. `user_output`) or a `$stream(out, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an input stream a domain error (`stream_type`), where ISO prescribes a permission error. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- write_canonical(user_output, f('A', 1 + 2)).\n% prints: f('A', '+'(1, 2))\nyes.\n\n?- write_canonical(user_input, a).\nthrows error(domain_error(stream_type, user_input), _).\n```";
|
|
3018
3209
|
}
|
|
3019
|
-
protoOf(WriteCanonical2).
|
|
3020
|
-
|
|
3021
|
-
return IOPrimitiveUtils_getInstance().writeTermAndReply_wyva0k_k$(_this__u8e3s4, channel, second, Companion_instance_7.canonical());
|
|
3210
|
+
protoOf(WriteCanonical2).n1x = function () {
|
|
3211
|
+
return this.j4c_1;
|
|
3022
3212
|
};
|
|
3023
|
-
protoOf(WriteCanonical2).
|
|
3024
|
-
|
|
3213
|
+
protoOf(WriteCanonical2).w2u = function (_this__u8e3s4, first, second) {
|
|
3214
|
+
var channel = IOPrimitiveUtils_getInstance().m48(_this__u8e3s4, 0);
|
|
3215
|
+
return IOPrimitiveUtils_getInstance().c4a(_this__u8e3s4, channel, second, Companion_instance_7.canonical());
|
|
3216
|
+
};
|
|
3217
|
+
protoOf(WriteCanonical2).o2k = function (_this__u8e3s4, first, second) {
|
|
3218
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
3025
3219
|
};
|
|
3026
3220
|
var WriteCanonical2_instance;
|
|
3027
3221
|
function WriteCanonical2_getInstance() {
|
|
@@ -3032,12 +3226,16 @@
|
|
|
3032
3226
|
function WriteEq1() {
|
|
3033
3227
|
WriteEq1_instance = this;
|
|
3034
3228
|
NonBacktrackable_0.call(this, 'writeq');
|
|
3229
|
+
this.l4c_1 = "`writeq(@Term)`\n\nWrites `Term` to the current output stream (standard output, unless changed via `set_output/1`) so that it can be read back: atoms and functors are quoted where needed, operators are written in operator notation, and `'$VAR'(N)` terms are written as variable letters. It succeeds deterministically. The current implementation formats operators according to the default operator table rather than the current one. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- writeq(f('A', 'hello world', 1 + 2, '$VAR'(27))).\n% prints: f('A', 'hello world', 1 + 2, B1)\nyes.\n```";
|
|
3035
3230
|
}
|
|
3036
|
-
protoOf(WriteEq1).
|
|
3037
|
-
return
|
|
3231
|
+
protoOf(WriteEq1).n1x = function () {
|
|
3232
|
+
return this.l4c_1;
|
|
3233
|
+
};
|
|
3234
|
+
protoOf(WriteEq1).f2u = function (_this__u8e3s4, first) {
|
|
3235
|
+
return IOPrimitiveUtils_getInstance().c4a(_this__u8e3s4, IOPrimitiveUtils_getInstance().t49(_this__u8e3s4), first, Companion_instance_7.readable());
|
|
3038
3236
|
};
|
|
3039
|
-
protoOf(WriteEq1).
|
|
3040
|
-
return this.
|
|
3237
|
+
protoOf(WriteEq1).x2n = function (_this__u8e3s4, first) {
|
|
3238
|
+
return this.f2u(_this__u8e3s4, first);
|
|
3041
3239
|
};
|
|
3042
3240
|
var WriteEq1_instance;
|
|
3043
3241
|
function WriteEq1_getInstance() {
|
|
@@ -3048,13 +3246,17 @@
|
|
|
3048
3246
|
function WriteEq2() {
|
|
3049
3247
|
WriteEq2_instance = this;
|
|
3050
3248
|
NonBacktrackable.call(this, 'writeq');
|
|
3249
|
+
this.n4c_1 = "`writeq(+Stream, @Term)`\n\nWrites `Term` to the output stream `Stream` so that it can be read back, quoting atoms and functors where needed and writing `'$VAR'(N)` terms as variable letters; the current implementation formats operators according to the default operator table rather than the current one. It succeeds deterministically. `Stream` must be an alias (e.g. `user_output`) or a `$stream(out, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an input stream a domain error (`stream_type`), where ISO prescribes a permission error. It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- writeq(user_output, f('A', 1 + 2)).\n% prints: f('A', 1 + 2)\nyes.\n\n?- writeq(user_input, a).\nthrows error(domain_error(stream_type, user_input), _).\n```";
|
|
3051
3250
|
}
|
|
3052
|
-
protoOf(WriteEq2).
|
|
3053
|
-
|
|
3054
|
-
|
|
3251
|
+
protoOf(WriteEq2).n1x = function () {
|
|
3252
|
+
return this.n4c_1;
|
|
3253
|
+
};
|
|
3254
|
+
protoOf(WriteEq2).w2u = function (_this__u8e3s4, first, second) {
|
|
3255
|
+
var channel = IOPrimitiveUtils_getInstance().m48(_this__u8e3s4, 0);
|
|
3256
|
+
return IOPrimitiveUtils_getInstance().c4a(_this__u8e3s4, channel, second, Companion_instance_7.readable());
|
|
3055
3257
|
};
|
|
3056
|
-
protoOf(WriteEq2).
|
|
3057
|
-
return this.
|
|
3258
|
+
protoOf(WriteEq2).o2k = function (_this__u8e3s4, first, second) {
|
|
3259
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
3058
3260
|
};
|
|
3059
3261
|
var WriteEq2_instance;
|
|
3060
3262
|
function WriteEq2_getInstance() {
|
|
@@ -3065,13 +3267,17 @@
|
|
|
3065
3267
|
function WriteTerm2() {
|
|
3066
3268
|
WriteTerm2_instance = this;
|
|
3067
3269
|
NonBacktrackable.call(this, 'write_term');
|
|
3270
|
+
this.p4c_1 = "`write_term(@Term, +Options)`\n\nWrites `Term` to the current output stream (standard output, unless changed via `set_output/1`), formatted according to `Options` and the current operators, succeeding deterministically. `Options` must be a list (an unbound `Options` raises a type error (`list`) rather than ISO's instantiation error) whose elements are `quoted(Bool)` (quote atoms and functors where needed), `ignore_ops(Bool)` (write operators in canonical functional notation) and `numbervars(Bool)` (write `'$VAR'(N)` terms as variable letters), with `Bool` being `true` or `false`; missing options default to `false`, and any other element raises a domain error (`write_option`). It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- write_term(f('A', 1 + 2), [quoted(true), ignore_ops(true)]).\n% prints: f('A', '+'(1, 2))\nyes.\n\n?- write_term(f('A', 1 + 2), []).\n% prints: f(A, 1 + 2)\nyes.\n\n?- write_term(a, [foo]).\nthrows error(domain_error(write_option, foo), _).\n\n?- write_term(a, Options).\nthrows error(type_error(list, _), _).\n```";
|
|
3068
3271
|
}
|
|
3069
|
-
protoOf(WriteTerm2).
|
|
3070
|
-
|
|
3071
|
-
return IOPrimitiveUtils_getInstance().writeTermAndReply_wyva0k_k$(_this__u8e3s4, IOPrimitiveUtils_getInstance().get_currentOutputChannel_jl8tcy_k$(_this__u8e3s4), first, formatter);
|
|
3272
|
+
protoOf(WriteTerm2).n1x = function () {
|
|
3273
|
+
return this.p4c_1;
|
|
3072
3274
|
};
|
|
3073
|
-
protoOf(WriteTerm2).
|
|
3074
|
-
|
|
3275
|
+
protoOf(WriteTerm2).w2u = function (_this__u8e3s4, first, second) {
|
|
3276
|
+
var formatter = IOPrimitiveUtils_getInstance().y49(_this__u8e3s4, 1);
|
|
3277
|
+
return IOPrimitiveUtils_getInstance().c4a(_this__u8e3s4, IOPrimitiveUtils_getInstance().t49(_this__u8e3s4), first, formatter);
|
|
3278
|
+
};
|
|
3279
|
+
protoOf(WriteTerm2).o2k = function (_this__u8e3s4, first, second) {
|
|
3280
|
+
return this.w2u(_this__u8e3s4, first, second);
|
|
3075
3281
|
};
|
|
3076
3282
|
var WriteTerm2_instance;
|
|
3077
3283
|
function WriteTerm2_getInstance() {
|
|
@@ -3082,14 +3288,18 @@
|
|
|
3082
3288
|
function WriteTerm3() {
|
|
3083
3289
|
WriteTerm3_instance = this;
|
|
3084
3290
|
NonBacktrackable_1.call(this, 'write_term');
|
|
3291
|
+
this.r4c_1 = "`write_term(+Stream, @Term, +Options)`\n\nWrites `Term` to the output stream `Stream`, formatted according to `Options` and the current operators, succeeding deterministically. `Stream` must be an alias (e.g. `user_output`) or a `$stream(out, Id)` term denoting an open stream: an unbound `Stream` raises an instantiation error, an unknown one an existence error, and an input stream a domain error (`stream_type`), where ISO prescribes a permission error. `Options` must be a list (an unbound `Options` raises a type error (`list`) rather than ISO's instantiation error) whose elements are `quoted(Bool)` (quote atoms and functors where needed), `ignore_ops(Bool)` (write operators in canonical functional notation) and `numbervars(Bool)` (write `'$VAR'(N)` terms as variable letters), with `Bool` being `true` or `false`; missing options default to `false`, and any other element raises a domain error (`write_option`). It fails, instead of raising an error, if the underlying channel has been closed.\n\n**Examples**\n\n```prolog\n?- write_term(user_output, '$VAR'(27), [numbervars(true)]).\n% prints: B1\nyes.\n\n?- write_term(user_output, a, [quoted(maybe)]).\nthrows error(domain_error(write_option, quoted(maybe)), _).\n\n?- write_term(user_input, a, []).\nthrows error(domain_error(stream_type, user_input), _).\n```";
|
|
3085
3292
|
}
|
|
3086
|
-
protoOf(WriteTerm3).
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3293
|
+
protoOf(WriteTerm3).n1x = function () {
|
|
3294
|
+
return this.r4c_1;
|
|
3295
|
+
};
|
|
3296
|
+
protoOf(WriteTerm3).q2z = function (_this__u8e3s4, first, second, third) {
|
|
3297
|
+
var channel = IOPrimitiveUtils_getInstance().m48(_this__u8e3s4, 0);
|
|
3298
|
+
var formatter = IOPrimitiveUtils_getInstance().y49(_this__u8e3s4, 2);
|
|
3299
|
+
return IOPrimitiveUtils_getInstance().c4a(_this__u8e3s4, channel, second, formatter);
|
|
3090
3300
|
};
|
|
3091
|
-
protoOf(WriteTerm3).
|
|
3092
|
-
return this.
|
|
3301
|
+
protoOf(WriteTerm3).q2n = function (_this__u8e3s4, first, second, third) {
|
|
3302
|
+
return this.q2z(_this__u8e3s4, first, second, third);
|
|
3093
3303
|
};
|
|
3094
3304
|
var WriteTerm3_instance;
|
|
3095
3305
|
function WriteTerm3_getInstance() {
|
|
@@ -3115,10 +3325,10 @@
|
|
|
3115
3325
|
if (removeSuffix(parsed.protocol, ':').length === 1) {
|
|
3116
3326
|
throw InvalidUrlException_init_$Create$('Invalid URL: ' + url);
|
|
3117
3327
|
}
|
|
3118
|
-
$this.
|
|
3119
|
-
$this.
|
|
3120
|
-
$this.
|
|
3121
|
-
$this.
|
|
3328
|
+
$this.t4c_1 = removeSuffix(parsed.protocol, ':');
|
|
3329
|
+
$this.u4c_1 = parsed.hostname;
|
|
3330
|
+
$this.v4c_1 = parsed.pathname;
|
|
3331
|
+
$this.w4c_1 = toIntOrNull(parsed.port);
|
|
3122
3332
|
var tmp_1 = $this;
|
|
3123
3333
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
3124
3334
|
var this_0 = removePrefix(parsed.search, '?');
|
|
@@ -3129,8 +3339,8 @@
|
|
|
3129
3339
|
} else {
|
|
3130
3340
|
tmp_2 = this_0;
|
|
3131
3341
|
}
|
|
3132
|
-
tmp_1.
|
|
3133
|
-
$this.
|
|
3342
|
+
tmp_1.x4c_1 = tmp_2;
|
|
3343
|
+
$this.s4c_1 = url;
|
|
3134
3344
|
return $this;
|
|
3135
3345
|
}
|
|
3136
3346
|
function JsUrl_init_$Create$(url) {
|
|
@@ -3142,12 +3352,12 @@
|
|
|
3142
3352
|
path = path === VOID ? '' : path;
|
|
3143
3353
|
query = query === VOID ? null : query;
|
|
3144
3354
|
JsUrl.call($this);
|
|
3145
|
-
$this.
|
|
3146
|
-
$this.
|
|
3147
|
-
$this.
|
|
3148
|
-
$this.
|
|
3149
|
-
$this.
|
|
3150
|
-
$this.
|
|
3355
|
+
$this.t4c_1 = protocol;
|
|
3356
|
+
$this.u4c_1 = host;
|
|
3357
|
+
$this.w4c_1 = port;
|
|
3358
|
+
$this.v4c_1 = path;
|
|
3359
|
+
$this.x4c_1 = query;
|
|
3360
|
+
$this.s4c_1 = Companion_instance_15.x45(protocol, host, port, path, query);
|
|
3151
3361
|
return $this;
|
|
3152
3362
|
}
|
|
3153
3363
|
function JsUrl_init_$Create$_0(protocol, host, port, path, query) {
|
|
@@ -3157,7 +3367,7 @@
|
|
|
3157
3367
|
var tmp;
|
|
3158
3368
|
try {
|
|
3159
3369
|
// Inline function 'okio.use' call
|
|
3160
|
-
var this_0 = buffer(LocalFileSystem_getInstance().
|
|
3370
|
+
var this_0 = buffer(LocalFileSystem_getInstance().y42(toLocalPath($this)));
|
|
3161
3371
|
var thrown = null;
|
|
3162
3372
|
var tmp_0;
|
|
3163
3373
|
try {
|
|
@@ -3178,7 +3388,7 @@
|
|
|
3178
3388
|
if (this_0 == null)
|
|
3179
3389
|
null;
|
|
3180
3390
|
else {
|
|
3181
|
-
this_0.
|
|
3391
|
+
this_0.w22();
|
|
3182
3392
|
}
|
|
3183
3393
|
} catch ($p_0) {
|
|
3184
3394
|
if ($p_0 instanceof Error) {
|
|
@@ -3209,53 +3419,53 @@
|
|
|
3209
3419
|
return tmp;
|
|
3210
3420
|
}
|
|
3211
3421
|
function JsUrl$readAsText$lambda(it) {
|
|
3212
|
-
return it.
|
|
3422
|
+
return it.q43();
|
|
3213
3423
|
}
|
|
3214
3424
|
function JsUrl$readAsByteArray$lambda(it) {
|
|
3215
|
-
return it.
|
|
3425
|
+
return it.t43();
|
|
3216
3426
|
}
|
|
3217
|
-
protoOf(JsUrl).
|
|
3218
|
-
return this.
|
|
3427
|
+
protoOf(JsUrl).y45 = function () {
|
|
3428
|
+
return this.t4c_1;
|
|
3219
3429
|
};
|
|
3220
|
-
protoOf(JsUrl).
|
|
3221
|
-
return this.
|
|
3430
|
+
protoOf(JsUrl).z45 = function () {
|
|
3431
|
+
return this.u4c_1;
|
|
3222
3432
|
};
|
|
3223
|
-
protoOf(JsUrl).
|
|
3224
|
-
return this.
|
|
3433
|
+
protoOf(JsUrl).j3a = function () {
|
|
3434
|
+
return this.v4c_1;
|
|
3225
3435
|
};
|
|
3226
|
-
protoOf(JsUrl).
|
|
3227
|
-
return this.
|
|
3436
|
+
protoOf(JsUrl).a46 = function () {
|
|
3437
|
+
return this.w4c_1;
|
|
3228
3438
|
};
|
|
3229
|
-
protoOf(JsUrl).
|
|
3230
|
-
return this.
|
|
3439
|
+
protoOf(JsUrl).n1z = function () {
|
|
3440
|
+
return this.x4c_1;
|
|
3231
3441
|
};
|
|
3232
|
-
protoOf(JsUrl).
|
|
3442
|
+
protoOf(JsUrl).y4c = function () {
|
|
3233
3443
|
var tmp;
|
|
3234
|
-
if (this.
|
|
3444
|
+
if (this.b46() && get_isNode()) {
|
|
3235
3445
|
tmp = readLocalFile(this, JsUrl$readAsText$lambda);
|
|
3236
|
-
} else if (this.
|
|
3237
|
-
tmp = readText(this.
|
|
3446
|
+
} else if (this.b46()) {
|
|
3447
|
+
tmp = readText(this.v4c_1);
|
|
3238
3448
|
} else {
|
|
3239
|
-
tmp = fetch(this.
|
|
3449
|
+
tmp = fetch(this.s4c_1, 'UTF-8');
|
|
3240
3450
|
}
|
|
3241
3451
|
return tmp;
|
|
3242
3452
|
};
|
|
3243
3453
|
protoOf(JsUrl).readAsText = function () {
|
|
3244
|
-
return this.
|
|
3454
|
+
return this.y4c();
|
|
3245
3455
|
};
|
|
3246
|
-
protoOf(JsUrl).
|
|
3456
|
+
protoOf(JsUrl).z4c = function () {
|
|
3247
3457
|
var tmp;
|
|
3248
|
-
if (this.
|
|
3458
|
+
if (this.b46() && get_isNode()) {
|
|
3249
3459
|
tmp = readLocalFile(this, JsUrl$readAsByteArray$lambda);
|
|
3250
|
-
} else if (this.
|
|
3251
|
-
tmp = readBin(this.
|
|
3460
|
+
} else if (this.b46()) {
|
|
3461
|
+
tmp = readBin(this.v4c_1);
|
|
3252
3462
|
} else {
|
|
3253
|
-
tmp = toByteArray(fetch(this.
|
|
3463
|
+
tmp = toByteArray(fetch(this.s4c_1));
|
|
3254
3464
|
}
|
|
3255
3465
|
return tmp;
|
|
3256
3466
|
};
|
|
3257
3467
|
protoOf(JsUrl).readAsByteArray = function () {
|
|
3258
|
-
return this.
|
|
3468
|
+
return this.z4c();
|
|
3259
3469
|
};
|
|
3260
3470
|
protoOf(JsUrl).equals = function (other) {
|
|
3261
3471
|
if (this === other)
|
|
@@ -3264,15 +3474,15 @@
|
|
|
3264
3474
|
return false;
|
|
3265
3475
|
if (!(other instanceof JsUrl))
|
|
3266
3476
|
THROW_CCE();
|
|
3267
|
-
if (!(this.
|
|
3477
|
+
if (!(this.s4c_1 === other.s4c_1))
|
|
3268
3478
|
return false;
|
|
3269
3479
|
return true;
|
|
3270
3480
|
};
|
|
3271
3481
|
protoOf(JsUrl).hashCode = function () {
|
|
3272
|
-
return getStringHashCode(this.
|
|
3482
|
+
return getStringHashCode(this.s4c_1);
|
|
3273
3483
|
};
|
|
3274
3484
|
protoOf(JsUrl).toString = function () {
|
|
3275
|
-
return this.
|
|
3485
|
+
return this.s4c_1;
|
|
3276
3486
|
};
|
|
3277
3487
|
function JsUrl() {
|
|
3278
3488
|
}
|
|
@@ -3282,12 +3492,12 @@
|
|
|
3282
3492
|
var tmp = KProperty0;
|
|
3283
3493
|
// Inline function 'kotlin.getValue' call
|
|
3284
3494
|
/* dead property reference removed */
|
|
3285
|
-
return tmp0.
|
|
3495
|
+
return tmp0.i2();
|
|
3286
3496
|
}
|
|
3287
3497
|
var REQUEST$delegate;
|
|
3288
3498
|
function get_isNode() {
|
|
3289
3499
|
_init_properties_RemoteAndBrowserIO_kt__6j78jn();
|
|
3290
|
-
return !Info_getInstance().
|
|
3500
|
+
return !Info_getInstance().hv().equals(Platform_BROWSER_getInstance());
|
|
3291
3501
|
}
|
|
3292
3502
|
function readText(path) {
|
|
3293
3503
|
_init_properties_RemoteAndBrowserIO_kt__6j78jn();
|
|
@@ -3359,7 +3569,7 @@
|
|
|
3359
3569
|
function _get_REQUEST_$ref_g5y4c1() {
|
|
3360
3570
|
return constructCallableReference(function () {
|
|
3361
3571
|
return get_REQUEST();
|
|
3362
|
-
}, 0, 0,
|
|
3572
|
+
}, 0, 0, 136);
|
|
3363
3573
|
}
|
|
3364
3574
|
var properties_initialized_RemoteAndBrowserIO_kt_w2uybl;
|
|
3365
3575
|
function _init_properties_RemoteAndBrowserIO_kt__6j78jn() {
|
|
@@ -3379,7 +3589,7 @@
|
|
|
3379
3589
|
var tmp = KProperty0;
|
|
3380
3590
|
// Inline function 'kotlin.getValue' call
|
|
3381
3591
|
/* dead property reference removed */
|
|
3382
|
-
return tmp0.
|
|
3592
|
+
return tmp0.i2();
|
|
3383
3593
|
}
|
|
3384
3594
|
var FILE_URL_TO_PATH$delegate;
|
|
3385
3595
|
function fileUrl(path) {
|
|
@@ -3401,7 +3611,7 @@
|
|
|
3401
3611
|
function openInputChannel(_this__u8e3s4) {
|
|
3402
3612
|
_init_properties_UrlUtilsJs_kt__dw3tit();
|
|
3403
3613
|
var tmp;
|
|
3404
|
-
if (_this__u8e3s4.
|
|
3614
|
+
if (_this__u8e3s4.b46() && get_isNode()) {
|
|
3405
3615
|
tmp = wrappingIOException(openInputChannel$lambda(_this__u8e3s4));
|
|
3406
3616
|
} else {
|
|
3407
3617
|
tmp = Companion_instance.ofString(_this__u8e3s4.readAsText());
|
|
@@ -3411,7 +3621,7 @@
|
|
|
3411
3621
|
function openOutputChannel(_this__u8e3s4, append) {
|
|
3412
3622
|
append = append === VOID ? false : append;
|
|
3413
3623
|
_init_properties_UrlUtilsJs_kt__dw3tit();
|
|
3414
|
-
if (!_this__u8e3s4.
|
|
3624
|
+
if (!_this__u8e3s4.b46() || !get_isNode()) {
|
|
3415
3625
|
throw IOException_init_$Create$('Writing not supported for ' + toString(_this__u8e3s4));
|
|
3416
3626
|
}
|
|
3417
3627
|
var path = toLocalPath(_this__u8e3s4);
|
|
@@ -3423,12 +3633,12 @@
|
|
|
3423
3633
|
try {
|
|
3424
3634
|
var tmp_0 = Companion_getInstance_7();
|
|
3425
3635
|
var tmp_1 = get_FILE_URL_TO_PATH()(toString(_this__u8e3s4));
|
|
3426
|
-
tmp = tmp_0.
|
|
3636
|
+
tmp = tmp_0.w42((!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : THROW_CCE());
|
|
3427
3637
|
} catch ($p) {
|
|
3428
3638
|
var tmp_2;
|
|
3429
3639
|
if ($p instanceof Error) {
|
|
3430
3640
|
var _unused_var__etf5q3 = $p;
|
|
3431
|
-
tmp_2 = Companion_getInstance_7().
|
|
3641
|
+
tmp_2 = Companion_getInstance_7().w42(_this__u8e3s4.j3a());
|
|
3432
3642
|
} else {
|
|
3433
3643
|
throw $p;
|
|
3434
3644
|
}
|
|
@@ -3459,16 +3669,16 @@
|
|
|
3459
3669
|
function _get_FILE_URL_TO_PATH_$ref_kwvzgc() {
|
|
3460
3670
|
return constructCallableReference(function () {
|
|
3461
3671
|
return get_FILE_URL_TO_PATH();
|
|
3462
|
-
}, 0, 0,
|
|
3672
|
+
}, 0, 0, 137);
|
|
3463
3673
|
}
|
|
3464
3674
|
function openInputChannel$lambda($this_openInputChannel) {
|
|
3465
3675
|
return function () {
|
|
3466
|
-
return new SourceInputChannel(buffer(LocalFileSystem_getInstance().
|
|
3676
|
+
return new SourceInputChannel(buffer(LocalFileSystem_getInstance().y42(toLocalPath($this_openInputChannel))));
|
|
3467
3677
|
};
|
|
3468
3678
|
}
|
|
3469
3679
|
function openOutputChannel$lambda($append, $path) {
|
|
3470
3680
|
return function () {
|
|
3471
|
-
var sink = $append ? LocalFileSystem_getInstance().
|
|
3681
|
+
var sink = $append ? LocalFileSystem_getInstance().s45($path) : LocalFileSystem_getInstance().r45($path);
|
|
3472
3682
|
return new SinkOutputChannel(buffer_0(sink));
|
|
3473
3683
|
};
|
|
3474
3684
|
}
|
|
@@ -3483,8 +3693,8 @@
|
|
|
3483
3693
|
//region block: post-declaration
|
|
3484
3694
|
protoOf(JsUrl).resolve = resolve;
|
|
3485
3695
|
protoOf(JsUrl).div = div;
|
|
3486
|
-
protoOf(JsUrl).
|
|
3487
|
-
protoOf(JsUrl).
|
|
3696
|
+
protoOf(JsUrl).b46 = get_isFile;
|
|
3697
|
+
protoOf(JsUrl).c46 = get_isHttp;
|
|
3488
3698
|
//endregion
|
|
3489
3699
|
//region block: init
|
|
3490
3700
|
Companion_instance_15 = new Companion_0();
|