@tuprolog/arg2p 0.17.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-core.js +2567 -2558
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +428 -422
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +260 -264
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +161 -155
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +6 -6
- package/2p-io-lib.js +936 -936
- package/2p-io-lib.js.map +1 -1
- package/2p-parser-core.js +136 -136
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1461 -1451
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +89 -94
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve.js +4712 -4965
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1460 -1460
- package/2p-unify.js +349 -349
- package/2p-utils.js +488 -489
- package/2p-utils.js.map +1 -1
- package/README.md +26 -19
- package/arg2p-causality-solver.js +569 -486
- package/arg2p-causality-solver.js.map +1 -1
- package/arg2p-core.js +13492 -5266
- package/arg2p-core.js.map +1 -1
- package/arg2p.js +26 -551
- package/arg2p.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +3337 -3145
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1530 -1530
- package/okio-parent-okio-nodefilesystem.js +52 -52
- package/okio-parent-okio.js +685 -685
- package/okio-parent-okio.js.map +1 -1
- package/package.json +1 -1
- package/2p-solve-prolog.js +0 -2856
- package/2p-solve-prolog.js.map +0 -1
package/2p-io-lib.js
CHANGED
|
@@ -37,100 +37,100 @@
|
|
|
37
37
|
'use strict';
|
|
38
38
|
//region block: imports
|
|
39
39
|
var VOID = kotlin_kotlin.$_$.b;
|
|
40
|
-
var buildParserFor = kotlin_it_unibo_tuprolog_parser_impl.$_$.
|
|
41
|
-
var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
42
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
43
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
44
|
-
var equals = kotlin_kotlin.$_$.
|
|
45
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
46
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
47
|
-
var TextChunkSource = kotlin_it_unibo_tuprolog_parser_impl.$_$.
|
|
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.$_$.
|
|
40
|
+
var buildParserFor = kotlin_it_unibo_tuprolog_parser_impl.$_$.a1;
|
|
41
|
+
var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.s;
|
|
42
|
+
var Unit_instance = kotlin_kotlin.$_$.r;
|
|
43
|
+
var protoOf = kotlin_kotlin.$_$.e8;
|
|
44
|
+
var equals = kotlin_kotlin.$_$.k7;
|
|
45
|
+
var FunctionAdapter = kotlin_kotlin.$_$.z6;
|
|
46
|
+
var isInterface = kotlin_kotlin.$_$.y7;
|
|
47
|
+
var TextChunkSource = kotlin_it_unibo_tuprolog_parser_impl.$_$.y;
|
|
48
|
+
var hashCode = kotlin_kotlin.$_$.q7;
|
|
49
|
+
var initMetadataForClass = kotlin_kotlin.$_$.r7;
|
|
50
|
+
var CoroutineImpl = kotlin_kotlin.$_$.f6;
|
|
51
|
+
var THROW_CCE = kotlin_kotlin.$_$.pc;
|
|
52
|
+
var SequenceScope = kotlin_kotlin.$_$.z8;
|
|
53
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.e6;
|
|
54
54
|
var toParseException = kotlin_it_unibo_tuprolog_parser_core.$_$.j;
|
|
55
|
-
var PrologSyntaxException = kotlin_it_unibo_tuprolog_parser_impl.$_$.
|
|
56
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
57
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
55
|
+
var PrologSyntaxException = kotlin_it_unibo_tuprolog_parser_impl.$_$.n;
|
|
56
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.u7;
|
|
57
|
+
var constructCallableReference = kotlin_kotlin.$_$.i7;
|
|
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.$_$.
|
|
67
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
68
|
-
var to = kotlin_kotlin.$_$.
|
|
69
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
70
|
-
var Companion_instance_1 = kotlin_kotlin.$_$.
|
|
71
|
-
var asSequence = kotlin_kotlin.$_$.
|
|
72
|
-
var map = kotlin_kotlin.$_$.
|
|
61
|
+
var sequence = kotlin_kotlin.$_$.fa;
|
|
62
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
63
|
+
var AbstractLibrary = kotlin_it_unibo_tuprolog_solve.$_$.o2;
|
|
64
|
+
var Companion_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.k1;
|
|
65
|
+
var listOf = kotlin_kotlin.$_$.f4;
|
|
66
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.x2;
|
|
67
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
68
|
+
var to = kotlin_kotlin.$_$.dd;
|
|
69
|
+
var initMetadataForObject = kotlin_kotlin.$_$.v7;
|
|
70
|
+
var Companion_instance_1 = kotlin_kotlin.$_$.p;
|
|
71
|
+
var asSequence = kotlin_kotlin.$_$.t2;
|
|
72
|
+
var map = kotlin_kotlin.$_$.x9;
|
|
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.$_$.
|
|
85
|
-
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.
|
|
74
|
+
var toSet = kotlin_kotlin.$_$.na;
|
|
75
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.s7;
|
|
76
|
+
var THROW_IAE = kotlin_kotlin.$_$.qc;
|
|
77
|
+
var enumEntries = kotlin_kotlin.$_$.g6;
|
|
78
|
+
var Enum = kotlin_kotlin.$_$.fc;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.h8;
|
|
80
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
81
|
+
var startsWith = kotlin_kotlin.$_$.mb;
|
|
82
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.t7;
|
|
83
|
+
var AbstractOutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.h2;
|
|
84
|
+
var AbstractInputChannel = kotlin_it_unibo_tuprolog_solve.$_$.g2;
|
|
85
|
+
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
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.$_$.b8;
|
|
89
|
+
var Char = kotlin_kotlin.$_$.cc;
|
|
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.$_$.d8;
|
|
93
|
+
var captureStack = kotlin_kotlin.$_$.b7;
|
|
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.$_$.d1;
|
|
97
|
+
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.e1;
|
|
98
|
+
var Expected_URL_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.q;
|
|
99
|
+
var Predicative = kotlin_it_unibo_tuprolog_solve.$_$.t2;
|
|
100
|
+
var Predicative_0 = kotlin_it_unibo_tuprolog_solve.$_$.z2;
|
|
101
|
+
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.q2;
|
|
102
|
+
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_solve.$_$.m1;
|
|
103
|
+
var InputChannel = kotlin_it_unibo_tuprolog_solve.$_$.i2;
|
|
104
|
+
var OutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.j2;
|
|
105
|
+
var NonBacktrackable_0 = kotlin_it_unibo_tuprolog_solve.$_$.y2;
|
|
106
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.q1;
|
|
107
|
+
var IllegalStateException = kotlin_kotlin.$_$.ic;
|
|
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.$_$.y8;
|
|
110
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.o7;
|
|
111
|
+
var sequenceOf = kotlin_kotlin.$_$.da;
|
|
112
|
+
var flatMap = kotlin_kotlin.$_$.n9;
|
|
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.$_$.k9;
|
|
118
|
+
var Sequence = kotlin_kotlin.$_$.a9;
|
|
119
|
+
var firstOrNull = kotlin_kotlin.$_$.l9;
|
|
120
120
|
var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
121
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
122
|
-
var asSequence_0 = kotlin_kotlin.$_$.
|
|
123
|
-
var addAll = kotlin_kotlin.$_$.
|
|
124
|
-
var toList = kotlin_kotlin.$_$.
|
|
121
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
122
|
+
var asSequence_0 = kotlin_kotlin.$_$.s2;
|
|
123
|
+
var addAll = kotlin_kotlin.$_$.k2;
|
|
124
|
+
var toList = kotlin_kotlin.$_$.p5;
|
|
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.$_$.u;
|
|
127
|
+
var filterNot = kotlin_kotlin.$_$.j9;
|
|
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.$_$.
|
|
131
|
-
var Expected_STREAM_PROPERTY_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
132
|
-
var Expected_WRITE_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
133
|
-
var Expected_READ_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
129
|
+
var lazy = kotlin_kotlin.$_$.yc;
|
|
130
|
+
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.x;
|
|
131
|
+
var Expected_STREAM_PROPERTY_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g;
|
|
132
|
+
var Expected_WRITE_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.i;
|
|
133
|
+
var Expected_READ_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.d;
|
|
134
134
|
var List = kotlin_it_unibo_tuprolog_core.$_$.w1;
|
|
135
135
|
var Var = kotlin_it_unibo_tuprolog_core.$_$.d3;
|
|
136
136
|
var FuncFormat_LITERAL_getInstance = kotlin_it_unibo_tuprolog_core.$_$.b;
|
|
@@ -139,49 +139,49 @@
|
|
|
139
139
|
var OpFormat_IGNORE_OPERATORS_getInstance = kotlin_it_unibo_tuprolog_core.$_$.e;
|
|
140
140
|
var Companion_instance_7 = kotlin_it_unibo_tuprolog_core.$_$.y;
|
|
141
141
|
var VarFormat_UNDERSCORE_getInstance = kotlin_it_unibo_tuprolog_core.$_$.f;
|
|
142
|
-
var Expected_SOURCE_SINK_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
143
|
-
var Expected_IO_MODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
144
|
-
var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
145
|
-
var Expected_STREAM_OR_ALIAS_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
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.$_$.
|
|
142
|
+
var Expected_SOURCE_SINK_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.e;
|
|
143
|
+
var Expected_IO_MODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.b;
|
|
144
|
+
var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.y;
|
|
145
|
+
var Expected_STREAM_OR_ALIAS_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f;
|
|
146
|
+
var Expected_IN_CHARACTER_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.o;
|
|
147
|
+
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.b1;
|
|
148
|
+
var Limit_CHARACTER_CODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.k;
|
|
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.$_$.
|
|
152
|
-
var Expected_STREAM_TYPE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
151
|
+
var KtMap = kotlin_kotlin.$_$.h2;
|
|
152
|
+
var Expected_STREAM_TYPE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.h;
|
|
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.$_$.e7;
|
|
155
|
+
var emptyList = kotlin_kotlin.$_$.l3;
|
|
156
|
+
var get_lastIndex = kotlin_kotlin.$_$.z3;
|
|
157
|
+
var toList_0 = kotlin_kotlin.$_$.la;
|
|
158
|
+
var last = kotlin_kotlin.$_$.b4;
|
|
159
|
+
var Companion_instance_10 = kotlin_it_unibo_tuprolog_solve.$_$.c1;
|
|
160
160
|
var ParseException = kotlin_it_unibo_tuprolog_parser_core.$_$.a;
|
|
161
|
-
var emptySet = kotlin_kotlin.$_$.
|
|
162
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
163
|
-
var ObjectType_SOURCE_SINK_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
164
|
-
var ExistenceError_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
161
|
+
var emptySet = kotlin_kotlin.$_$.n3;
|
|
162
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.zc;
|
|
163
|
+
var ObjectType_SOURCE_SINK_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.j;
|
|
164
|
+
var ExistenceError_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.c2;
|
|
165
165
|
var FileNotFoundException = kotlin_com_squareup_okio_okio.$_$.d;
|
|
166
|
-
var NonBacktrackable_1 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
167
|
-
var NonBacktrackable_2 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
166
|
+
var NonBacktrackable_1 = kotlin_it_unibo_tuprolog_solve.$_$.w2;
|
|
167
|
+
var NonBacktrackable_2 = kotlin_it_unibo_tuprolog_solve.$_$.u2;
|
|
168
168
|
var Companion_instance_11 = kotlin_it_unibo_tuprolog_parser_theory.$_$.a;
|
|
169
169
|
var Companion_instance_12 = kotlin_it_unibo_tuprolog_theory.$_$.b;
|
|
170
170
|
var Companion_instance_13 = kotlin_it_unibo_tuprolog_theory.$_$.a;
|
|
171
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
172
|
-
var titlecase = kotlin_kotlin.$_$.
|
|
173
|
-
var isLowerCase = kotlin_kotlin.$_$.
|
|
174
|
-
var substring = kotlin_kotlin.$_$.
|
|
175
|
-
var BinaryRelation = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
176
|
-
var distinct = kotlin_kotlin.$_$.
|
|
177
|
-
var removeSuffix = kotlin_kotlin.$_$.
|
|
178
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
179
|
-
var removePrefix = kotlin_kotlin.$_$.
|
|
171
|
+
var charSequenceLength = kotlin_kotlin.$_$.g7;
|
|
172
|
+
var titlecase = kotlin_kotlin.$_$.sb;
|
|
173
|
+
var isLowerCase = kotlin_kotlin.$_$.ab;
|
|
174
|
+
var substring = kotlin_kotlin.$_$.qb;
|
|
175
|
+
var BinaryRelation = kotlin_it_unibo_tuprolog_solve.$_$.s2;
|
|
176
|
+
var distinct = kotlin_kotlin.$_$.f9;
|
|
177
|
+
var removeSuffix = kotlin_kotlin.$_$.gb;
|
|
178
|
+
var toIntOrNull = kotlin_kotlin.$_$.vb;
|
|
179
|
+
var removePrefix = kotlin_kotlin.$_$.eb;
|
|
180
180
|
var buffer = kotlin_com_squareup_okio_okio.$_$.g;
|
|
181
|
-
var addSuppressed = kotlin_kotlin.$_$.
|
|
181
|
+
var addSuppressed = kotlin_kotlin.$_$.sc;
|
|
182
182
|
var IOException = kotlin_com_squareup_okio_okio.$_$.f;
|
|
183
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
184
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
183
|
+
var getStringHashCode = kotlin_kotlin.$_$.p7;
|
|
184
|
+
var KProperty0 = kotlin_kotlin.$_$.x8;
|
|
185
185
|
var Info_getInstance = kotlin_it_unibo_tuprolog_core.$_$.d1;
|
|
186
186
|
var Platform_BROWSER_getInstance = kotlin_it_unibo_tuprolog_core.$_$.g;
|
|
187
187
|
var Companion_getInstance_7 = kotlin_com_squareup_okio_okio.$_$.a;
|
|
@@ -197,16 +197,16 @@
|
|
|
197
197
|
initMetadataForObject(LocalFileSystem, 'LocalFileSystem');
|
|
198
198
|
initMetadataForCompanion(Companion_0);
|
|
199
199
|
function resolve(child) {
|
|
200
|
-
return Companion_instance_15.
|
|
200
|
+
return Companion_instance_15.o3w(this.s3w(), this.t3w(), this.v3w(), this.u3w() + '/' + child, this.w1z());
|
|
201
201
|
}
|
|
202
202
|
function div(child) {
|
|
203
203
|
return this.resolve(child);
|
|
204
204
|
}
|
|
205
205
|
function get_isFile() {
|
|
206
|
-
return this.
|
|
206
|
+
return this.s3w() === 'file';
|
|
207
207
|
}
|
|
208
208
|
function get_isHttp() {
|
|
209
|
-
return startsWith(this.
|
|
209
|
+
return startsWith(this.s3w(), 'http');
|
|
210
210
|
}
|
|
211
211
|
initMetadataForInterface(Url, 'Url');
|
|
212
212
|
initMetadataForClass(SinkOutputChannel, 'SinkOutputChannel', VOID, AbstractOutputChannel);
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
_init_properties_ChannelUtils_kt__fqios2();
|
|
273
273
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
274
274
|
var this_0 = get_cache();
|
|
275
|
-
var value = this_0.
|
|
275
|
+
var value = this_0.k2(_this__u8e3s4);
|
|
276
276
|
var tmp;
|
|
277
277
|
if (value == null) {
|
|
278
278
|
var tmp_0 = asTermChannel$lambda(_this__u8e3s4);
|
|
@@ -289,20 +289,20 @@
|
|
|
289
289
|
return tmp;
|
|
290
290
|
}
|
|
291
291
|
function sam$it_unibo_tuprolog_parser_TextChunkSource$0(function_0) {
|
|
292
|
-
this.
|
|
292
|
+
this.t3v_1 = function_0;
|
|
293
293
|
}
|
|
294
|
-
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).
|
|
295
|
-
return this.
|
|
294
|
+
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).s3a = function () {
|
|
295
|
+
return this.t3v_1();
|
|
296
296
|
};
|
|
297
|
-
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).
|
|
298
|
-
return this.
|
|
297
|
+
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).s2 = function () {
|
|
298
|
+
return this.t3v_1;
|
|
299
299
|
};
|
|
300
300
|
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).equals = function (other) {
|
|
301
301
|
var tmp;
|
|
302
302
|
if (!(other == null) ? isInterface(other, TextChunkSource) : false) {
|
|
303
303
|
var tmp_0;
|
|
304
304
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
305
|
-
tmp_0 = equals(this.
|
|
305
|
+
tmp_0 = equals(this.s2(), other.s2());
|
|
306
306
|
} else {
|
|
307
307
|
tmp_0 = false;
|
|
308
308
|
}
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
return tmp;
|
|
314
314
|
};
|
|
315
315
|
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).hashCode = function () {
|
|
316
|
-
return hashCode(this.
|
|
316
|
+
return hashCode(this.s2());
|
|
317
317
|
};
|
|
318
318
|
function asTermChannel$lambda($this_asTermChannel) {
|
|
319
319
|
return function () {
|
|
@@ -321,97 +321,97 @@
|
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
function asTermChannel$lambda$slambda($session, $visitor, $lexedSource, resultContinuation) {
|
|
324
|
-
this.
|
|
325
|
-
this.
|
|
326
|
-
this.
|
|
324
|
+
this.c3w_1 = $session;
|
|
325
|
+
this.d3w_1 = $visitor;
|
|
326
|
+
this.e3w_1 = $lexedSource;
|
|
327
327
|
CoroutineImpl.call(this, resultContinuation);
|
|
328
328
|
}
|
|
329
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
330
|
-
var tmp = this.
|
|
331
|
-
tmp.
|
|
332
|
-
tmp.
|
|
333
|
-
return tmp.
|
|
329
|
+
protoOf(asTermChannel$lambda$slambda).d1r = function ($this$sequence, $completion) {
|
|
330
|
+
var tmp = this.e1r($this$sequence, $completion);
|
|
331
|
+
tmp.t8_1 = Unit_instance;
|
|
332
|
+
tmp.u8_1 = null;
|
|
333
|
+
return tmp.z8();
|
|
334
334
|
};
|
|
335
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
336
|
-
return this.
|
|
335
|
+
protoOf(asTermChannel$lambda$slambda).q9 = function (p1, $completion) {
|
|
336
|
+
return this.d1r(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
337
337
|
};
|
|
338
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
339
|
-
var suspendResult = this.
|
|
338
|
+
protoOf(asTermChannel$lambda$slambda).z8 = function () {
|
|
339
|
+
var suspendResult = this.t8_1;
|
|
340
340
|
$sm: do
|
|
341
341
|
try {
|
|
342
|
-
var tmp = this.
|
|
342
|
+
var tmp = this.r8_1;
|
|
343
343
|
switch (tmp) {
|
|
344
344
|
case 0:
|
|
345
|
-
this.
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
348
|
-
this.
|
|
345
|
+
this.s8_1 = 6;
|
|
346
|
+
this.s8_1 = 5;
|
|
347
|
+
this.g3w_1 = this.c3w_1.k3i();
|
|
348
|
+
this.r8_1 = 1;
|
|
349
349
|
continue $sm;
|
|
350
350
|
case 1:
|
|
351
|
-
if (!!(this.
|
|
352
|
-
this.
|
|
351
|
+
if (!!(this.g3w_1 == null)) {
|
|
352
|
+
this.r8_1 = 3;
|
|
353
353
|
continue $sm;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
this.
|
|
357
|
-
suspendResult = this.
|
|
356
|
+
this.r8_1 = 2;
|
|
357
|
+
suspendResult = this.f3w_1.bf(this.g3w_1.q3n_1.y3j(this.d3w_1), this);
|
|
358
358
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
359
359
|
return suspendResult;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
continue $sm;
|
|
363
363
|
case 2:
|
|
364
|
-
this.
|
|
365
|
-
this.
|
|
364
|
+
this.g3w_1 = this.c3w_1.k3i();
|
|
365
|
+
this.r8_1 = 1;
|
|
366
366
|
continue $sm;
|
|
367
367
|
case 3:
|
|
368
|
-
this.
|
|
369
|
-
this.
|
|
368
|
+
this.s8_1 = 6;
|
|
369
|
+
this.r8_1 = 4;
|
|
370
370
|
continue $sm;
|
|
371
371
|
case 4:
|
|
372
|
-
this.
|
|
372
|
+
this.s8_1 = 6;
|
|
373
373
|
return Unit_instance;
|
|
374
374
|
case 5:
|
|
375
|
-
this.
|
|
376
|
-
var tmp_0 = this.
|
|
375
|
+
this.s8_1 = 6;
|
|
376
|
+
var tmp_0 = this.u8_1;
|
|
377
377
|
if (tmp_0 instanceof PrologSyntaxException) {
|
|
378
|
-
var e = this.
|
|
379
|
-
var it = this.
|
|
380
|
-
var tmp0_elvis_lhs = it.
|
|
381
|
-
var input = tmp0_elvis_lhs == null ? it.
|
|
378
|
+
var e = this.u8_1;
|
|
379
|
+
var it = this.e3w_1.h3f();
|
|
380
|
+
var tmp0_elvis_lhs = it.e16();
|
|
381
|
+
var input = tmp0_elvis_lhs == null ? it.o3d() : tmp0_elvis_lhs;
|
|
382
382
|
throw toParseException(e, input);
|
|
383
383
|
} else {
|
|
384
|
-
throw this.
|
|
384
|
+
throw this.u8_1;
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
case 6:
|
|
388
|
-
throw this.
|
|
388
|
+
throw this.u8_1;
|
|
389
389
|
}
|
|
390
390
|
} catch ($p) {
|
|
391
391
|
var e_0 = $p;
|
|
392
|
-
if (this.
|
|
392
|
+
if (this.s8_1 === 6) {
|
|
393
393
|
throw e_0;
|
|
394
394
|
} else {
|
|
395
|
-
this.
|
|
396
|
-
this.
|
|
395
|
+
this.r8_1 = this.s8_1;
|
|
396
|
+
this.u8_1 = e_0;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
while (true);
|
|
400
400
|
};
|
|
401
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
402
|
-
var i = new asTermChannel$lambda$slambda(this.
|
|
403
|
-
i.
|
|
401
|
+
protoOf(asTermChannel$lambda$slambda).e1r = function ($this$sequence, completion) {
|
|
402
|
+
var i = new asTermChannel$lambda$slambda(this.c3w_1, this.d3w_1, this.e3w_1, completion);
|
|
403
|
+
i.f3w_1 = $this$sequence;
|
|
404
404
|
return i;
|
|
405
405
|
};
|
|
406
406
|
function asTermChannel$lambda$slambda_0($session, $visitor, $lexedSource, resultContinuation) {
|
|
407
407
|
var i = new asTermChannel$lambda$slambda($session, $visitor, $lexedSource, resultContinuation);
|
|
408
408
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
409
|
-
return i.
|
|
409
|
+
return i.d1r($this$sequence, $completion);
|
|
410
410
|
}, 1);
|
|
411
411
|
}
|
|
412
412
|
function asTermChannel$lambda_0($operators) {
|
|
413
413
|
return function (parser, lexedSource) {
|
|
414
|
-
var session = parser.
|
|
414
|
+
var session = parser.o3i(lexedSource, toOperatorTable($operators));
|
|
415
415
|
var visitor = new PrologTermParserVisitor(Companion_instance_0.empty());
|
|
416
416
|
return sequence(asTermChannel$lambda$slambda_0(session, visitor, lexedSource, null));
|
|
417
417
|
};
|
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
function Iterator$hasNext$ref(p0) {
|
|
425
425
|
return constructCallableReference(function () {
|
|
426
426
|
return p0.q();
|
|
427
|
-
}, 0, 0,
|
|
427
|
+
}, 0, 0, 103, 'hasNext', [p0]);
|
|
428
428
|
}
|
|
429
429
|
var properties_initialized_ChannelUtils_kt_an3chc;
|
|
430
430
|
function _init_properties_ChannelUtils_kt__fqios2() {
|
|
@@ -437,15 +437,15 @@
|
|
|
437
437
|
function IOLib() {
|
|
438
438
|
IOLib_instance = this;
|
|
439
439
|
AbstractLibrary.call(this);
|
|
440
|
-
this.
|
|
440
|
+
this.i3w_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.";
|
|
441
441
|
}
|
|
442
|
-
protoOf(IOLib).
|
|
443
|
-
return this.
|
|
442
|
+
protoOf(IOLib).w1x = function () {
|
|
443
|
+
return this.i3w_1;
|
|
444
444
|
};
|
|
445
|
-
protoOf(IOLib).
|
|
445
|
+
protoOf(IOLib).z2i = function () {
|
|
446
446
|
return 'prolog.io';
|
|
447
447
|
};
|
|
448
|
-
protoOf(IOLib).
|
|
448
|
+
protoOf(IOLib).u2i = function () {
|
|
449
449
|
var tmp = Companion_getInstance();
|
|
450
450
|
// Inline function 'kotlin.collections.map' call
|
|
451
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()]);
|
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
while (_iterator__ex2g4s.q()) {
|
|
456
456
|
var item = _iterator__ex2g4s.r();
|
|
457
457
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.descriptionPair' call
|
|
458
|
-
var tmp$ret$2 = to(item.signature, item.
|
|
458
|
+
var tmp$ret$2 = to(item.signature, item.u1x());
|
|
459
459
|
destination.l(tmp$ret$2);
|
|
460
460
|
}
|
|
461
461
|
return tmp.iterableToMapEnsuringNoDuplicates(destination);
|
|
@@ -469,12 +469,12 @@
|
|
|
469
469
|
function IOMode$Companion$atomValues$lambda(it) {
|
|
470
470
|
// Inline function 'kotlin.text.lowercase' call
|
|
471
471
|
// Inline function 'kotlin.js.asDynamic' call
|
|
472
|
-
return it.
|
|
472
|
+
return it.n2_1.toLowerCase();
|
|
473
473
|
}
|
|
474
474
|
function Atom$Companion$of$ref(p0) {
|
|
475
475
|
return constructCallableReference(function (p0_0) {
|
|
476
476
|
return p0.of(p0_0);
|
|
477
|
-
}, 1, 0,
|
|
477
|
+
}, 1, 0, 104, 'of', [p0]);
|
|
478
478
|
}
|
|
479
479
|
var static_init_called;
|
|
480
480
|
function static_init() {
|
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
var tmp = this;
|
|
498
498
|
var tmp_0 = asSequence(get_entries());
|
|
499
499
|
var tmp_1 = map(tmp_0, IOMode$Companion$atomValues$lambda);
|
|
500
|
-
tmp.
|
|
500
|
+
tmp.j3w_1 = toSet(map(tmp_1, Atom$Companion$of$ref(Companion_getInstance_0())));
|
|
501
501
|
}
|
|
502
502
|
var Companion_instance_14;
|
|
503
503
|
function Companion_getInstance_8() {
|
|
@@ -546,24 +546,24 @@
|
|
|
546
546
|
}
|
|
547
547
|
function LocalFileSystem() {
|
|
548
548
|
LocalFileSystem_instance = this;
|
|
549
|
-
this.
|
|
549
|
+
this.k3w_1 = get_platformFileSystem();
|
|
550
550
|
}
|
|
551
|
-
protoOf(LocalFileSystem).
|
|
552
|
-
return this.
|
|
551
|
+
protoOf(LocalFileSystem).s3t = function (path) {
|
|
552
|
+
return this.k3w_1.s3t(path);
|
|
553
553
|
};
|
|
554
|
-
protoOf(LocalFileSystem).
|
|
555
|
-
return this.
|
|
554
|
+
protoOf(LocalFileSystem).t3t = function (path, mustCreate) {
|
|
555
|
+
return this.k3w_1.t3t(path, mustCreate);
|
|
556
556
|
};
|
|
557
|
-
protoOf(LocalFileSystem).
|
|
557
|
+
protoOf(LocalFileSystem).l3w = function (path, mustCreate, $super) {
|
|
558
558
|
mustCreate = mustCreate === VOID ? false : mustCreate;
|
|
559
|
-
return $super === VOID ? this.
|
|
559
|
+
return $super === VOID ? this.t3t(path, mustCreate) : $super.t3t.call(this, path, mustCreate);
|
|
560
560
|
};
|
|
561
|
-
protoOf(LocalFileSystem).
|
|
562
|
-
return this.
|
|
561
|
+
protoOf(LocalFileSystem).u3t = function (path, mustExist) {
|
|
562
|
+
return this.k3w_1.u3t(path, mustExist);
|
|
563
563
|
};
|
|
564
|
-
protoOf(LocalFileSystem).
|
|
564
|
+
protoOf(LocalFileSystem).m3w = function (path, mustExist, $super) {
|
|
565
565
|
mustExist = mustExist === VOID ? false : mustExist;
|
|
566
|
-
return $super === VOID ? this.
|
|
566
|
+
return $super === VOID ? this.u3t(path, mustExist) : $super.u3t.call(this, path, mustExist);
|
|
567
567
|
};
|
|
568
568
|
var LocalFileSystem_instance;
|
|
569
569
|
function LocalFileSystem_getInstance() {
|
|
@@ -592,7 +592,7 @@
|
|
|
592
592
|
}
|
|
593
593
|
function Companion_0() {
|
|
594
594
|
}
|
|
595
|
-
protoOf(Companion_0).
|
|
595
|
+
protoOf(Companion_0).n3w = function (_this__u8e3s4) {
|
|
596
596
|
var tmp;
|
|
597
597
|
if (_this__u8e3s4 < 0) {
|
|
598
598
|
throw IllegalArgumentException_init_$Create$('Invalid port: ' + _this__u8e3s4);
|
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
protoOf(Companion_0).file = function (path) {
|
|
605
605
|
return fileUrl(path);
|
|
606
606
|
};
|
|
607
|
-
protoOf(Companion_0).
|
|
607
|
+
protoOf(Companion_0).o3w = function (protocol, host, port, path, query) {
|
|
608
608
|
return remoteUrl(protocol, host, port, path, query);
|
|
609
609
|
};
|
|
610
610
|
protoOf(Companion_0).remote = function (protocol, host, port, path, query, $super) {
|
|
@@ -612,27 +612,27 @@
|
|
|
612
612
|
port = port === VOID ? null : port;
|
|
613
613
|
path = path === VOID ? '' : path;
|
|
614
614
|
query = query === VOID ? null : query;
|
|
615
|
-
return $super === VOID ? this.
|
|
615
|
+
return $super === VOID ? this.o3w(protocol, host, port, path, query) : $super.o3w.call(this, protocol, host, port, path, query);
|
|
616
616
|
};
|
|
617
|
-
protoOf(Companion_0).
|
|
618
|
-
return this.
|
|
617
|
+
protoOf(Companion_0).p3w = function (host, port, path, query) {
|
|
618
|
+
return this.o3w('http', host, port, path, query);
|
|
619
619
|
};
|
|
620
620
|
protoOf(Companion_0).http = function (host, port, path, query, $super) {
|
|
621
621
|
host = host === VOID ? '' : host;
|
|
622
622
|
port = port === VOID ? null : port;
|
|
623
623
|
path = path === VOID ? '' : path;
|
|
624
624
|
query = query === VOID ? null : query;
|
|
625
|
-
return $super === VOID ? this.
|
|
625
|
+
return $super === VOID ? this.p3w(host, port, path, query) : $super.p3w.call(this, host, port, path, query);
|
|
626
626
|
};
|
|
627
|
-
protoOf(Companion_0).
|
|
628
|
-
return this.
|
|
627
|
+
protoOf(Companion_0).q3w = function (host, port, path, query) {
|
|
628
|
+
return this.o3w('https', host, port, path, query);
|
|
629
629
|
};
|
|
630
630
|
protoOf(Companion_0).https = function (host, port, path, query, $super) {
|
|
631
631
|
host = host === VOID ? '' : host;
|
|
632
632
|
port = port === VOID ? null : port;
|
|
633
633
|
path = path === VOID ? '' : path;
|
|
634
634
|
query = query === VOID ? null : query;
|
|
635
|
-
return $super === VOID ? this.
|
|
635
|
+
return $super === VOID ? this.q3w(host, port, path, query) : $super.q3w.call(this, host, port, path, query);
|
|
636
636
|
};
|
|
637
637
|
protoOf(Companion_0).of = function (string) {
|
|
638
638
|
var tmp;
|
|
@@ -662,8 +662,8 @@
|
|
|
662
662
|
}
|
|
663
663
|
return tmp;
|
|
664
664
|
};
|
|
665
|
-
protoOf(Companion_0).
|
|
666
|
-
var tmp = port == null ? null : this.
|
|
665
|
+
protoOf(Companion_0).r3w = function (protocol, host, port, path, query) {
|
|
666
|
+
var tmp = port == null ? null : this.n3w(port);
|
|
667
667
|
var tmp_0 = str(this, tmp, Url$Companion$toString$lambda);
|
|
668
668
|
return protocol + '://' + host + tmp_0 + path + str(this, query, Url$Companion$toString$lambda_0);
|
|
669
669
|
};
|
|
@@ -675,52 +675,52 @@
|
|
|
675
675
|
}
|
|
676
676
|
function SinkOutputChannel(sink) {
|
|
677
677
|
AbstractOutputChannel.call(this);
|
|
678
|
-
this.
|
|
678
|
+
this.c3x_1 = sink;
|
|
679
679
|
}
|
|
680
|
-
protoOf(SinkOutputChannel).
|
|
681
|
-
this.
|
|
680
|
+
protoOf(SinkOutputChannel).d3x = function (value) {
|
|
681
|
+
this.c3x_1.x3s(value);
|
|
682
682
|
};
|
|
683
|
-
protoOf(SinkOutputChannel).
|
|
684
|
-
return this.
|
|
683
|
+
protoOf(SinkOutputChannel).r23 = function (value) {
|
|
684
|
+
return this.d3x(typeof value === 'string' ? value : THROW_CCE());
|
|
685
685
|
};
|
|
686
|
-
protoOf(SinkOutputChannel).
|
|
687
|
-
this.
|
|
686
|
+
protoOf(SinkOutputChannel).s23 = function () {
|
|
687
|
+
this.c3x_1.o8();
|
|
688
688
|
};
|
|
689
|
-
protoOf(SinkOutputChannel).
|
|
690
|
-
this.
|
|
691
|
-
protoOf(AbstractOutputChannel).
|
|
689
|
+
protoOf(SinkOutputChannel).z22 = function () {
|
|
690
|
+
this.c3x_1.z22();
|
|
691
|
+
protoOf(AbstractOutputChannel).z22.call(this);
|
|
692
692
|
};
|
|
693
693
|
protoOf(SinkOutputChannel).close = function () {
|
|
694
|
-
return this.
|
|
694
|
+
return this.z22();
|
|
695
695
|
};
|
|
696
696
|
function SourceInputChannel(source) {
|
|
697
697
|
AbstractInputChannel.call(this);
|
|
698
|
-
this.
|
|
699
|
-
this.
|
|
698
|
+
this.j3x_1 = source;
|
|
699
|
+
this.k3x_1 = ArrayDeque_init_$Create$();
|
|
700
700
|
}
|
|
701
|
-
protoOf(SourceInputChannel).
|
|
702
|
-
if (this.
|
|
703
|
-
if (this.
|
|
701
|
+
protoOf(SourceInputChannel).k23 = function () {
|
|
702
|
+
if (this.k3x_1.i()) {
|
|
703
|
+
if (this.j3x_1.f3t())
|
|
704
704
|
return null;
|
|
705
|
-
var codePoint = this.
|
|
705
|
+
var codePoint = this.j3x_1.m3u();
|
|
706
706
|
// Inline function 'kotlin.code' call
|
|
707
707
|
var this_0 = _Char___init__impl__6a9atx(65535);
|
|
708
708
|
if (codePoint > Char__toInt_impl_vasixd(this_0)) {
|
|
709
709
|
var offset = codePoint - 65536 | 0;
|
|
710
|
-
this.
|
|
711
|
-
this.
|
|
710
|
+
this.k3x_1.wd(new Char(numberToChar((offset >> 10) + 55296 | 0)));
|
|
711
|
+
this.k3x_1.wd(new Char(numberToChar((offset & 1023) + 56320 | 0)));
|
|
712
712
|
} else {
|
|
713
|
-
this.
|
|
713
|
+
this.k3x_1.wd(new Char(numberToChar(codePoint)));
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
return toString_0(this.
|
|
716
|
+
return toString_0(this.k3x_1.xd().p1_1);
|
|
717
717
|
};
|
|
718
|
-
protoOf(SourceInputChannel).
|
|
719
|
-
this.
|
|
720
|
-
protoOf(AbstractInputChannel).
|
|
718
|
+
protoOf(SourceInputChannel).z22 = function () {
|
|
719
|
+
this.j3x_1.z22();
|
|
720
|
+
protoOf(AbstractInputChannel).z22.call(this);
|
|
721
721
|
};
|
|
722
722
|
protoOf(SourceInputChannel).close = function () {
|
|
723
|
-
return this.
|
|
723
|
+
return this.z22();
|
|
724
724
|
};
|
|
725
725
|
function IOException_init_$Init$(message, $this) {
|
|
726
726
|
TuPrologException_init_$Init$(message, $this);
|
|
@@ -742,7 +742,7 @@
|
|
|
742
742
|
captureStack(tmp, IOException_init_$Create$_0);
|
|
743
743
|
return tmp;
|
|
744
744
|
}
|
|
745
|
-
protoOf(IOException_0).
|
|
745
|
+
protoOf(IOException_0).l3x = function (context) {
|
|
746
746
|
return Companion_instance_2.forUncaughtKtException(context, this);
|
|
747
747
|
};
|
|
748
748
|
function IOException_0() {
|
|
@@ -768,8 +768,8 @@
|
|
|
768
768
|
captureStack(tmp, InvalidUrlException_init_$Create$_0);
|
|
769
769
|
return tmp;
|
|
770
770
|
}
|
|
771
|
-
protoOf(InvalidUrlException).
|
|
772
|
-
return Companion_instance_3.
|
|
771
|
+
protoOf(InvalidUrlException).m3x = function (context, signature, culprit, index) {
|
|
772
|
+
return Companion_instance_3.o2b(context, signature, Expected_URL_getInstance(), culprit, index);
|
|
773
773
|
};
|
|
774
774
|
function InvalidUrlException() {
|
|
775
775
|
captureStack(this, InvalidUrlException);
|
|
@@ -777,18 +777,18 @@
|
|
|
777
777
|
function AtEndOfStream0() {
|
|
778
778
|
AtEndOfStream0_instance = this;
|
|
779
779
|
Predicative.call(this, 'at_end_of_stream');
|
|
780
|
-
this.
|
|
780
|
+
this.o3x_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```';
|
|
781
781
|
}
|
|
782
|
-
protoOf(AtEndOfStream0).
|
|
783
|
-
return this.
|
|
782
|
+
protoOf(AtEndOfStream0).w1x = function () {
|
|
783
|
+
return this.o3x_1;
|
|
784
784
|
};
|
|
785
|
-
protoOf(AtEndOfStream0).
|
|
785
|
+
protoOf(AtEndOfStream0).p3x = function (_this__u8e3s4) {
|
|
786
786
|
// Inline function 'kotlin.let' call
|
|
787
|
-
var it = IOPrimitiveUtils_getInstance().
|
|
788
|
-
return it.
|
|
787
|
+
var it = IOPrimitiveUtils_getInstance().h3y(_this__u8e3s4);
|
|
788
|
+
return it.l22() || it.yr();
|
|
789
789
|
};
|
|
790
|
-
protoOf(AtEndOfStream0).
|
|
791
|
-
return this.
|
|
790
|
+
protoOf(AtEndOfStream0).j2l = function (_this__u8e3s4) {
|
|
791
|
+
return this.p3x(_this__u8e3s4);
|
|
792
792
|
};
|
|
793
793
|
var AtEndOfStream0_instance;
|
|
794
794
|
function AtEndOfStream0_getInstance() {
|
|
@@ -799,18 +799,18 @@
|
|
|
799
799
|
function AtEndOfStream1() {
|
|
800
800
|
AtEndOfStream1_instance = this;
|
|
801
801
|
Predicative_0.call(this, 'at_end_of_stream');
|
|
802
|
-
this.
|
|
802
|
+
this.j3y_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```';
|
|
803
803
|
}
|
|
804
|
-
protoOf(AtEndOfStream1).
|
|
805
|
-
return this.
|
|
804
|
+
protoOf(AtEndOfStream1).w1x = function () {
|
|
805
|
+
return this.j3y_1;
|
|
806
806
|
};
|
|
807
|
-
protoOf(AtEndOfStream1).
|
|
807
|
+
protoOf(AtEndOfStream1).k3y = function (_this__u8e3s4, first) {
|
|
808
808
|
// Inline function 'kotlin.let' call
|
|
809
|
-
var it = IOPrimitiveUtils_getInstance().
|
|
810
|
-
return it.
|
|
809
|
+
var it = IOPrimitiveUtils_getInstance().l3y(_this__u8e3s4, 0);
|
|
810
|
+
return it.l22() || it.yr();
|
|
811
811
|
};
|
|
812
|
-
protoOf(AtEndOfStream1).
|
|
813
|
-
return this.
|
|
812
|
+
protoOf(AtEndOfStream1).x2n = function (_this__u8e3s4, first) {
|
|
813
|
+
return this.k3y(_this__u8e3s4, first);
|
|
814
814
|
};
|
|
815
815
|
var AtEndOfStream1_instance;
|
|
816
816
|
function AtEndOfStream1_getInstance() {
|
|
@@ -821,16 +821,16 @@
|
|
|
821
821
|
function CharConversion() {
|
|
822
822
|
CharConversion_instance = this;
|
|
823
823
|
NonBacktrackable.call(this, 'char_conversion');
|
|
824
|
-
this.
|
|
824
|
+
this.n3y_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```';
|
|
825
825
|
}
|
|
826
|
-
protoOf(CharConversion).
|
|
827
|
-
return this.
|
|
826
|
+
protoOf(CharConversion).w1x = function () {
|
|
827
|
+
return this.n3y_1;
|
|
828
828
|
};
|
|
829
|
-
protoOf(CharConversion).
|
|
830
|
-
return Companion_getInstance_1().
|
|
829
|
+
protoOf(CharConversion).z2u = function (_this__u8e3s4, first, second) {
|
|
830
|
+
return Companion_getInstance_1().u2l(_this__u8e3s4);
|
|
831
831
|
};
|
|
832
|
-
protoOf(CharConversion).
|
|
833
|
-
return this.
|
|
832
|
+
protoOf(CharConversion).r2k = function (_this__u8e3s4, first, second) {
|
|
833
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
834
834
|
};
|
|
835
835
|
var CharConversion_instance;
|
|
836
836
|
function CharConversion_getInstance() {
|
|
@@ -840,28 +840,28 @@
|
|
|
840
840
|
}
|
|
841
841
|
function Close1$computeOne$lambda($this_computeOne, $channel) {
|
|
842
842
|
return function ($this$replySuccess) {
|
|
843
|
-
var tmp = $this_computeOne.context.
|
|
844
|
-
$this$replySuccess.
|
|
843
|
+
var tmp = $this_computeOne.context.l1y();
|
|
844
|
+
$this$replySuccess.e2r(tmp.aliasesOf(isInterface($channel, InputChannel) ? $channel : THROW_CCE()));
|
|
845
845
|
return Unit_instance;
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
848
|
function Close1$computeOne$lambda_0($this_computeOne, $channel) {
|
|
849
849
|
return function ($this$replySuccess) {
|
|
850
|
-
var tmp = $this_computeOne.context.
|
|
851
|
-
$this$replySuccess.
|
|
850
|
+
var tmp = $this_computeOne.context.m1y();
|
|
851
|
+
$this$replySuccess.h2r(tmp.aliasesOf(isInterface($channel, OutputChannel) ? $channel : THROW_CCE()));
|
|
852
852
|
return Unit_instance;
|
|
853
853
|
};
|
|
854
854
|
}
|
|
855
855
|
function Close1() {
|
|
856
856
|
Close1_instance = this;
|
|
857
857
|
NonBacktrackable_0.call(this, 'close');
|
|
858
|
-
this.
|
|
858
|
+
this.p3y_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```';
|
|
859
859
|
}
|
|
860
|
-
protoOf(Close1).
|
|
861
|
-
return this.
|
|
860
|
+
protoOf(Close1).w1x = function () {
|
|
861
|
+
return this.p3y_1;
|
|
862
862
|
};
|
|
863
|
-
protoOf(Close1).
|
|
864
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
863
|
+
protoOf(Close1).i2u = function (_this__u8e3s4, first) {
|
|
864
|
+
var channel = IOPrimitiveUtils_getInstance().q3y(_this__u8e3s4, 0);
|
|
865
865
|
try {
|
|
866
866
|
channel.close();
|
|
867
867
|
var tmp;
|
|
@@ -884,8 +884,8 @@
|
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
|
-
protoOf(Close1).
|
|
888
|
-
return this.
|
|
887
|
+
protoOf(Close1).a2o = function (_this__u8e3s4, first) {
|
|
888
|
+
return this.i2u(_this__u8e3s4, first);
|
|
889
889
|
};
|
|
890
890
|
var Close1_instance;
|
|
891
891
|
function Close1_getInstance() {
|
|
@@ -896,16 +896,16 @@
|
|
|
896
896
|
function Close2() {
|
|
897
897
|
Close2_instance = this;
|
|
898
898
|
NonBacktrackable.call(this, 'close');
|
|
899
|
-
this.
|
|
899
|
+
this.s3y_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```';
|
|
900
900
|
}
|
|
901
|
-
protoOf(Close2).
|
|
902
|
-
return this.
|
|
901
|
+
protoOf(Close2).w1x = function () {
|
|
902
|
+
return this.s3y_1;
|
|
903
903
|
};
|
|
904
|
-
protoOf(Close2).
|
|
905
|
-
return Companion_getInstance_1().
|
|
904
|
+
protoOf(Close2).z2u = function (_this__u8e3s4, first, second) {
|
|
905
|
+
return Companion_getInstance_1().u2l(_this__u8e3s4);
|
|
906
906
|
};
|
|
907
|
-
protoOf(Close2).
|
|
908
|
-
return this.
|
|
907
|
+
protoOf(Close2).r2k = function (_this__u8e3s4, first, second) {
|
|
908
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
909
909
|
};
|
|
910
910
|
var Close2_instance;
|
|
911
911
|
function Close2_getInstance() {
|
|
@@ -916,35 +916,35 @@
|
|
|
916
916
|
function Consult() {
|
|
917
917
|
Consult_instance = this;
|
|
918
918
|
NonBacktrackable_0.call(this, 'consult');
|
|
919
|
-
this.
|
|
919
|
+
this.u3y_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```";
|
|
920
920
|
}
|
|
921
|
-
protoOf(Consult).
|
|
922
|
-
return this.
|
|
921
|
+
protoOf(Consult).w1x = function () {
|
|
922
|
+
return this.u3y_1;
|
|
923
923
|
};
|
|
924
|
-
protoOf(Consult).
|
|
925
|
-
Companion_getInstance_1().
|
|
926
|
-
Companion_getInstance_1().
|
|
927
|
-
var urlString = (isInterface(first, Atom) ? first : THROW_CCE()).
|
|
924
|
+
protoOf(Consult).i2u = function (_this__u8e3s4, first) {
|
|
925
|
+
Companion_getInstance_1().s2l(_this__u8e3s4, 0);
|
|
926
|
+
Companion_getInstance_1().b2m(_this__u8e3s4, 0);
|
|
927
|
+
var urlString = (isInterface(first, Atom) ? first : THROW_CCE()).h2();
|
|
928
928
|
try {
|
|
929
929
|
var url = Companion_instance_15.of(urlString);
|
|
930
930
|
var text = url.readAsText();
|
|
931
|
-
return SetTheory_getInstance().
|
|
931
|
+
return SetTheory_getInstance().x3y(_this__u8e3s4, text);
|
|
932
932
|
} catch ($p) {
|
|
933
933
|
if ($p instanceof InvalidUrlException) {
|
|
934
934
|
var e = $p;
|
|
935
|
-
throw e.
|
|
935
|
+
throw e.m3x(_this__u8e3s4.context, _this__u8e3s4.signature, first, 0);
|
|
936
936
|
} else {
|
|
937
937
|
if ($p instanceof IOException_0) {
|
|
938
938
|
var e_0 = $p;
|
|
939
|
-
throw e_0.
|
|
939
|
+
throw e_0.l3x(_this__u8e3s4.context);
|
|
940
940
|
} else {
|
|
941
941
|
throw $p;
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
};
|
|
946
|
-
protoOf(Consult).
|
|
947
|
-
return this.
|
|
946
|
+
protoOf(Consult).a2o = function (_this__u8e3s4, first) {
|
|
947
|
+
return this.i2u(_this__u8e3s4, first);
|
|
948
948
|
};
|
|
949
949
|
var Consult_instance;
|
|
950
950
|
function Consult_getInstance() {
|
|
@@ -955,16 +955,16 @@
|
|
|
955
955
|
function CurrentCharConversion() {
|
|
956
956
|
CurrentCharConversion_instance = this;
|
|
957
957
|
NonBacktrackable.call(this, 'current_char_conversion');
|
|
958
|
-
this.
|
|
958
|
+
this.z3y_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```';
|
|
959
959
|
}
|
|
960
|
-
protoOf(CurrentCharConversion).
|
|
961
|
-
return this.
|
|
960
|
+
protoOf(CurrentCharConversion).w1x = function () {
|
|
961
|
+
return this.z3y_1;
|
|
962
962
|
};
|
|
963
|
-
protoOf(CurrentCharConversion).
|
|
964
|
-
return Companion_getInstance_1().
|
|
963
|
+
protoOf(CurrentCharConversion).z2u = function (_this__u8e3s4, first, second) {
|
|
964
|
+
return Companion_getInstance_1().u2l(_this__u8e3s4);
|
|
965
965
|
};
|
|
966
|
-
protoOf(CurrentCharConversion).
|
|
967
|
-
return this.
|
|
966
|
+
protoOf(CurrentCharConversion).r2k = function (_this__u8e3s4, first, second) {
|
|
967
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
968
968
|
};
|
|
969
969
|
var CurrentCharConversion_instance;
|
|
970
970
|
function CurrentCharConversion_getInstance() {
|
|
@@ -975,21 +975,21 @@
|
|
|
975
975
|
function CurrentInput() {
|
|
976
976
|
CurrentInput_instance = this;
|
|
977
977
|
NonBacktrackable_0.call(this, 'current_input');
|
|
978
|
-
this.
|
|
978
|
+
this.b3z_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```';
|
|
979
979
|
}
|
|
980
|
-
protoOf(CurrentInput).
|
|
981
|
-
return this.
|
|
980
|
+
protoOf(CurrentInput).w1x = function () {
|
|
981
|
+
return this.b3z_1;
|
|
982
982
|
};
|
|
983
|
-
protoOf(CurrentInput).
|
|
984
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
983
|
+
protoOf(CurrentInput).i2u = function (_this__u8e3s4, first) {
|
|
984
|
+
var channel = IOPrimitiveUtils_getInstance().c3z(_this__u8e3s4, 0);
|
|
985
985
|
// Inline function 'kotlin.let' call
|
|
986
|
-
var it = _this__u8e3s4.context.
|
|
987
|
-
var tmp0_elvis_lhs = it.
|
|
988
|
-
var currentChannel = tmp0_elvis_lhs == null ? it.
|
|
989
|
-
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
986
|
+
var it = _this__u8e3s4.context.l1y();
|
|
987
|
+
var tmp0_elvis_lhs = it.wr();
|
|
988
|
+
var currentChannel = tmp0_elvis_lhs == null ? it.v1y() : tmp0_elvis_lhs;
|
|
989
|
+
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().m2l(_this__u8e3s4, first, currentChannel.m22()), VOID, []) : equals(channel, currentChannel) ? _this__u8e3s4.replySuccess(VOID, VOID, []) : _this__u8e3s4.replyFail(VOID, []);
|
|
990
990
|
};
|
|
991
|
-
protoOf(CurrentInput).
|
|
992
|
-
return this.
|
|
991
|
+
protoOf(CurrentInput).a2o = function (_this__u8e3s4, first) {
|
|
992
|
+
return this.i2u(_this__u8e3s4, first);
|
|
993
993
|
};
|
|
994
994
|
var CurrentInput_instance;
|
|
995
995
|
function CurrentInput_getInstance() {
|
|
@@ -1000,21 +1000,21 @@
|
|
|
1000
1000
|
function CurrentOutput() {
|
|
1001
1001
|
CurrentOutput_instance = this;
|
|
1002
1002
|
NonBacktrackable_0.call(this, 'current_output');
|
|
1003
|
-
this.
|
|
1003
|
+
this.e3z_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```';
|
|
1004
1004
|
}
|
|
1005
|
-
protoOf(CurrentOutput).
|
|
1006
|
-
return this.
|
|
1005
|
+
protoOf(CurrentOutput).w1x = function () {
|
|
1006
|
+
return this.e3z_1;
|
|
1007
1007
|
};
|
|
1008
|
-
protoOf(CurrentOutput).
|
|
1009
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
1008
|
+
protoOf(CurrentOutput).i2u = function (_this__u8e3s4, first) {
|
|
1009
|
+
var channel = IOPrimitiveUtils_getInstance().c3z(_this__u8e3s4, 0);
|
|
1010
1010
|
// Inline function 'kotlin.let' call
|
|
1011
|
-
var it = _this__u8e3s4.context.
|
|
1012
|
-
var tmp0_elvis_lhs = it.
|
|
1013
|
-
var currentChannel = tmp0_elvis_lhs == null ? it.
|
|
1014
|
-
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
1011
|
+
var it = _this__u8e3s4.context.m1y();
|
|
1012
|
+
var tmp0_elvis_lhs = it.wr();
|
|
1013
|
+
var currentChannel = tmp0_elvis_lhs == null ? it.w1y() : tmp0_elvis_lhs;
|
|
1014
|
+
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().m2l(_this__u8e3s4, first, currentChannel.m22()), VOID, []) : equals(channel, currentChannel) ? _this__u8e3s4.replySuccess(VOID, VOID, []) : _this__u8e3s4.replyFail(VOID, []);
|
|
1015
1015
|
};
|
|
1016
|
-
protoOf(CurrentOutput).
|
|
1017
|
-
return this.
|
|
1016
|
+
protoOf(CurrentOutput).a2o = function (_this__u8e3s4, first) {
|
|
1017
|
+
return this.i2u(_this__u8e3s4, first);
|
|
1018
1018
|
};
|
|
1019
1019
|
var CurrentOutput_instance;
|
|
1020
1020
|
function CurrentOutput_getInstance() {
|
|
@@ -1025,13 +1025,13 @@
|
|
|
1025
1025
|
function FlushOutput() {
|
|
1026
1026
|
FlushOutput_instance = this;
|
|
1027
1027
|
NonBacktrackable_0.call(this, 'flush_output');
|
|
1028
|
-
this.
|
|
1028
|
+
this.g3z_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```';
|
|
1029
1029
|
}
|
|
1030
|
-
protoOf(FlushOutput).
|
|
1031
|
-
return this.
|
|
1030
|
+
protoOf(FlushOutput).w1x = function () {
|
|
1031
|
+
return this.g3z_1;
|
|
1032
1032
|
};
|
|
1033
|
-
protoOf(FlushOutput).
|
|
1034
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
1033
|
+
protoOf(FlushOutput).i2u = function (_this__u8e3s4, first) {
|
|
1034
|
+
var channel = IOPrimitiveUtils_getInstance().h3z(_this__u8e3s4, 0);
|
|
1035
1035
|
var tmp;
|
|
1036
1036
|
try {
|
|
1037
1037
|
channel.flush();
|
|
@@ -1048,8 +1048,8 @@
|
|
|
1048
1048
|
}
|
|
1049
1049
|
return tmp;
|
|
1050
1050
|
};
|
|
1051
|
-
protoOf(FlushOutput).
|
|
1052
|
-
return this.
|
|
1051
|
+
protoOf(FlushOutput).a2o = function (_this__u8e3s4, first) {
|
|
1052
|
+
return this.i2u(_this__u8e3s4, first);
|
|
1053
1053
|
};
|
|
1054
1054
|
var FlushOutput_instance;
|
|
1055
1055
|
function FlushOutput_getInstance() {
|
|
@@ -1060,16 +1060,16 @@
|
|
|
1060
1060
|
function GetByte1() {
|
|
1061
1061
|
GetByte1_instance = this;
|
|
1062
1062
|
NonBacktrackable_0.call(this, 'get_byte');
|
|
1063
|
-
this.
|
|
1063
|
+
this.j3z_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```';
|
|
1064
1064
|
}
|
|
1065
|
-
protoOf(GetByte1).
|
|
1066
|
-
return this.
|
|
1065
|
+
protoOf(GetByte1).w1x = function () {
|
|
1066
|
+
return this.j3z_1;
|
|
1067
1067
|
};
|
|
1068
|
-
protoOf(GetByte1).
|
|
1069
|
-
return Companion_getInstance_1().
|
|
1068
|
+
protoOf(GetByte1).i2u = function (_this__u8e3s4, first) {
|
|
1069
|
+
return Companion_getInstance_1().u2l(_this__u8e3s4);
|
|
1070
1070
|
};
|
|
1071
|
-
protoOf(GetByte1).
|
|
1072
|
-
return this.
|
|
1071
|
+
protoOf(GetByte1).a2o = function (_this__u8e3s4, first) {
|
|
1072
|
+
return this.i2u(_this__u8e3s4, first);
|
|
1073
1073
|
};
|
|
1074
1074
|
var GetByte1_instance;
|
|
1075
1075
|
function GetByte1_getInstance() {
|
|
@@ -1080,16 +1080,16 @@
|
|
|
1080
1080
|
function GetByte2() {
|
|
1081
1081
|
GetByte2_instance = this;
|
|
1082
1082
|
NonBacktrackable.call(this, 'get_byte');
|
|
1083
|
-
this.
|
|
1083
|
+
this.l3z_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```';
|
|
1084
1084
|
}
|
|
1085
|
-
protoOf(GetByte2).
|
|
1086
|
-
return this.
|
|
1085
|
+
protoOf(GetByte2).w1x = function () {
|
|
1086
|
+
return this.l3z_1;
|
|
1087
1087
|
};
|
|
1088
|
-
protoOf(GetByte2).
|
|
1089
|
-
return Companion_getInstance_1().
|
|
1088
|
+
protoOf(GetByte2).z2u = function (_this__u8e3s4, first, second) {
|
|
1089
|
+
return Companion_getInstance_1().u2l(_this__u8e3s4);
|
|
1090
1090
|
};
|
|
1091
|
-
protoOf(GetByte2).
|
|
1092
|
-
return this.
|
|
1091
|
+
protoOf(GetByte2).r2k = function (_this__u8e3s4, first, second) {
|
|
1092
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
1093
1093
|
};
|
|
1094
1094
|
var GetByte2_instance;
|
|
1095
1095
|
function GetByte2_getInstance() {
|
|
@@ -1100,17 +1100,17 @@
|
|
|
1100
1100
|
function GetChar1() {
|
|
1101
1101
|
GetChar1_instance = this;
|
|
1102
1102
|
NonBacktrackable_0.call(this, 'get_char');
|
|
1103
|
-
this.
|
|
1103
|
+
this.n3z_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```';
|
|
1104
1104
|
}
|
|
1105
|
-
protoOf(GetChar1).
|
|
1106
|
-
return this.
|
|
1105
|
+
protoOf(GetChar1).w1x = function () {
|
|
1106
|
+
return this.n3z_1;
|
|
1107
1107
|
};
|
|
1108
|
-
protoOf(GetChar1).
|
|
1109
|
-
IOPrimitiveUtils_getInstance().
|
|
1110
|
-
return IOPrimitiveUtils_getInstance().
|
|
1108
|
+
protoOf(GetChar1).i2u = function (_this__u8e3s4, first) {
|
|
1109
|
+
IOPrimitiveUtils_getInstance().o3z(_this__u8e3s4, 0);
|
|
1110
|
+
return IOPrimitiveUtils_getInstance().p3z(_this__u8e3s4, IOPrimitiveUtils_getInstance().h3y(_this__u8e3s4), first);
|
|
1111
1111
|
};
|
|
1112
|
-
protoOf(GetChar1).
|
|
1113
|
-
return this.
|
|
1112
|
+
protoOf(GetChar1).a2o = function (_this__u8e3s4, first) {
|
|
1113
|
+
return this.i2u(_this__u8e3s4, first);
|
|
1114
1114
|
};
|
|
1115
1115
|
var GetChar1_instance;
|
|
1116
1116
|
function GetChar1_getInstance() {
|
|
@@ -1121,18 +1121,18 @@
|
|
|
1121
1121
|
function GetChar2() {
|
|
1122
1122
|
GetChar2_instance = this;
|
|
1123
1123
|
NonBacktrackable.call(this, 'get_char');
|
|
1124
|
-
this.
|
|
1124
|
+
this.r3z_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```';
|
|
1125
1125
|
}
|
|
1126
|
-
protoOf(GetChar2).
|
|
1127
|
-
return this.
|
|
1126
|
+
protoOf(GetChar2).w1x = function () {
|
|
1127
|
+
return this.r3z_1;
|
|
1128
1128
|
};
|
|
1129
|
-
protoOf(GetChar2).
|
|
1130
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
1131
|
-
IOPrimitiveUtils_getInstance().
|
|
1132
|
-
return IOPrimitiveUtils_getInstance().
|
|
1129
|
+
protoOf(GetChar2).z2u = function (_this__u8e3s4, first, second) {
|
|
1130
|
+
var channel = IOPrimitiveUtils_getInstance().l3y(_this__u8e3s4, 0);
|
|
1131
|
+
IOPrimitiveUtils_getInstance().o3z(_this__u8e3s4, 1);
|
|
1132
|
+
return IOPrimitiveUtils_getInstance().p3z(_this__u8e3s4, channel, second);
|
|
1133
1133
|
};
|
|
1134
|
-
protoOf(GetChar2).
|
|
1135
|
-
return this.
|
|
1134
|
+
protoOf(GetChar2).r2k = function (_this__u8e3s4, first, second) {
|
|
1135
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
1136
1136
|
};
|
|
1137
1137
|
var GetChar2_instance;
|
|
1138
1138
|
function GetChar2_getInstance() {
|
|
@@ -1143,17 +1143,17 @@
|
|
|
1143
1143
|
function GetCode1() {
|
|
1144
1144
|
GetCode1_instance = this;
|
|
1145
1145
|
NonBacktrackable_0.call(this, 'get_code');
|
|
1146
|
-
this.
|
|
1146
|
+
this.t3z_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```';
|
|
1147
1147
|
}
|
|
1148
|
-
protoOf(GetCode1).
|
|
1149
|
-
return this.
|
|
1148
|
+
protoOf(GetCode1).w1x = function () {
|
|
1149
|
+
return this.t3z_1;
|
|
1150
1150
|
};
|
|
1151
|
-
protoOf(GetCode1).
|
|
1152
|
-
IOPrimitiveUtils_getInstance().
|
|
1153
|
-
return IOPrimitiveUtils_getInstance().
|
|
1151
|
+
protoOf(GetCode1).i2u = function (_this__u8e3s4, first) {
|
|
1152
|
+
IOPrimitiveUtils_getInstance().u3z(_this__u8e3s4, 0);
|
|
1153
|
+
return IOPrimitiveUtils_getInstance().v3z(_this__u8e3s4, IOPrimitiveUtils_getInstance().h3y(_this__u8e3s4), first);
|
|
1154
1154
|
};
|
|
1155
|
-
protoOf(GetCode1).
|
|
1156
|
-
return this.
|
|
1155
|
+
protoOf(GetCode1).a2o = function (_this__u8e3s4, first) {
|
|
1156
|
+
return this.i2u(_this__u8e3s4, first);
|
|
1157
1157
|
};
|
|
1158
1158
|
var GetCode1_instance;
|
|
1159
1159
|
function GetCode1_getInstance() {
|
|
@@ -1164,18 +1164,18 @@
|
|
|
1164
1164
|
function GetCode2() {
|
|
1165
1165
|
GetCode2_instance = this;
|
|
1166
1166
|
NonBacktrackable.call(this, 'get_code');
|
|
1167
|
-
this.
|
|
1167
|
+
this.x3z_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```';
|
|
1168
1168
|
}
|
|
1169
|
-
protoOf(GetCode2).
|
|
1170
|
-
return this.
|
|
1169
|
+
protoOf(GetCode2).w1x = function () {
|
|
1170
|
+
return this.x3z_1;
|
|
1171
1171
|
};
|
|
1172
|
-
protoOf(GetCode2).
|
|
1173
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
1174
|
-
IOPrimitiveUtils_getInstance().
|
|
1175
|
-
return IOPrimitiveUtils_getInstance().
|
|
1172
|
+
protoOf(GetCode2).z2u = function (_this__u8e3s4, first, second) {
|
|
1173
|
+
var channel = IOPrimitiveUtils_getInstance().l3y(_this__u8e3s4, 0);
|
|
1174
|
+
IOPrimitiveUtils_getInstance().u3z(_this__u8e3s4, 1);
|
|
1175
|
+
return IOPrimitiveUtils_getInstance().v3z(_this__u8e3s4, channel, second);
|
|
1176
1176
|
};
|
|
1177
|
-
protoOf(GetCode2).
|
|
1178
|
-
return this.
|
|
1177
|
+
protoOf(GetCode2).r2k = function (_this__u8e3s4, first, second) {
|
|
1178
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
1179
1179
|
};
|
|
1180
1180
|
var GetCode2_instance;
|
|
1181
1181
|
function GetCode2_getInstance() {
|
|
@@ -1190,129 +1190,129 @@
|
|
|
1190
1190
|
return constructCallableReference(function (p0_0) {
|
|
1191
1191
|
var tmp0 = p0;
|
|
1192
1192
|
return alias(tmp0, p0_0);
|
|
1193
|
-
}, 1, 0,
|
|
1193
|
+
}, 1, 0, 105, 'alias', [p0]);
|
|
1194
1194
|
}
|
|
1195
1195
|
function IOPrimitiveUtils$propertiesOf$slambda$lambda_0(it) {
|
|
1196
1196
|
return it === '$current';
|
|
1197
1197
|
}
|
|
1198
1198
|
function _get_INPUT_STREAM_TERM_PATTERN__5fd8p6($this) {
|
|
1199
|
-
var tmp0 = $this.
|
|
1199
|
+
var tmp0 = $this.q3x_1;
|
|
1200
1200
|
var tmp = KProperty1;
|
|
1201
1201
|
// Inline function 'kotlin.getValue' call
|
|
1202
1202
|
/* dead property reference removed */
|
|
1203
|
-
return tmp0.
|
|
1203
|
+
return tmp0.h2();
|
|
1204
1204
|
}
|
|
1205
1205
|
function _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf($this) {
|
|
1206
|
-
var tmp0 = $this.
|
|
1206
|
+
var tmp0 = $this.r3x_1;
|
|
1207
1207
|
var tmp = KProperty1;
|
|
1208
1208
|
// Inline function 'kotlin.getValue' call
|
|
1209
1209
|
/* dead property reference removed */
|
|
1210
|
-
return tmp0.
|
|
1210
|
+
return tmp0.h2();
|
|
1211
1211
|
}
|
|
1212
1212
|
function _get_PROPERTY_TYPE_PATTERN__5nq864($this) {
|
|
1213
|
-
var tmp0 = $this.
|
|
1213
|
+
var tmp0 = $this.s3x_1;
|
|
1214
1214
|
var tmp = KProperty1;
|
|
1215
1215
|
// Inline function 'kotlin.getValue' call
|
|
1216
1216
|
/* dead property reference removed */
|
|
1217
|
-
return tmp0.
|
|
1217
|
+
return tmp0.h2();
|
|
1218
1218
|
}
|
|
1219
1219
|
function _get_PROPERTY_REPOSITION_PATTERN__lznuii($this) {
|
|
1220
|
-
var tmp0 = $this.
|
|
1220
|
+
var tmp0 = $this.t3x_1;
|
|
1221
1221
|
var tmp = KProperty1;
|
|
1222
1222
|
// Inline function 'kotlin.getValue' call
|
|
1223
1223
|
/* dead property reference removed */
|
|
1224
|
-
return tmp0.
|
|
1224
|
+
return tmp0.h2();
|
|
1225
1225
|
}
|
|
1226
1226
|
function _get_PROPERTY_EOF_ACTION_PATTERN__8k2shv($this) {
|
|
1227
|
-
var tmp0 = $this.
|
|
1227
|
+
var tmp0 = $this.u3x_1;
|
|
1228
1228
|
var tmp = KProperty1;
|
|
1229
1229
|
// Inline function 'kotlin.getValue' call
|
|
1230
1230
|
/* dead property reference removed */
|
|
1231
|
-
return tmp0.
|
|
1231
|
+
return tmp0.h2();
|
|
1232
1232
|
}
|
|
1233
1233
|
function _get_PROPERTY_ALIAS_PATTERN__wipd2s($this) {
|
|
1234
|
-
var tmp0 = $this.
|
|
1234
|
+
var tmp0 = $this.v3x_1;
|
|
1235
1235
|
var tmp = KProperty1;
|
|
1236
1236
|
// Inline function 'kotlin.getValue' call
|
|
1237
1237
|
/* dead property reference removed */
|
|
1238
|
-
return tmp0.
|
|
1238
|
+
return tmp0.h2();
|
|
1239
1239
|
}
|
|
1240
1240
|
function _get_PROPERTY_INPUT__z2zr91($this) {
|
|
1241
|
-
var tmp0 = $this.
|
|
1241
|
+
var tmp0 = $this.w3x_1;
|
|
1242
1242
|
var tmp = KProperty1;
|
|
1243
1243
|
// Inline function 'kotlin.getValue' call
|
|
1244
1244
|
/* dead property reference removed */
|
|
1245
|
-
return tmp0.
|
|
1245
|
+
return tmp0.h2();
|
|
1246
1246
|
}
|
|
1247
1247
|
function _get_PROPERTY_OUTPUT__1pem9m($this) {
|
|
1248
|
-
var tmp0 = $this.
|
|
1248
|
+
var tmp0 = $this.x3x_1;
|
|
1249
1249
|
var tmp = KProperty1;
|
|
1250
1250
|
// Inline function 'kotlin.getValue' call
|
|
1251
1251
|
/* dead property reference removed */
|
|
1252
|
-
return tmp0.
|
|
1252
|
+
return tmp0.h2();
|
|
1253
1253
|
}
|
|
1254
1254
|
function _get_PROPERTY_TYPE_TEXT__9rpcwt($this) {
|
|
1255
|
-
var tmp0 = $this.
|
|
1255
|
+
var tmp0 = $this.y3x_1;
|
|
1256
1256
|
var tmp = KProperty1;
|
|
1257
1257
|
// Inline function 'kotlin.getValue' call
|
|
1258
1258
|
/* dead property reference removed */
|
|
1259
|
-
return tmp0.
|
|
1259
|
+
return tmp0.h2();
|
|
1260
1260
|
}
|
|
1261
1261
|
function _get_PROPERTY_REPOSITION_FALSE__i73t3b($this) {
|
|
1262
|
-
var tmp0 = $this.
|
|
1262
|
+
var tmp0 = $this.z3x_1;
|
|
1263
1263
|
var tmp = KProperty1;
|
|
1264
1264
|
// Inline function 'kotlin.getValue' call
|
|
1265
1265
|
/* dead property reference removed */
|
|
1266
|
-
return tmp0.
|
|
1266
|
+
return tmp0.h2();
|
|
1267
1267
|
}
|
|
1268
1268
|
function _get_PROPERTY_EOF_ACTION_EOF_CODE__he3pvl($this) {
|
|
1269
|
-
var tmp0 = $this.
|
|
1269
|
+
var tmp0 = $this.a3y_1;
|
|
1270
1270
|
var tmp = KProperty1;
|
|
1271
1271
|
// Inline function 'kotlin.getValue' call
|
|
1272
1272
|
/* dead property reference removed */
|
|
1273
|
-
return tmp0.
|
|
1273
|
+
return tmp0.h2();
|
|
1274
1274
|
}
|
|
1275
1275
|
function _get_OPTION_QUOTED_PATTERN__n2ri42($this) {
|
|
1276
|
-
var tmp0 = $this.
|
|
1276
|
+
var tmp0 = $this.b3y_1;
|
|
1277
1277
|
var tmp = KProperty1;
|
|
1278
1278
|
// Inline function 'kotlin.getValue' call
|
|
1279
1279
|
/* dead property reference removed */
|
|
1280
|
-
return tmp0.
|
|
1280
|
+
return tmp0.h2();
|
|
1281
1281
|
}
|
|
1282
1282
|
function _get_OPTION_NUMBER_VARS_PATTERN__p98ste($this) {
|
|
1283
|
-
var tmp0 = $this.
|
|
1283
|
+
var tmp0 = $this.c3y_1;
|
|
1284
1284
|
var tmp = KProperty1;
|
|
1285
1285
|
// Inline function 'kotlin.getValue' call
|
|
1286
1286
|
/* dead property reference removed */
|
|
1287
|
-
return tmp0.
|
|
1287
|
+
return tmp0.h2();
|
|
1288
1288
|
}
|
|
1289
1289
|
function _get_OPTION_IGNORE_OPS_PATTERN__cpse4v($this) {
|
|
1290
|
-
var tmp0 = $this.
|
|
1290
|
+
var tmp0 = $this.d3y_1;
|
|
1291
1291
|
var tmp = KProperty1;
|
|
1292
1292
|
// Inline function 'kotlin.getValue' call
|
|
1293
1293
|
/* dead property reference removed */
|
|
1294
|
-
return tmp0.
|
|
1294
|
+
return tmp0.h2();
|
|
1295
1295
|
}
|
|
1296
1296
|
function _get_INFO_VARIABLES_PATTERN__bhp1h0($this) {
|
|
1297
|
-
var tmp0 = $this.
|
|
1297
|
+
var tmp0 = $this.e3y_1;
|
|
1298
1298
|
var tmp = KProperty1;
|
|
1299
1299
|
// Inline function 'kotlin.getValue' call
|
|
1300
1300
|
/* dead property reference removed */
|
|
1301
|
-
return tmp0.
|
|
1301
|
+
return tmp0.h2();
|
|
1302
1302
|
}
|
|
1303
1303
|
function _get_INFO_VARIABLE_NAMES_PATTERN__j3oaom($this) {
|
|
1304
|
-
var tmp0 = $this.
|
|
1304
|
+
var tmp0 = $this.f3y_1;
|
|
1305
1305
|
var tmp = KProperty1;
|
|
1306
1306
|
// Inline function 'kotlin.getValue' call
|
|
1307
1307
|
/* dead property reference removed */
|
|
1308
|
-
return tmp0.
|
|
1308
|
+
return tmp0.h2();
|
|
1309
1309
|
}
|
|
1310
1310
|
function _get_INFO_SINGLETONS_PATTERN__y21s87($this) {
|
|
1311
|
-
var tmp0 = $this.
|
|
1311
|
+
var tmp0 = $this.g3y_1;
|
|
1312
1312
|
var tmp = KProperty1;
|
|
1313
1313
|
// Inline function 'kotlin.getValue' call
|
|
1314
1314
|
/* dead property reference removed */
|
|
1315
|
-
return tmp0.
|
|
1315
|
+
return tmp0.h2();
|
|
1316
1316
|
}
|
|
1317
1317
|
function _get_validPropertiesPattern__7s1t06($this) {
|
|
1318
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)]);
|
|
@@ -1407,8 +1407,8 @@
|
|
|
1407
1407
|
var _iterator__ex2g4s = vNames.n();
|
|
1408
1408
|
while (_iterator__ex2g4s.q()) {
|
|
1409
1409
|
var item = _iterator__ex2g4s.r();
|
|
1410
|
-
var a = item.
|
|
1411
|
-
var v = item.
|
|
1410
|
+
var a = item.he();
|
|
1411
|
+
var v = item.ie();
|
|
1412
1412
|
var tmp$ret$2 = Companion_getInstance_2().of('=', [a, v]);
|
|
1413
1413
|
destination.l(tmp$ret$2);
|
|
1414
1414
|
}
|
|
@@ -1477,7 +1477,7 @@
|
|
|
1477
1477
|
}
|
|
1478
1478
|
function _get_singletons__bihqrn($this, $receiver) {
|
|
1479
1479
|
// Inline function 'kotlin.sequences.groupBy' call
|
|
1480
|
-
var tmp0 = $receiver.
|
|
1480
|
+
var tmp0 = $receiver.gx();
|
|
1481
1481
|
// Inline function 'kotlin.sequences.groupByTo' call
|
|
1482
1482
|
var destination = LinkedHashMap_init_$Create$();
|
|
1483
1483
|
var _iterator__ex2g4s = tmp0.n();
|
|
@@ -1485,7 +1485,7 @@
|
|
|
1485
1485
|
var element = _iterator__ex2g4s.r();
|
|
1486
1486
|
var key = element;
|
|
1487
1487
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1488
|
-
var value = destination.
|
|
1488
|
+
var value = destination.k2(key);
|
|
1489
1489
|
var tmp;
|
|
1490
1490
|
if (value == null) {
|
|
1491
1491
|
var answer = ArrayList_init_$Create$_0();
|
|
@@ -1511,9 +1511,9 @@
|
|
|
1511
1511
|
var _iterator__ex2g4s = $receiver.n();
|
|
1512
1512
|
while (_iterator__ex2g4s.q()) {
|
|
1513
1513
|
var element = _iterator__ex2g4s.r();
|
|
1514
|
-
var key = Companion_getInstance_0().of(element.
|
|
1514
|
+
var key = Companion_getInstance_0().of(element.p2());
|
|
1515
1515
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1516
|
-
var value = destination.
|
|
1516
|
+
var value = destination.k2(key);
|
|
1517
1517
|
var tmp;
|
|
1518
1518
|
if (value == null) {
|
|
1519
1519
|
var answer = ArrayList_init_$Create$_0();
|
|
@@ -1533,9 +1533,9 @@
|
|
|
1533
1533
|
while (_iterator__ex2g4s_0.q()) {
|
|
1534
1534
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
1535
1535
|
// Inline function 'kotlin.collections.component1' call
|
|
1536
|
-
var n = element_0.
|
|
1536
|
+
var n = element_0.g2();
|
|
1537
1537
|
// Inline function 'kotlin.collections.component2' call
|
|
1538
|
-
var vs = element_0.
|
|
1538
|
+
var vs = element_0.h2();
|
|
1539
1539
|
var tmp_0 = asSequence(vs);
|
|
1540
1540
|
var list_0 = map(tmp_0, IOPrimitiveUtils$toAssignments$lambda(n));
|
|
1541
1541
|
addAll(destination_0, list_0);
|
|
@@ -1546,18 +1546,18 @@
|
|
|
1546
1546
|
var tmp0_safe_receiver = (!($receiver == null) ? isInterface($receiver, Struct) : false) ? $receiver : null;
|
|
1547
1547
|
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.getArgAt(0);
|
|
1548
1548
|
var tmp1_safe_receiver = (!(tmp == null) ? isInterface(tmp, Atom) : false) ? tmp : null;
|
|
1549
|
-
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1549
|
+
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h2();
|
|
1550
1550
|
}
|
|
1551
1551
|
function replyOpeningStream($this, $receiver, channel, third, alias) {
|
|
1552
1552
|
alias = alias === VOID ? null : alias;
|
|
1553
|
-
var streamTerm = channel.
|
|
1554
|
-
var tmp = Companion_getInstance_1().
|
|
1553
|
+
var streamTerm = channel.m22();
|
|
1554
|
+
var tmp = Companion_getInstance_1().m2l($receiver, third, streamTerm);
|
|
1555
1555
|
return $receiver.replyWithBuildingSideEffects(tmp, VOID, IOPrimitiveUtils$replyOpeningStream$lambda(alias, channel));
|
|
1556
1556
|
}
|
|
1557
1557
|
function replyOpeningStream_0($this, $receiver, channel, third, alias) {
|
|
1558
1558
|
alias = alias === VOID ? null : alias;
|
|
1559
|
-
var streamTerm = channel.
|
|
1560
|
-
var tmp = Companion_getInstance_1().
|
|
1559
|
+
var streamTerm = channel.m22();
|
|
1560
|
+
var tmp = Companion_getInstance_1().m2l($receiver, third, streamTerm);
|
|
1561
1561
|
return $receiver.replyWithBuildingSideEffects(tmp, VOID, IOPrimitiveUtils$replyOpeningStream$lambda_0(alias, channel));
|
|
1562
1562
|
}
|
|
1563
1563
|
function IOPrimitiveUtils$INPUT_STREAM_TERM_PATTERN$delegate$lambda() {
|
|
@@ -1566,7 +1566,7 @@
|
|
|
1566
1566
|
function IOPrimitiveUtils$_get_INPUT_STREAM_TERM_PATTERN_$ref_59oxnp() {
|
|
1567
1567
|
return constructCallableReference(function (p0) {
|
|
1568
1568
|
return _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(p0);
|
|
1569
|
-
}, 1, 0,
|
|
1569
|
+
}, 1, 0, 106);
|
|
1570
1570
|
}
|
|
1571
1571
|
function IOPrimitiveUtils$OUTPUT_STREAM_TERM_PATTERN$delegate$lambda() {
|
|
1572
1572
|
return Companion_instance_5.streamTerm();
|
|
@@ -1574,7 +1574,7 @@
|
|
|
1574
1574
|
function IOPrimitiveUtils$_get_OUTPUT_STREAM_TERM_PATTERN_$ref_kcdkmo() {
|
|
1575
1575
|
return constructCallableReference(function (p0) {
|
|
1576
1576
|
return _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(p0);
|
|
1577
|
-
}, 1, 0,
|
|
1577
|
+
}, 1, 0, 107);
|
|
1578
1578
|
}
|
|
1579
1579
|
function IOPrimitiveUtils$PROPERTY_TYPE_PATTERN$delegate$lambda() {
|
|
1580
1580
|
return Companion_getInstance_2().of('type', [Companion_getInstance_3().anonymous()]);
|
|
@@ -1582,7 +1582,7 @@
|
|
|
1582
1582
|
function IOPrimitiveUtils$_get_PROPERTY_TYPE_PATTERN_$ref_qcyh3d() {
|
|
1583
1583
|
return constructCallableReference(function (p0) {
|
|
1584
1584
|
return _get_PROPERTY_TYPE_PATTERN__5nq864(p0);
|
|
1585
|
-
}, 1, 0,
|
|
1585
|
+
}, 1, 0, 108);
|
|
1586
1586
|
}
|
|
1587
1587
|
function IOPrimitiveUtils$PROPERTY_REPOSITION_PATTERN$delegate$lambda() {
|
|
1588
1588
|
return Companion_getInstance_2().of('reposition', [Companion_getInstance_3().anonymous()]);
|
|
@@ -1590,7 +1590,7 @@
|
|
|
1590
1590
|
function IOPrimitiveUtils$_get_PROPERTY_REPOSITION_PATTERN_$ref_uil93p() {
|
|
1591
1591
|
return constructCallableReference(function (p0) {
|
|
1592
1592
|
return _get_PROPERTY_REPOSITION_PATTERN__lznuii(p0);
|
|
1593
|
-
}, 1, 0,
|
|
1593
|
+
}, 1, 0, 109);
|
|
1594
1594
|
}
|
|
1595
1595
|
function IOPrimitiveUtils$PROPERTY_EOF_ACTION_PATTERN$delegate$lambda() {
|
|
1596
1596
|
return Companion_getInstance_2().of('eof_action', [Companion_getInstance_3().anonymous()]);
|
|
@@ -1598,7 +1598,7 @@
|
|
|
1598
1598
|
function IOPrimitiveUtils$_get_PROPERTY_EOF_ACTION_PATTERN_$ref_bt8ai0() {
|
|
1599
1599
|
return constructCallableReference(function (p0) {
|
|
1600
1600
|
return _get_PROPERTY_EOF_ACTION_PATTERN__8k2shv(p0);
|
|
1601
|
-
}, 1, 0,
|
|
1601
|
+
}, 1, 0, 110);
|
|
1602
1602
|
}
|
|
1603
1603
|
function IOPrimitiveUtils$PROPERTY_ALIAS_PATTERN$delegate$lambda() {
|
|
1604
1604
|
return alias(IOPrimitiveUtils_getInstance());
|
|
@@ -1606,7 +1606,7 @@
|
|
|
1606
1606
|
function IOPrimitiveUtils$_get_PROPERTY_ALIAS_PATTERN_$ref_qs5lfb() {
|
|
1607
1607
|
return constructCallableReference(function (p0) {
|
|
1608
1608
|
return _get_PROPERTY_ALIAS_PATTERN__wipd2s(p0);
|
|
1609
|
-
}, 1, 0,
|
|
1609
|
+
}, 1, 0, 111);
|
|
1610
1610
|
}
|
|
1611
1611
|
function IOPrimitiveUtils$PROPERTY_INPUT$delegate$lambda() {
|
|
1612
1612
|
return Companion_getInstance_0().of('input');
|
|
@@ -1614,7 +1614,7 @@
|
|
|
1614
1614
|
function IOPrimitiveUtils$_get_PROPERTY_INPUT_$ref_hltzoy() {
|
|
1615
1615
|
return constructCallableReference(function (p0) {
|
|
1616
1616
|
return _get_PROPERTY_INPUT__z2zr91(p0);
|
|
1617
|
-
}, 1, 0,
|
|
1617
|
+
}, 1, 0, 112);
|
|
1618
1618
|
}
|
|
1619
1619
|
function IOPrimitiveUtils$PROPERTY_OUTPUT$delegate$lambda() {
|
|
1620
1620
|
return Companion_getInstance_0().of('output');
|
|
@@ -1622,7 +1622,7 @@
|
|
|
1622
1622
|
function IOPrimitiveUtils$_get_PROPERTY_OUTPUT_$ref_9ccgyp() {
|
|
1623
1623
|
return constructCallableReference(function (p0) {
|
|
1624
1624
|
return _get_PROPERTY_OUTPUT__1pem9m(p0);
|
|
1625
|
-
}, 1, 0,
|
|
1625
|
+
}, 1, 0, 113);
|
|
1626
1626
|
}
|
|
1627
1627
|
function IOPrimitiveUtils$PROPERTY_TYPE_TEXT$delegate$lambda() {
|
|
1628
1628
|
return Companion_getInstance_2().of('type', [Companion_getInstance_0().of('text')]);
|
|
@@ -1630,15 +1630,15 @@
|
|
|
1630
1630
|
function IOPrimitiveUtils$_get_PROPERTY_TYPE_TEXT_$ref_47hbty() {
|
|
1631
1631
|
return constructCallableReference(function (p0) {
|
|
1632
1632
|
return _get_PROPERTY_TYPE_TEXT__9rpcwt(p0);
|
|
1633
|
-
}, 1, 0,
|
|
1633
|
+
}, 1, 0, 114);
|
|
1634
1634
|
}
|
|
1635
1635
|
function IOPrimitiveUtils$PROPERTY_REPOSITION_FALSE$delegate$lambda() {
|
|
1636
|
-
return Companion_getInstance_2().of('reposition', [Companion_getInstance_4().
|
|
1636
|
+
return Companion_getInstance_2().of('reposition', [Companion_getInstance_4().xw_1]);
|
|
1637
1637
|
}
|
|
1638
1638
|
function IOPrimitiveUtils$_get_PROPERTY_REPOSITION_FALSE_$ref_jx0m6() {
|
|
1639
1639
|
return constructCallableReference(function (p0) {
|
|
1640
1640
|
return _get_PROPERTY_REPOSITION_FALSE__i73t3b(p0);
|
|
1641
|
-
}, 1, 0,
|
|
1641
|
+
}, 1, 0, 115);
|
|
1642
1642
|
}
|
|
1643
1643
|
function IOPrimitiveUtils$PROPERTY_EOF_ACTION_EOF_CODE$delegate$lambda() {
|
|
1644
1644
|
return Companion_getInstance_2().of('eof_action', [Companion_getInstance_0().of('eof_code')]);
|
|
@@ -1646,7 +1646,7 @@
|
|
|
1646
1646
|
function IOPrimitiveUtils$_get_PROPERTY_EOF_ACTION_EOF_CODE_$ref_1cwy66() {
|
|
1647
1647
|
return constructCallableReference(function (p0) {
|
|
1648
1648
|
return _get_PROPERTY_EOF_ACTION_EOF_CODE__he3pvl(p0);
|
|
1649
|
-
}, 1, 0,
|
|
1649
|
+
}, 1, 0, 116);
|
|
1650
1650
|
}
|
|
1651
1651
|
function IOPrimitiveUtils$OPTION_QUOTED_PATTERN$delegate$lambda() {
|
|
1652
1652
|
return quoted(IOPrimitiveUtils_getInstance());
|
|
@@ -1654,7 +1654,7 @@
|
|
|
1654
1654
|
function IOPrimitiveUtils$_get_OPTION_QUOTED_PATTERN_$ref_nxjfbr() {
|
|
1655
1655
|
return constructCallableReference(function (p0) {
|
|
1656
1656
|
return _get_OPTION_QUOTED_PATTERN__n2ri42(p0);
|
|
1657
|
-
}, 1, 0,
|
|
1657
|
+
}, 1, 0, 117);
|
|
1658
1658
|
}
|
|
1659
1659
|
function IOPrimitiveUtils$OPTION_NUMBER_VARS_PATTERN$delegate$lambda() {
|
|
1660
1660
|
return numberVars(IOPrimitiveUtils_getInstance());
|
|
@@ -1662,7 +1662,7 @@
|
|
|
1662
1662
|
function IOPrimitiveUtils$_get_OPTION_NUMBER_VARS_PATTERN_$ref_pdk9ph() {
|
|
1663
1663
|
return constructCallableReference(function (p0) {
|
|
1664
1664
|
return _get_OPTION_NUMBER_VARS_PATTERN__p98ste(p0);
|
|
1665
|
-
}, 1, 0,
|
|
1665
|
+
}, 1, 0, 118);
|
|
1666
1666
|
}
|
|
1667
1667
|
function IOPrimitiveUtils$OPTION_IGNORE_OPS_PATTERN$delegate$lambda() {
|
|
1668
1668
|
return ignoreOps(IOPrimitiveUtils_getInstance());
|
|
@@ -1670,7 +1670,7 @@
|
|
|
1670
1670
|
function IOPrimitiveUtils$_get_OPTION_IGNORE_OPS_PATTERN_$ref_vvsa9g() {
|
|
1671
1671
|
return constructCallableReference(function (p0) {
|
|
1672
1672
|
return _get_OPTION_IGNORE_OPS_PATTERN__cpse4v(p0);
|
|
1673
|
-
}, 1, 0,
|
|
1673
|
+
}, 1, 0, 119);
|
|
1674
1674
|
}
|
|
1675
1675
|
function IOPrimitiveUtils$INFO_VARIABLES_PATTERN$delegate$lambda() {
|
|
1676
1676
|
return variables(IOPrimitiveUtils_getInstance());
|
|
@@ -1678,7 +1678,7 @@
|
|
|
1678
1678
|
function IOPrimitiveUtils$_get_INFO_VARIABLES_PATTERN_$ref_ih2rd5() {
|
|
1679
1679
|
return constructCallableReference(function (p0) {
|
|
1680
1680
|
return _get_INFO_VARIABLES_PATTERN__bhp1h0(p0);
|
|
1681
|
-
}, 1, 0,
|
|
1681
|
+
}, 1, 0, 120);
|
|
1682
1682
|
}
|
|
1683
1683
|
function IOPrimitiveUtils$INFO_VARIABLE_NAMES_PATTERN$delegate$lambda() {
|
|
1684
1684
|
return variableNames(IOPrimitiveUtils_getInstance());
|
|
@@ -1686,7 +1686,7 @@
|
|
|
1686
1686
|
function IOPrimitiveUtils$_get_INFO_VARIABLE_NAMES_PATTERN_$ref_lzmk91() {
|
|
1687
1687
|
return constructCallableReference(function (p0) {
|
|
1688
1688
|
return _get_INFO_VARIABLE_NAMES_PATTERN__j3oaom(p0);
|
|
1689
|
-
}, 1, 0,
|
|
1689
|
+
}, 1, 0, 121);
|
|
1690
1690
|
}
|
|
1691
1691
|
function IOPrimitiveUtils$INFO_SINGLETONS_PATTERN$delegate$lambda() {
|
|
1692
1692
|
return singletons(IOPrimitiveUtils_getInstance());
|
|
@@ -1694,106 +1694,106 @@
|
|
|
1694
1694
|
function IOPrimitiveUtils$_get_INFO_SINGLETONS_PATTERN_$ref_8msi4i() {
|
|
1695
1695
|
return constructCallableReference(function (p0) {
|
|
1696
1696
|
return _get_INFO_SINGLETONS_PATTERN__y21s87(p0);
|
|
1697
|
-
}, 1, 0,
|
|
1697
|
+
}, 1, 0, 122);
|
|
1698
1698
|
}
|
|
1699
1699
|
function IOPrimitiveUtils$quoted$ref(p0) {
|
|
1700
1700
|
return constructCallableReference(function (p0_0) {
|
|
1701
1701
|
var tmp0 = p0;
|
|
1702
1702
|
return quoted(tmp0, p0_0);
|
|
1703
|
-
}, 1, 0,
|
|
1703
|
+
}, 1, 0, 123, 'quoted', [p0]);
|
|
1704
1704
|
}
|
|
1705
1705
|
function IOPrimitiveUtils$ignoreOps$ref(p0) {
|
|
1706
1706
|
return constructCallableReference(function (p0_0) {
|
|
1707
1707
|
var tmp0 = p0;
|
|
1708
1708
|
return ignoreOps(tmp0, p0_0);
|
|
1709
|
-
}, 1, 0,
|
|
1709
|
+
}, 1, 0, 124, 'ignoreOps', [p0]);
|
|
1710
1710
|
}
|
|
1711
1711
|
function IOPrimitiveUtils$numberVars$ref(p0) {
|
|
1712
1712
|
return constructCallableReference(function (p0_0) {
|
|
1713
1713
|
var tmp0 = p0;
|
|
1714
1714
|
return numberVars(tmp0, p0_0);
|
|
1715
|
-
}, 1, 0,
|
|
1715
|
+
}, 1, 0, 125, 'numberVars', [p0]);
|
|
1716
1716
|
}
|
|
1717
1717
|
function IOPrimitiveUtils$_get_validOptionsPattern_$lambda_r088xw(it) {
|
|
1718
1718
|
return map(sequenceOf([true, false]), it);
|
|
1719
1719
|
}
|
|
1720
1720
|
function IOPrimitiveUtils$propertiesOf$slambda($channel, $this_propertiesOf, resultContinuation) {
|
|
1721
|
-
this.
|
|
1722
|
-
this.
|
|
1721
|
+
this.g40_1 = $channel;
|
|
1722
|
+
this.h40_1 = $this_propertiesOf;
|
|
1723
1723
|
CoroutineImpl.call(this, resultContinuation);
|
|
1724
1724
|
}
|
|
1725
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1726
|
-
var tmp = this.
|
|
1727
|
-
tmp.
|
|
1728
|
-
tmp.
|
|
1729
|
-
return tmp.
|
|
1725
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).j40 = function ($this$sequence, $completion) {
|
|
1726
|
+
var tmp = this.k40($this$sequence, $completion);
|
|
1727
|
+
tmp.t8_1 = Unit_instance;
|
|
1728
|
+
tmp.u8_1 = null;
|
|
1729
|
+
return tmp.z8();
|
|
1730
1730
|
};
|
|
1731
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1732
|
-
return this.
|
|
1731
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).q9 = function (p1, $completion) {
|
|
1732
|
+
return this.j40(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
1733
1733
|
};
|
|
1734
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1735
|
-
var suspendResult = this.
|
|
1734
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).z8 = function () {
|
|
1735
|
+
var suspendResult = this.t8_1;
|
|
1736
1736
|
$sm: do
|
|
1737
1737
|
try {
|
|
1738
|
-
var tmp = this.
|
|
1738
|
+
var tmp = this.r8_1;
|
|
1739
1739
|
switch (tmp) {
|
|
1740
1740
|
case 0:
|
|
1741
|
-
this.
|
|
1742
|
-
var tmp0_subject = this.
|
|
1741
|
+
this.s8_1 = 7;
|
|
1742
|
+
var tmp0_subject = this.g40_1;
|
|
1743
1743
|
if (isInterface(tmp0_subject, InputChannel)) {
|
|
1744
|
-
this.
|
|
1745
|
-
suspendResult = this.
|
|
1744
|
+
this.r8_1 = 3;
|
|
1745
|
+
suspendResult = this.i40_1.bf(_get_PROPERTY_INPUT__z2zr91(IOPrimitiveUtils_getInstance()), this);
|
|
1746
1746
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1747
1747
|
return suspendResult;
|
|
1748
1748
|
}
|
|
1749
1749
|
continue $sm;
|
|
1750
1750
|
} else {
|
|
1751
1751
|
if (isInterface(tmp0_subject, OutputChannel)) {
|
|
1752
|
-
this.
|
|
1753
|
-
suspendResult = this.
|
|
1752
|
+
this.r8_1 = 1;
|
|
1753
|
+
suspendResult = this.i40_1.bf(_get_PROPERTY_OUTPUT__1pem9m(IOPrimitiveUtils_getInstance()), this);
|
|
1754
1754
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1755
1755
|
return suspendResult;
|
|
1756
1756
|
}
|
|
1757
1757
|
continue $sm;
|
|
1758
1758
|
} else {
|
|
1759
|
-
this.
|
|
1759
|
+
this.r8_1 = 5;
|
|
1760
1760
|
continue $sm;
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
1763
1763
|
|
|
1764
1764
|
case 1:
|
|
1765
|
-
this.
|
|
1766
|
-
var tmp_0 = this.
|
|
1767
|
-
var tmp_1 = this.
|
|
1765
|
+
this.r8_1 = 2;
|
|
1766
|
+
var tmp_0 = this.h40_1.context.m1y();
|
|
1767
|
+
var tmp_1 = this.g40_1;
|
|
1768
1768
|
var tmp_2 = tmp_0.aliasesOf(isInterface(tmp_1, OutputChannel) ? tmp_1 : THROW_CCE());
|
|
1769
1769
|
var tmp_3 = filterNot(tmp_2, IOPrimitiveUtils$propertiesOf$slambda$lambda_0);
|
|
1770
|
-
suspendResult = this.
|
|
1770
|
+
suspendResult = this.i40_1.ef(map(tmp_3, IOPrimitiveUtils$alias$ref(IOPrimitiveUtils_getInstance())), this);
|
|
1771
1771
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1772
1772
|
return suspendResult;
|
|
1773
1773
|
}
|
|
1774
1774
|
|
|
1775
1775
|
continue $sm;
|
|
1776
1776
|
case 2:
|
|
1777
|
-
this.
|
|
1777
|
+
this.r8_1 = 5;
|
|
1778
1778
|
continue $sm;
|
|
1779
1779
|
case 3:
|
|
1780
|
-
this.
|
|
1781
|
-
var tmp_4 = this.
|
|
1782
|
-
var tmp_5 = this.
|
|
1780
|
+
this.r8_1 = 4;
|
|
1781
|
+
var tmp_4 = this.h40_1.context.l1y();
|
|
1782
|
+
var tmp_5 = this.g40_1;
|
|
1783
1783
|
var tmp_6 = tmp_4.aliasesOf(isInterface(tmp_5, InputChannel) ? tmp_5 : THROW_CCE());
|
|
1784
1784
|
var tmp_7 = filterNot(tmp_6, IOPrimitiveUtils$propertiesOf$slambda$lambda);
|
|
1785
|
-
suspendResult = this.
|
|
1785
|
+
suspendResult = this.i40_1.ef(map(tmp_7, IOPrimitiveUtils$alias$ref(IOPrimitiveUtils_getInstance())), this);
|
|
1786
1786
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1787
1787
|
return suspendResult;
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
1790
|
continue $sm;
|
|
1791
1791
|
case 4:
|
|
1792
|
-
this.
|
|
1792
|
+
this.r8_1 = 5;
|
|
1793
1793
|
continue $sm;
|
|
1794
1794
|
case 5:
|
|
1795
|
-
this.
|
|
1796
|
-
suspendResult = this.
|
|
1795
|
+
this.r8_1 = 6;
|
|
1796
|
+
suspendResult = this.i40_1.bf(_get_PROPERTY_TYPE_TEXT__9rpcwt(IOPrimitiveUtils_getInstance()), this);
|
|
1797
1797
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1798
1798
|
return suspendResult;
|
|
1799
1799
|
}
|
|
@@ -1802,28 +1802,28 @@
|
|
|
1802
1802
|
case 6:
|
|
1803
1803
|
return Unit_instance;
|
|
1804
1804
|
case 7:
|
|
1805
|
-
throw this.
|
|
1805
|
+
throw this.u8_1;
|
|
1806
1806
|
}
|
|
1807
1807
|
} catch ($p) {
|
|
1808
1808
|
var e = $p;
|
|
1809
|
-
if (this.
|
|
1809
|
+
if (this.s8_1 === 7) {
|
|
1810
1810
|
throw e;
|
|
1811
1811
|
} else {
|
|
1812
|
-
this.
|
|
1813
|
-
this.
|
|
1812
|
+
this.r8_1 = this.s8_1;
|
|
1813
|
+
this.u8_1 = e;
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
1816
|
while (true);
|
|
1817
1817
|
};
|
|
1818
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1819
|
-
var i = new IOPrimitiveUtils$propertiesOf$slambda(this.
|
|
1820
|
-
i.
|
|
1818
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).k40 = function ($this$sequence, completion) {
|
|
1819
|
+
var i = new IOPrimitiveUtils$propertiesOf$slambda(this.g40_1, this.h40_1, completion);
|
|
1820
|
+
i.i40_1 = $this$sequence;
|
|
1821
1821
|
return i;
|
|
1822
1822
|
};
|
|
1823
1823
|
function IOPrimitiveUtils$propertiesOf$slambda_0($channel, $this_propertiesOf, resultContinuation) {
|
|
1824
1824
|
var i = new IOPrimitiveUtils$propertiesOf$slambda($channel, $this_propertiesOf, resultContinuation);
|
|
1825
1825
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
1826
|
-
return i.
|
|
1826
|
+
return i.j40($this$sequence, $completion);
|
|
1827
1827
|
}, 1);
|
|
1828
1828
|
}
|
|
1829
1829
|
function IOPrimitiveUtils$getOption$lambda(it) {
|
|
@@ -1841,16 +1841,16 @@
|
|
|
1841
1841
|
return !(it == null) ? isInterface(it, Truth) : false;
|
|
1842
1842
|
}
|
|
1843
1843
|
function IOPrimitiveUtils$getOption$lambda_3(it) {
|
|
1844
|
-
return it.
|
|
1844
|
+
return it.cx();
|
|
1845
1845
|
}
|
|
1846
1846
|
function IOPrimitiveUtils$getInfo$lambda(it) {
|
|
1847
1847
|
return !(it == null) ? isInterface(it, Struct) : false;
|
|
1848
1848
|
}
|
|
1849
1849
|
function IOPrimitiveUtils$_get_singletons_$lambda_kke618(it) {
|
|
1850
|
-
return it.
|
|
1850
|
+
return it.h2().s() === 1;
|
|
1851
1851
|
}
|
|
1852
1852
|
function IOPrimitiveUtils$_get_singletons_$lambda_kke618_0(it) {
|
|
1853
|
-
return it.
|
|
1853
|
+
return it.g2();
|
|
1854
1854
|
}
|
|
1855
1855
|
function IOPrimitiveUtils$toAssignments$lambda($n) {
|
|
1856
1856
|
return function (it) {
|
|
@@ -1859,81 +1859,81 @@
|
|
|
1859
1859
|
}
|
|
1860
1860
|
function IOPrimitiveUtils$open$lambda($this_open) {
|
|
1861
1861
|
return function (it) {
|
|
1862
|
-
return IOPrimitiveUtils_getInstance().
|
|
1862
|
+
return IOPrimitiveUtils_getInstance().l40($this_open, it);
|
|
1863
1863
|
};
|
|
1864
1864
|
}
|
|
1865
1865
|
function IOPrimitiveUtils$open$lambda_0($this_open) {
|
|
1866
1866
|
return function (it) {
|
|
1867
|
-
return IOPrimitiveUtils_getInstance().
|
|
1867
|
+
return IOPrimitiveUtils_getInstance().m40($this_open, it);
|
|
1868
1868
|
};
|
|
1869
1869
|
}
|
|
1870
1870
|
function IOPrimitiveUtils$replyOpeningStream$lambda($alias, $channel) {
|
|
1871
1871
|
return function ($this$replyWith) {
|
|
1872
1872
|
var tmp0_elvis_lhs = $alias;
|
|
1873
|
-
$this$replyWith.
|
|
1873
|
+
$this$replyWith.f2r(tmp0_elvis_lhs == null ? 'output_channel' + $channel.m22().get(1).toString() : tmp0_elvis_lhs, $channel);
|
|
1874
1874
|
return Unit_instance;
|
|
1875
1875
|
};
|
|
1876
1876
|
}
|
|
1877
1877
|
function IOPrimitiveUtils$replyOpeningStream$lambda_0($alias, $channel) {
|
|
1878
1878
|
return function ($this$replyWith) {
|
|
1879
1879
|
var tmp0_elvis_lhs = $alias;
|
|
1880
|
-
$this$replyWith.
|
|
1880
|
+
$this$replyWith.c2r(tmp0_elvis_lhs == null ? 'input_channel' + $channel.m22().get(1).toString() : tmp0_elvis_lhs, $channel);
|
|
1881
1881
|
return Unit_instance;
|
|
1882
1882
|
};
|
|
1883
1883
|
}
|
|
1884
1884
|
function IOPrimitiveUtils() {
|
|
1885
1885
|
IOPrimitiveUtils_instance = this;
|
|
1886
1886
|
var tmp = this;
|
|
1887
|
-
tmp.
|
|
1887
|
+
tmp.q3x_1 = lazy(IOPrimitiveUtils$INPUT_STREAM_TERM_PATTERN$delegate$lambda);
|
|
1888
1888
|
var tmp_0 = this;
|
|
1889
|
-
tmp_0.
|
|
1889
|
+
tmp_0.r3x_1 = lazy(IOPrimitiveUtils$OUTPUT_STREAM_TERM_PATTERN$delegate$lambda);
|
|
1890
1890
|
var tmp_1 = this;
|
|
1891
|
-
tmp_1.
|
|
1891
|
+
tmp_1.s3x_1 = lazy(IOPrimitiveUtils$PROPERTY_TYPE_PATTERN$delegate$lambda);
|
|
1892
1892
|
var tmp_2 = this;
|
|
1893
|
-
tmp_2.
|
|
1893
|
+
tmp_2.t3x_1 = lazy(IOPrimitiveUtils$PROPERTY_REPOSITION_PATTERN$delegate$lambda);
|
|
1894
1894
|
var tmp_3 = this;
|
|
1895
|
-
tmp_3.
|
|
1895
|
+
tmp_3.u3x_1 = lazy(IOPrimitiveUtils$PROPERTY_EOF_ACTION_PATTERN$delegate$lambda);
|
|
1896
1896
|
var tmp_4 = this;
|
|
1897
|
-
tmp_4.
|
|
1897
|
+
tmp_4.v3x_1 = lazy(IOPrimitiveUtils$PROPERTY_ALIAS_PATTERN$delegate$lambda);
|
|
1898
1898
|
var tmp_5 = this;
|
|
1899
|
-
tmp_5.
|
|
1899
|
+
tmp_5.w3x_1 = lazy(IOPrimitiveUtils$PROPERTY_INPUT$delegate$lambda);
|
|
1900
1900
|
var tmp_6 = this;
|
|
1901
|
-
tmp_6.
|
|
1901
|
+
tmp_6.x3x_1 = lazy(IOPrimitiveUtils$PROPERTY_OUTPUT$delegate$lambda);
|
|
1902
1902
|
var tmp_7 = this;
|
|
1903
|
-
tmp_7.
|
|
1903
|
+
tmp_7.y3x_1 = lazy(IOPrimitiveUtils$PROPERTY_TYPE_TEXT$delegate$lambda);
|
|
1904
1904
|
var tmp_8 = this;
|
|
1905
|
-
tmp_8.
|
|
1905
|
+
tmp_8.z3x_1 = lazy(IOPrimitiveUtils$PROPERTY_REPOSITION_FALSE$delegate$lambda);
|
|
1906
1906
|
var tmp_9 = this;
|
|
1907
|
-
tmp_9.
|
|
1907
|
+
tmp_9.a3y_1 = lazy(IOPrimitiveUtils$PROPERTY_EOF_ACTION_EOF_CODE$delegate$lambda);
|
|
1908
1908
|
var tmp_10 = this;
|
|
1909
|
-
tmp_10.
|
|
1909
|
+
tmp_10.b3y_1 = lazy(IOPrimitiveUtils$OPTION_QUOTED_PATTERN$delegate$lambda);
|
|
1910
1910
|
var tmp_11 = this;
|
|
1911
|
-
tmp_11.
|
|
1911
|
+
tmp_11.c3y_1 = lazy(IOPrimitiveUtils$OPTION_NUMBER_VARS_PATTERN$delegate$lambda);
|
|
1912
1912
|
var tmp_12 = this;
|
|
1913
|
-
tmp_12.
|
|
1913
|
+
tmp_12.d3y_1 = lazy(IOPrimitiveUtils$OPTION_IGNORE_OPS_PATTERN$delegate$lambda);
|
|
1914
1914
|
var tmp_13 = this;
|
|
1915
|
-
tmp_13.
|
|
1915
|
+
tmp_13.e3y_1 = lazy(IOPrimitiveUtils$INFO_VARIABLES_PATTERN$delegate$lambda);
|
|
1916
1916
|
var tmp_14 = this;
|
|
1917
|
-
tmp_14.
|
|
1917
|
+
tmp_14.f3y_1 = lazy(IOPrimitiveUtils$INFO_VARIABLE_NAMES_PATTERN$delegate$lambda);
|
|
1918
1918
|
var tmp_15 = this;
|
|
1919
|
-
tmp_15.
|
|
1919
|
+
tmp_15.g3y_1 = lazy(IOPrimitiveUtils$INFO_SINGLETONS_PATTERN$delegate$lambda);
|
|
1920
1920
|
}
|
|
1921
|
-
protoOf(IOPrimitiveUtils).
|
|
1921
|
+
protoOf(IOPrimitiveUtils).n40 = function (_this__u8e3s4, channel) {
|
|
1922
1922
|
return sequence(IOPrimitiveUtils$propertiesOf$slambda_0(channel, _this__u8e3s4, null));
|
|
1923
1923
|
};
|
|
1924
|
-
protoOf(IOPrimitiveUtils).
|
|
1924
|
+
protoOf(IOPrimitiveUtils).h3y = function (_this__u8e3s4) {
|
|
1925
1925
|
// Inline function 'kotlin.let' call
|
|
1926
|
-
var it = _this__u8e3s4.context.
|
|
1927
|
-
var tmp0_elvis_lhs = it.
|
|
1928
|
-
return tmp0_elvis_lhs == null ? it.
|
|
1926
|
+
var it = _this__u8e3s4.context.l1y();
|
|
1927
|
+
var tmp0_elvis_lhs = it.wr();
|
|
1928
|
+
return tmp0_elvis_lhs == null ? it.v1y() : tmp0_elvis_lhs;
|
|
1929
1929
|
};
|
|
1930
|
-
protoOf(IOPrimitiveUtils).
|
|
1930
|
+
protoOf(IOPrimitiveUtils).o40 = function (_this__u8e3s4) {
|
|
1931
1931
|
// Inline function 'kotlin.let' call
|
|
1932
|
-
var it = _this__u8e3s4.context.
|
|
1933
|
-
var tmp0_elvis_lhs = it.
|
|
1934
|
-
return tmp0_elvis_lhs == null ? it.
|
|
1932
|
+
var it = _this__u8e3s4.context.m1y();
|
|
1933
|
+
var tmp0_elvis_lhs = it.wr();
|
|
1934
|
+
return tmp0_elvis_lhs == null ? it.w1y() : tmp0_elvis_lhs;
|
|
1935
1935
|
};
|
|
1936
|
-
protoOf(IOPrimitiveUtils).
|
|
1936
|
+
protoOf(IOPrimitiveUtils).l40 = function (_this__u8e3s4, term) {
|
|
1937
1937
|
var tmp;
|
|
1938
1938
|
var tmp0 = _get_validPropertiesPattern__7s1t06(this);
|
|
1939
1939
|
var tmp$ret$0;
|
|
@@ -1942,7 +1942,7 @@
|
|
|
1942
1942
|
var _iterator__ex2g4s = tmp0.n();
|
|
1943
1943
|
while (_iterator__ex2g4s.q()) {
|
|
1944
1944
|
var element = _iterator__ex2g4s.r();
|
|
1945
|
-
if (Companion_getInstance_1().
|
|
1945
|
+
if (Companion_getInstance_1().n2l(_this__u8e3s4, term, element)) {
|
|
1946
1946
|
tmp$ret$0 = true;
|
|
1947
1947
|
break $l$block;
|
|
1948
1948
|
}
|
|
@@ -1956,7 +1956,7 @@
|
|
|
1956
1956
|
}
|
|
1957
1957
|
return tmp;
|
|
1958
1958
|
};
|
|
1959
|
-
protoOf(IOPrimitiveUtils).
|
|
1959
|
+
protoOf(IOPrimitiveUtils).m40 = function (_this__u8e3s4, term) {
|
|
1960
1960
|
var tmp;
|
|
1961
1961
|
var tmp0 = _get_supportedPropertiesPattern__x8u7bw(this);
|
|
1962
1962
|
var tmp$ret$0;
|
|
@@ -1965,7 +1965,7 @@
|
|
|
1965
1965
|
var _iterator__ex2g4s = tmp0.n();
|
|
1966
1966
|
while (_iterator__ex2g4s.q()) {
|
|
1967
1967
|
var element = _iterator__ex2g4s.r();
|
|
1968
|
-
if (Companion_getInstance_1().
|
|
1968
|
+
if (Companion_getInstance_1().n2l(_this__u8e3s4, term, element)) {
|
|
1969
1969
|
tmp$ret$0 = true;
|
|
1970
1970
|
break $l$block;
|
|
1971
1971
|
}
|
|
@@ -1979,7 +1979,7 @@
|
|
|
1979
1979
|
}
|
|
1980
1980
|
return tmp;
|
|
1981
1981
|
};
|
|
1982
|
-
protoOf(IOPrimitiveUtils).
|
|
1982
|
+
protoOf(IOPrimitiveUtils).p40 = function (_this__u8e3s4, term) {
|
|
1983
1983
|
var tmp;
|
|
1984
1984
|
var tmp0 = _get_validOptionsPattern__akhsd9(this);
|
|
1985
1985
|
var tmp$ret$0;
|
|
@@ -1988,7 +1988,7 @@
|
|
|
1988
1988
|
var _iterator__ex2g4s = tmp0.n();
|
|
1989
1989
|
while (_iterator__ex2g4s.q()) {
|
|
1990
1990
|
var element = _iterator__ex2g4s.r();
|
|
1991
|
-
if (Companion_getInstance_1().
|
|
1991
|
+
if (Companion_getInstance_1().n2l(_this__u8e3s4, term, element)) {
|
|
1992
1992
|
tmp$ret$0 = true;
|
|
1993
1993
|
break $l$block;
|
|
1994
1994
|
}
|
|
@@ -2002,7 +2002,7 @@
|
|
|
2002
2002
|
}
|
|
2003
2003
|
return tmp;
|
|
2004
2004
|
};
|
|
2005
|
-
protoOf(IOPrimitiveUtils).
|
|
2005
|
+
protoOf(IOPrimitiveUtils).q40 = function (_this__u8e3s4, term) {
|
|
2006
2006
|
var tmp;
|
|
2007
2007
|
var tmp0 = _get_validInfoPattern__dtwgth(this);
|
|
2008
2008
|
var tmp$ret$0;
|
|
@@ -2011,7 +2011,7 @@
|
|
|
2011
2011
|
var _iterator__ex2g4s = tmp0.n();
|
|
2012
2012
|
while (_iterator__ex2g4s.q()) {
|
|
2013
2013
|
var element = _iterator__ex2g4s.r();
|
|
2014
|
-
if (Companion_getInstance_1().
|
|
2014
|
+
if (Companion_getInstance_1().n2l(_this__u8e3s4, term, element)) {
|
|
2015
2015
|
tmp$ret$0 = true;
|
|
2016
2016
|
break $l$block;
|
|
2017
2017
|
}
|
|
@@ -2025,57 +2025,57 @@
|
|
|
2025
2025
|
}
|
|
2026
2026
|
return tmp;
|
|
2027
2027
|
};
|
|
2028
|
-
protoOf(IOPrimitiveUtils).
|
|
2029
|
-
Companion_getInstance_1().
|
|
2030
|
-
var tmp = _this__u8e3s4.arguments.
|
|
2028
|
+
protoOf(IOPrimitiveUtils).r40 = function (_this__u8e3s4, index) {
|
|
2029
|
+
Companion_getInstance_1().g2m(_this__u8e3s4, index);
|
|
2030
|
+
var tmp = _this__u8e3s4.arguments.x(index);
|
|
2031
2031
|
var list = isInterface(tmp, List) ? tmp : THROW_CCE();
|
|
2032
|
-
var _iterator__ex2g4s = list.
|
|
2032
|
+
var _iterator__ex2g4s = list.iv().n();
|
|
2033
2033
|
while (_iterator__ex2g4s.q()) {
|
|
2034
2034
|
var term = _iterator__ex2g4s.r();
|
|
2035
|
-
this.
|
|
2035
|
+
this.p40(_this__u8e3s4, term);
|
|
2036
2036
|
}
|
|
2037
2037
|
return _this__u8e3s4;
|
|
2038
2038
|
};
|
|
2039
|
-
protoOf(IOPrimitiveUtils).
|
|
2040
|
-
var list = _this__u8e3s4.arguments.
|
|
2039
|
+
protoOf(IOPrimitiveUtils).s40 = function (_this__u8e3s4, index) {
|
|
2040
|
+
var list = _this__u8e3s4.arguments.x(index);
|
|
2041
2041
|
var tmp;
|
|
2042
2042
|
if (isInterface(list, Var)) {
|
|
2043
2043
|
tmp = null;
|
|
2044
2044
|
} else {
|
|
2045
|
-
Companion_getInstance_1().
|
|
2045
|
+
Companion_getInstance_1().g2m(_this__u8e3s4, index);
|
|
2046
2046
|
var listOfInfo = (isInterface(list, List) ? list : THROW_CCE()).toList();
|
|
2047
2047
|
var _iterator__ex2g4s = listOfInfo.n();
|
|
2048
2048
|
while (_iterator__ex2g4s.q()) {
|
|
2049
2049
|
var term = _iterator__ex2g4s.r();
|
|
2050
|
-
this.
|
|
2050
|
+
this.q40(_this__u8e3s4, term);
|
|
2051
2051
|
}
|
|
2052
2052
|
tmp = listOfInfo;
|
|
2053
2053
|
}
|
|
2054
2054
|
return tmp;
|
|
2055
2055
|
};
|
|
2056
|
-
protoOf(IOPrimitiveUtils).
|
|
2057
|
-
this.
|
|
2058
|
-
var tmp = _this__u8e3s4.arguments.
|
|
2056
|
+
protoOf(IOPrimitiveUtils).t40 = function (_this__u8e3s4, index) {
|
|
2057
|
+
this.r40(_this__u8e3s4, index);
|
|
2058
|
+
var tmp = _this__u8e3s4.arguments.x(index);
|
|
2059
2059
|
var optionList = (isInterface(tmp, List) ? tmp : THROW_CCE()).toList();
|
|
2060
2060
|
var tmp_0;
|
|
2061
|
-
if (getOption(this, optionList, _this__u8e3s4.context.
|
|
2061
|
+
if (getOption(this, optionList, _this__u8e3s4.context.i1o(), _get_OPTION_QUOTED_PATTERN__n2ri42(this))) {
|
|
2062
2062
|
tmp_0 = FuncFormat_QUOTED_IF_NECESSARY_getInstance();
|
|
2063
2063
|
} else {
|
|
2064
2064
|
tmp_0 = FuncFormat_LITERAL_getInstance();
|
|
2065
2065
|
}
|
|
2066
2066
|
var funcFormat = tmp_0;
|
|
2067
2067
|
var tmp_1;
|
|
2068
|
-
if (getOption(this, optionList, _this__u8e3s4.context.
|
|
2068
|
+
if (getOption(this, optionList, _this__u8e3s4.context.i1o(), _get_OPTION_IGNORE_OPS_PATTERN__cpse4v(this))) {
|
|
2069
2069
|
tmp_1 = OpFormat_IGNORE_OPERATORS_getInstance();
|
|
2070
2070
|
} else {
|
|
2071
2071
|
tmp_1 = OpFormat_EXPRESSIONS_getInstance();
|
|
2072
2072
|
}
|
|
2073
2073
|
var opFormat = tmp_1;
|
|
2074
|
-
var numberVars = getOption(this, optionList, _this__u8e3s4.context.
|
|
2075
|
-
return Companion_instance_7.of(VarFormat_UNDERSCORE_getInstance(), opFormat, funcFormat, numberVars, _this__u8e3s4.context.
|
|
2074
|
+
var numberVars = getOption(this, optionList, _this__u8e3s4.context.i1o(), _get_OPTION_NUMBER_VARS_PATTERN__p98ste(this));
|
|
2075
|
+
return Companion_instance_7.of(VarFormat_UNDERSCORE_getInstance(), opFormat, funcFormat, numberVars, _this__u8e3s4.context.q1y());
|
|
2076
2076
|
};
|
|
2077
|
-
protoOf(IOPrimitiveUtils).
|
|
2078
|
-
var term = _this__u8e3s4.arguments.
|
|
2077
|
+
protoOf(IOPrimitiveUtils).u40 = function (_this__u8e3s4, index) {
|
|
2078
|
+
var term = _this__u8e3s4.arguments.x(index);
|
|
2079
2079
|
if (isInterface(term, Var))
|
|
2080
2080
|
return _this__u8e3s4;
|
|
2081
2081
|
else {
|
|
@@ -2087,7 +2087,7 @@
|
|
|
2087
2087
|
var _iterator__ex2g4s = tmp0.n();
|
|
2088
2088
|
while (_iterator__ex2g4s.q()) {
|
|
2089
2089
|
var element = _iterator__ex2g4s.r();
|
|
2090
|
-
if (Companion_getInstance_1().
|
|
2090
|
+
if (Companion_getInstance_1().n2l(_this__u8e3s4, term, element)) {
|
|
2091
2091
|
tmp$ret$0 = true;
|
|
2092
2092
|
break $l$block;
|
|
2093
2093
|
}
|
|
@@ -2099,17 +2099,17 @@
|
|
|
2099
2099
|
}
|
|
2100
2100
|
}
|
|
2101
2101
|
}
|
|
2102
|
-
throw Companion_instance_6.
|
|
2102
|
+
throw Companion_instance_6.t28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_PROPERTY_getInstance(), term, index);
|
|
2103
2103
|
};
|
|
2104
|
-
protoOf(IOPrimitiveUtils).
|
|
2105
|
-
Companion_getInstance_1().
|
|
2106
|
-
var term = _this__u8e3s4.arguments.
|
|
2107
|
-
var error = Companion_instance_6.
|
|
2104
|
+
protoOf(IOPrimitiveUtils).v40 = function (_this__u8e3s4, index) {
|
|
2105
|
+
Companion_getInstance_1().s2l(_this__u8e3s4, index);
|
|
2106
|
+
var term = _this__u8e3s4.arguments.x(index);
|
|
2107
|
+
var error = Companion_instance_6.t28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_SOURCE_SINK_getInstance(), term, index);
|
|
2108
2108
|
if (!isInterface(term, Atom)) {
|
|
2109
2109
|
throw error;
|
|
2110
2110
|
}
|
|
2111
2111
|
try {
|
|
2112
|
-
return Companion_instance_15.of(term.
|
|
2112
|
+
return Companion_instance_15.of(term.h2());
|
|
2113
2113
|
} catch ($p) {
|
|
2114
2114
|
if ($p instanceof InvalidUrlException) {
|
|
2115
2115
|
var _unused_var__etf5q3 = $p;
|
|
@@ -2119,27 +2119,27 @@
|
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
2121
2121
|
};
|
|
2122
|
-
protoOf(IOPrimitiveUtils).
|
|
2123
|
-
Companion_getInstance_1().
|
|
2124
|
-
Companion_getInstance_1().
|
|
2125
|
-
var tmp = _this__u8e3s4.arguments.
|
|
2122
|
+
protoOf(IOPrimitiveUtils).w40 = function (_this__u8e3s4, index) {
|
|
2123
|
+
Companion_getInstance_1().s2l(_this__u8e3s4, index);
|
|
2124
|
+
Companion_getInstance_1().b2m(_this__u8e3s4, index);
|
|
2125
|
+
var tmp = _this__u8e3s4.arguments.x(index);
|
|
2126
2126
|
var term = isInterface(tmp, Atom) ? tmp : THROW_CCE();
|
|
2127
|
-
if (!Companion_getInstance_8().
|
|
2128
|
-
throw Companion_instance_6.
|
|
2127
|
+
if (!Companion_getInstance_8().j3w_1.z(term)) {
|
|
2128
|
+
throw Companion_instance_6.t28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IO_MODE_getInstance(), term, index);
|
|
2129
2129
|
}
|
|
2130
2130
|
// Inline function 'kotlin.text.uppercase' call
|
|
2131
2131
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2132
|
-
var tmp$ret$0 = term.
|
|
2132
|
+
var tmp$ret$0 = term.h2().toUpperCase();
|
|
2133
2133
|
return valueOf(tmp$ret$0);
|
|
2134
2134
|
};
|
|
2135
|
-
protoOf(IOPrimitiveUtils).
|
|
2136
|
-
var term = _this__u8e3s4.arguments.
|
|
2135
|
+
protoOf(IOPrimitiveUtils).c3z = function (_this__u8e3s4, index) {
|
|
2136
|
+
var term = _this__u8e3s4.arguments.x(index);
|
|
2137
2137
|
if (isInterface(term, Var))
|
|
2138
2138
|
return null;
|
|
2139
2139
|
else {
|
|
2140
2140
|
if (isInterface(term, Struct))
|
|
2141
|
-
if (Companion_getInstance_1().
|
|
2142
|
-
var tmp1_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2141
|
+
if (Companion_getInstance_1().n2l(_this__u8e3s4, term, _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(this))) {
|
|
2142
|
+
var tmp1_elvis_lhs = firstOrNull(_this__u8e3s4.context.m1y().findByTerm(term));
|
|
2143
2143
|
var tmp;
|
|
2144
2144
|
if (tmp1_elvis_lhs == null) {
|
|
2145
2145
|
throw Companion_instance_8.forStream(_this__u8e3s4.context, term);
|
|
@@ -2147,8 +2147,8 @@
|
|
|
2147
2147
|
tmp = tmp1_elvis_lhs;
|
|
2148
2148
|
}
|
|
2149
2149
|
return tmp;
|
|
2150
|
-
} else if (Companion_getInstance_1().
|
|
2151
|
-
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2150
|
+
} else if (Companion_getInstance_1().n2l(_this__u8e3s4, term, _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(this))) {
|
|
2151
|
+
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.l1y().findByTerm(term));
|
|
2152
2152
|
var tmp_0;
|
|
2153
2153
|
if (tmp2_elvis_lhs == null) {
|
|
2154
2154
|
throw Companion_instance_8.forStream(_this__u8e3s4.context, term);
|
|
@@ -2158,43 +2158,43 @@
|
|
|
2158
2158
|
return tmp_0;
|
|
2159
2159
|
}
|
|
2160
2160
|
}
|
|
2161
|
-
throw Companion_instance_6.
|
|
2161
|
+
throw Companion_instance_6.t28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_OR_ALIAS_getInstance(), term, index);
|
|
2162
2162
|
};
|
|
2163
|
-
protoOf(IOPrimitiveUtils).
|
|
2164
|
-
var arg = _this__u8e3s4.arguments.
|
|
2163
|
+
protoOf(IOPrimitiveUtils).o3z = function (_this__u8e3s4, index) {
|
|
2164
|
+
var arg = _this__u8e3s4.arguments.x(index);
|
|
2165
2165
|
var tmp;
|
|
2166
2166
|
if (isInterface(arg, Var)) {
|
|
2167
2167
|
tmp = _this__u8e3s4;
|
|
2168
2168
|
} else {
|
|
2169
2169
|
if (isInterface(arg, Atom)) {
|
|
2170
2170
|
var tmp_0;
|
|
2171
|
-
if (arg.
|
|
2171
|
+
if (arg.h2() === 'end_of_file') {
|
|
2172
2172
|
tmp_0 = _this__u8e3s4;
|
|
2173
|
-
} else if (arg.
|
|
2173
|
+
} else if (arg.h2().length === 1) {
|
|
2174
2174
|
tmp_0 = _this__u8e3s4;
|
|
2175
2175
|
} else {
|
|
2176
|
-
throw Companion_instance_3.
|
|
2176
|
+
throw Companion_instance_3.o2b(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IN_CHARACTER_getInstance(), arg, index);
|
|
2177
2177
|
}
|
|
2178
2178
|
tmp = tmp_0;
|
|
2179
2179
|
} else {
|
|
2180
|
-
throw Companion_instance_3.
|
|
2180
|
+
throw Companion_instance_3.o2b(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IN_CHARACTER_getInstance(), arg, index);
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
2183
|
return tmp;
|
|
2184
2184
|
};
|
|
2185
|
-
protoOf(IOPrimitiveUtils).
|
|
2186
|
-
var term = _this__u8e3s4.arguments.
|
|
2185
|
+
protoOf(IOPrimitiveUtils).u3z = function (_this__u8e3s4, index) {
|
|
2186
|
+
var term = _this__u8e3s4.arguments.x(index);
|
|
2187
2187
|
var tmp;
|
|
2188
2188
|
if (isInterface(term, Var)) {
|
|
2189
2189
|
tmp = _this__u8e3s4;
|
|
2190
2190
|
} else {
|
|
2191
2191
|
if (!isInterface(term, Integer)) {
|
|
2192
|
-
tmp = Companion_getInstance_1().
|
|
2192
|
+
tmp = Companion_getInstance_1().f2m(_this__u8e3s4, index);
|
|
2193
2193
|
} else {
|
|
2194
|
-
if (term.equals(Companion_getInstance_6().
|
|
2194
|
+
if (term.equals(Companion_getInstance_6().t11_1)) {
|
|
2195
2195
|
tmp = _this__u8e3s4;
|
|
2196
2196
|
} else {
|
|
2197
|
-
if (Companion_getInstance_1().
|
|
2197
|
+
if (Companion_getInstance_1().j2m(term)) {
|
|
2198
2198
|
throw Companion_instance_9.of(_this__u8e3s4.context, _this__u8e3s4.signature, Limit_CHARACTER_CODE_getInstance());
|
|
2199
2199
|
} else {
|
|
2200
2200
|
tmp = _this__u8e3s4;
|
|
@@ -2204,14 +2204,14 @@
|
|
|
2204
2204
|
}
|
|
2205
2205
|
return tmp;
|
|
2206
2206
|
};
|
|
2207
|
-
protoOf(IOPrimitiveUtils).
|
|
2208
|
-
Companion_getInstance_1().
|
|
2209
|
-
Companion_getInstance_1().
|
|
2210
|
-
var tmp = _this__u8e3s4.arguments.
|
|
2207
|
+
protoOf(IOPrimitiveUtils).q3y = function (_this__u8e3s4, index) {
|
|
2208
|
+
Companion_getInstance_1().s2l(_this__u8e3s4, index);
|
|
2209
|
+
Companion_getInstance_1().w2l(_this__u8e3s4, index);
|
|
2210
|
+
var tmp = _this__u8e3s4.arguments.x(index);
|
|
2211
2211
|
var term = isInterface(tmp, Struct) ? tmp : THROW_CCE();
|
|
2212
2212
|
var tmp_0;
|
|
2213
2213
|
if (isInterface(term, Atom)) {
|
|
2214
|
-
var tmp0 = sequenceOf([_this__u8e3s4.context.
|
|
2214
|
+
var tmp0 = sequenceOf([_this__u8e3s4.context.l1y(), _this__u8e3s4.context.m1y()]);
|
|
2215
2215
|
var tmp$ret$0;
|
|
2216
2216
|
$l$block: {
|
|
2217
2217
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
@@ -2220,8 +2220,8 @@
|
|
|
2220
2220
|
var element = _iterator__ex2g4s.r();
|
|
2221
2221
|
// Inline function 'kotlin.collections.contains' call
|
|
2222
2222
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2223
|
-
var key = term.
|
|
2224
|
-
if ((isInterface(element, KtMap) ? element : THROW_CCE()).
|
|
2223
|
+
var key = term.h2();
|
|
2224
|
+
if ((isInterface(element, KtMap) ? element : THROW_CCE()).i2(key)) {
|
|
2225
2225
|
tmp$ret$0 = element;
|
|
2226
2226
|
break $l$block;
|
|
2227
2227
|
}
|
|
@@ -2229,7 +2229,7 @@
|
|
|
2229
2229
|
tmp$ret$0 = null;
|
|
2230
2230
|
}
|
|
2231
2231
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
2232
|
-
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.k2(term.h2());
|
|
2233
2233
|
var tmp_1;
|
|
2234
2234
|
if (tmp1_elvis_lhs == null) {
|
|
2235
2235
|
throw Companion_instance_8.forSourceSink(_this__u8e3s4.context, term);
|
|
@@ -2238,8 +2238,8 @@
|
|
|
2238
2238
|
}
|
|
2239
2239
|
tmp_0 = tmp_1;
|
|
2240
2240
|
} else {
|
|
2241
|
-
if (Companion_getInstance_1().
|
|
2242
|
-
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2241
|
+
if (Companion_getInstance_1().n2l(_this__u8e3s4, term, _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(this))) {
|
|
2242
|
+
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.m1y().findByTerm(term));
|
|
2243
2243
|
var tmp_2;
|
|
2244
2244
|
if (tmp2_elvis_lhs == null) {
|
|
2245
2245
|
throw Companion_instance_8.forStream(_this__u8e3s4.context, term);
|
|
@@ -2248,8 +2248,8 @@
|
|
|
2248
2248
|
}
|
|
2249
2249
|
tmp_0 = tmp_2;
|
|
2250
2250
|
} else {
|
|
2251
|
-
if (Companion_getInstance_1().
|
|
2252
|
-
var tmp3_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2251
|
+
if (Companion_getInstance_1().n2l(_this__u8e3s4, term, _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(this))) {
|
|
2252
|
+
var tmp3_elvis_lhs = firstOrNull(_this__u8e3s4.context.l1y().findByTerm(term));
|
|
2253
2253
|
var tmp_3;
|
|
2254
2254
|
if (tmp3_elvis_lhs == null) {
|
|
2255
2255
|
throw Companion_instance_8.forStream(_this__u8e3s4.context, term);
|
|
@@ -2258,33 +2258,33 @@
|
|
|
2258
2258
|
}
|
|
2259
2259
|
tmp_0 = tmp_3;
|
|
2260
2260
|
} else {
|
|
2261
|
-
throw Companion_instance_6.
|
|
2261
|
+
throw Companion_instance_6.t28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_OR_ALIAS_getInstance(), term, index);
|
|
2262
2262
|
}
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
2265
|
return tmp_0;
|
|
2266
2266
|
};
|
|
2267
|
-
protoOf(IOPrimitiveUtils).
|
|
2268
|
-
var channel = this.
|
|
2267
|
+
protoOf(IOPrimitiveUtils).l3y = function (_this__u8e3s4, index) {
|
|
2268
|
+
var channel = this.q3y(_this__u8e3s4, index);
|
|
2269
2269
|
var tmp;
|
|
2270
2270
|
if (isInterface(channel, InputChannel)) {
|
|
2271
2271
|
tmp = channel;
|
|
2272
2272
|
} else {
|
|
2273
|
-
throw Companion_instance_6.
|
|
2273
|
+
throw Companion_instance_6.t28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_TYPE_getInstance(), _this__u8e3s4.arguments.x(index), index);
|
|
2274
2274
|
}
|
|
2275
2275
|
return tmp;
|
|
2276
2276
|
};
|
|
2277
|
-
protoOf(IOPrimitiveUtils).
|
|
2278
|
-
var channel = this.
|
|
2277
|
+
protoOf(IOPrimitiveUtils).h3z = function (_this__u8e3s4, index) {
|
|
2278
|
+
var channel = this.q3y(_this__u8e3s4, index);
|
|
2279
2279
|
var tmp;
|
|
2280
2280
|
if (isInterface(channel, OutputChannel)) {
|
|
2281
2281
|
tmp = channel;
|
|
2282
2282
|
} else {
|
|
2283
|
-
throw Companion_instance_6.
|
|
2283
|
+
throw Companion_instance_6.t28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_TYPE_getInstance(), _this__u8e3s4.arguments.x(index), index);
|
|
2284
2284
|
}
|
|
2285
2285
|
return tmp;
|
|
2286
2286
|
};
|
|
2287
|
-
protoOf(IOPrimitiveUtils).
|
|
2287
|
+
protoOf(IOPrimitiveUtils).x40 = function (_this__u8e3s4, channel, term, formatter) {
|
|
2288
2288
|
var tmp;
|
|
2289
2289
|
try {
|
|
2290
2290
|
channel.write(format(term, formatter));
|
|
@@ -2301,10 +2301,10 @@
|
|
|
2301
2301
|
}
|
|
2302
2302
|
return tmp;
|
|
2303
2303
|
};
|
|
2304
|
-
protoOf(IOPrimitiveUtils).
|
|
2304
|
+
protoOf(IOPrimitiveUtils).y40 = function (_this__u8e3s4, channel, arg) {
|
|
2305
2305
|
var tmp;
|
|
2306
2306
|
try {
|
|
2307
|
-
channel.write(toString_0(arg.
|
|
2307
|
+
channel.write(toString_0(arg.m11().toChar()));
|
|
2308
2308
|
tmp = _this__u8e3s4.replySuccess(VOID, VOID, []);
|
|
2309
2309
|
} catch ($p) {
|
|
2310
2310
|
var tmp_0;
|
|
@@ -2318,10 +2318,10 @@
|
|
|
2318
2318
|
}
|
|
2319
2319
|
return tmp;
|
|
2320
2320
|
};
|
|
2321
|
-
protoOf(IOPrimitiveUtils).
|
|
2321
|
+
protoOf(IOPrimitiveUtils).z40 = function (_this__u8e3s4, channel, arg) {
|
|
2322
2322
|
var tmp;
|
|
2323
2323
|
try {
|
|
2324
|
-
channel.write(arg.
|
|
2324
|
+
channel.write(arg.h2());
|
|
2325
2325
|
tmp = _this__u8e3s4.replySuccess(VOID, VOID, []);
|
|
2326
2326
|
} catch ($p) {
|
|
2327
2327
|
var tmp_0;
|
|
@@ -2335,7 +2335,7 @@
|
|
|
2335
2335
|
}
|
|
2336
2336
|
return tmp;
|
|
2337
2337
|
};
|
|
2338
|
-
protoOf(IOPrimitiveUtils).
|
|
2338
|
+
protoOf(IOPrimitiveUtils).a41 = function (_this__u8e3s4, channel, arg) {
|
|
2339
2339
|
var tmp;
|
|
2340
2340
|
try {
|
|
2341
2341
|
var tmp0_safe_receiver = channel.peek();
|
|
@@ -2350,7 +2350,7 @@
|
|
|
2350
2350
|
}
|
|
2351
2351
|
var tmp2_elvis_lhs = tmp_0;
|
|
2352
2352
|
var code = tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2353
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2353
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().m2l(_this__u8e3s4, arg, Companion_getInstance_6().ofInt(code)), VOID, []);
|
|
2354
2354
|
} catch ($p) {
|
|
2355
2355
|
var tmp_2;
|
|
2356
2356
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2363,12 +2363,12 @@
|
|
|
2363
2363
|
}
|
|
2364
2364
|
return tmp;
|
|
2365
2365
|
};
|
|
2366
|
-
protoOf(IOPrimitiveUtils).
|
|
2366
|
+
protoOf(IOPrimitiveUtils).b41 = function (_this__u8e3s4, channel, arg) {
|
|
2367
2367
|
var tmp;
|
|
2368
2368
|
try {
|
|
2369
2369
|
var tmp0_elvis_lhs = channel.peek();
|
|
2370
2370
|
var char = tmp0_elvis_lhs == null ? 'end_of_file' : tmp0_elvis_lhs;
|
|
2371
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2371
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().m2l(_this__u8e3s4, arg, Companion_getInstance_0().of(char)), VOID, []);
|
|
2372
2372
|
} catch ($p) {
|
|
2373
2373
|
var tmp_0;
|
|
2374
2374
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2381,7 +2381,7 @@
|
|
|
2381
2381
|
}
|
|
2382
2382
|
return tmp;
|
|
2383
2383
|
};
|
|
2384
|
-
protoOf(IOPrimitiveUtils).
|
|
2384
|
+
protoOf(IOPrimitiveUtils).v3z = function (_this__u8e3s4, channel, arg) {
|
|
2385
2385
|
var tmp;
|
|
2386
2386
|
try {
|
|
2387
2387
|
var tmp0_safe_receiver = channel.read();
|
|
@@ -2396,7 +2396,7 @@
|
|
|
2396
2396
|
}
|
|
2397
2397
|
var tmp2_elvis_lhs = tmp_0;
|
|
2398
2398
|
var code = tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2399
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2399
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().m2l(_this__u8e3s4, arg, Companion_getInstance_6().ofInt(code)), VOID, []);
|
|
2400
2400
|
} catch ($p) {
|
|
2401
2401
|
var tmp_2;
|
|
2402
2402
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2409,12 +2409,12 @@
|
|
|
2409
2409
|
}
|
|
2410
2410
|
return tmp;
|
|
2411
2411
|
};
|
|
2412
|
-
protoOf(IOPrimitiveUtils).
|
|
2412
|
+
protoOf(IOPrimitiveUtils).p3z = function (_this__u8e3s4, channel, arg) {
|
|
2413
2413
|
var tmp;
|
|
2414
2414
|
try {
|
|
2415
2415
|
var tmp0_elvis_lhs = channel.read();
|
|
2416
2416
|
var char = tmp0_elvis_lhs == null ? 'end_of_file' : tmp0_elvis_lhs;
|
|
2417
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2417
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().m2l(_this__u8e3s4, arg, Companion_getInstance_0().of(char)), VOID, []);
|
|
2418
2418
|
} catch ($p) {
|
|
2419
2419
|
var tmp_0;
|
|
2420
2420
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2427,37 +2427,37 @@
|
|
|
2427
2427
|
}
|
|
2428
2428
|
return tmp;
|
|
2429
2429
|
};
|
|
2430
|
-
protoOf(IOPrimitiveUtils).
|
|
2430
|
+
protoOf(IOPrimitiveUtils).c41 = function (_this__u8e3s4, channel, arg, lastIsInfoList) {
|
|
2431
2431
|
try {
|
|
2432
|
-
var termsChannel = asTermChannel(channel, _this__u8e3s4.context.
|
|
2432
|
+
var termsChannel = asTermChannel(channel, _this__u8e3s4.context.q1y());
|
|
2433
2433
|
var tmp;
|
|
2434
2434
|
if (lastIsInfoList) {
|
|
2435
|
-
tmp = this.
|
|
2435
|
+
tmp = this.s40(_this__u8e3s4, get_lastIndex(_this__u8e3s4.arguments));
|
|
2436
2436
|
} else {
|
|
2437
2437
|
tmp = emptyList();
|
|
2438
2438
|
}
|
|
2439
2439
|
var infoList = tmp;
|
|
2440
|
-
if (!termsChannel.
|
|
2440
|
+
if (!termsChannel.p22())
|
|
2441
2441
|
return _this__u8e3s4.replyFail(VOID, []);
|
|
2442
2442
|
var read = termsChannel.read();
|
|
2443
2443
|
var tmp_0;
|
|
2444
2444
|
if (read == null) {
|
|
2445
2445
|
tmp_0 = _this__u8e3s4.replyFail(VOID, []);
|
|
2446
2446
|
} else {
|
|
2447
|
-
var variables_0 = variables(this, toList_0(read.
|
|
2448
|
-
var variableNames_0 = variableNames(this, toAssignments_0(this, read.
|
|
2447
|
+
var variables_0 = variables(this, toList_0(read.gx()));
|
|
2448
|
+
var variableNames_0 = variableNames(this, toAssignments_0(this, read.gx()));
|
|
2449
2449
|
var singletons_0 = singletons(this, toAssignments(this, _get_singletons__bihqrn(this, read)));
|
|
2450
2450
|
var tmp_1;
|
|
2451
2451
|
if (infoList == null) {
|
|
2452
2452
|
tmp_1 = null;
|
|
2453
2453
|
} else {
|
|
2454
2454
|
// Inline function 'kotlin.let' call
|
|
2455
|
-
var u = _this__u8e3s4.context.
|
|
2455
|
+
var u = _this__u8e3s4.context.i1o();
|
|
2456
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));
|
|
2457
2457
|
}
|
|
2458
2458
|
var tmp1_elvis_lhs = tmp_1;
|
|
2459
|
-
var info = tmp1_elvis_lhs == null ? Companion_getInstance_1().
|
|
2460
|
-
tmp_0 = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2459
|
+
var info = tmp1_elvis_lhs == null ? Companion_getInstance_1().m2l(_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().m2l(_this__u8e3s4, arg, read).plus(info), VOID, []);
|
|
2461
2461
|
}
|
|
2462
2462
|
return tmp_0;
|
|
2463
2463
|
} catch ($p) {
|
|
@@ -2468,7 +2468,7 @@
|
|
|
2468
2468
|
if ($p instanceof ParseException) {
|
|
2469
2469
|
var e_0 = $p;
|
|
2470
2470
|
var tmp_2 = Companion_instance_10;
|
|
2471
|
-
var tmp_3 = channel.
|
|
2471
|
+
var tmp_3 = channel.m22().toString();
|
|
2472
2472
|
var tmp_4 = e_0.line;
|
|
2473
2473
|
var tmp_5 = e_0.column;
|
|
2474
2474
|
var tmp2_elvis_lhs = e_0.message;
|
|
@@ -2479,19 +2479,19 @@
|
|
|
2479
2479
|
}
|
|
2480
2480
|
}
|
|
2481
2481
|
};
|
|
2482
|
-
protoOf(IOPrimitiveUtils).
|
|
2482
|
+
protoOf(IOPrimitiveUtils).d41 = function (_this__u8e3s4, channel, arg, lastIsInfoList, $super) {
|
|
2483
2483
|
lastIsInfoList = lastIsInfoList === VOID ? false : lastIsInfoList;
|
|
2484
|
-
return $super === VOID ? this.
|
|
2484
|
+
return $super === VOID ? this.c41(_this__u8e3s4, channel, arg, lastIsInfoList) : $super.c41.call(this, _this__u8e3s4, channel, arg, lastIsInfoList);
|
|
2485
2485
|
};
|
|
2486
|
-
protoOf(IOPrimitiveUtils).
|
|
2487
|
-
var url = this.
|
|
2488
|
-
var mode = this.
|
|
2489
|
-
Companion_getInstance_1().
|
|
2486
|
+
protoOf(IOPrimitiveUtils).e41 = function (_this__u8e3s4, third) {
|
|
2487
|
+
var url = this.v40(_this__u8e3s4, 0);
|
|
2488
|
+
var mode = this.w40(_this__u8e3s4, 1);
|
|
2489
|
+
Companion_getInstance_1().z2l(_this__u8e3s4, 2);
|
|
2490
2490
|
var tmp;
|
|
2491
|
-
if (_this__u8e3s4.arguments.
|
|
2492
|
-
Companion_getInstance_1().
|
|
2493
|
-
var tmp_0 = _this__u8e3s4.arguments.
|
|
2494
|
-
var tmp_1 = (isInterface(tmp_0, List) ? tmp_0 : THROW_CCE()).
|
|
2491
|
+
if (_this__u8e3s4.arguments.s() >= 4) {
|
|
2492
|
+
Companion_getInstance_1().g2m(_this__u8e3s4, 3);
|
|
2493
|
+
var tmp_0 = _this__u8e3s4.arguments.x(3);
|
|
2494
|
+
var tmp_1 = (isInterface(tmp_0, List) ? tmp_0 : THROW_CCE()).iv();
|
|
2495
2495
|
var tmp_2 = map(tmp_1, IOPrimitiveUtils$open$lambda(_this__u8e3s4));
|
|
2496
2496
|
tmp = toSet(map(tmp_2, IOPrimitiveUtils$open$lambda_0(_this__u8e3s4)));
|
|
2497
2497
|
} else {
|
|
@@ -2504,7 +2504,7 @@
|
|
|
2504
2504
|
var _iterator__ex2g4s = options.n();
|
|
2505
2505
|
while (_iterator__ex2g4s.q()) {
|
|
2506
2506
|
var element = _iterator__ex2g4s.r();
|
|
2507
|
-
if (Companion_getInstance_1().
|
|
2507
|
+
if (Companion_getInstance_1().n2l(_this__u8e3s4, _get_PROPERTY_ALIAS_PATTERN__wipd2s(IOPrimitiveUtils_getInstance()), element)) {
|
|
2508
2508
|
tmp$ret$0 = element;
|
|
2509
2509
|
break $l$block;
|
|
2510
2510
|
}
|
|
@@ -2516,7 +2516,7 @@
|
|
|
2516
2516
|
var tmp_3;
|
|
2517
2517
|
try {
|
|
2518
2518
|
var tmp_4;
|
|
2519
|
-
switch (mode.
|
|
2519
|
+
switch (mode.o2_1) {
|
|
2520
2520
|
case 0:
|
|
2521
2521
|
tmp_4 = replyOpeningStream_0(this, _this__u8e3s4, openInputChannel(url), third, alias);
|
|
2522
2522
|
break;
|
|
@@ -2538,9 +2538,9 @@
|
|
|
2538
2538
|
var tmp_6;
|
|
2539
2539
|
var tmp_7 = e.cause;
|
|
2540
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.
|
|
2541
|
+
tmp_6 = ExistenceError_init_$Create$(e.message, e, _this__u8e3s4.context, ObjectType_SOURCE_SINK_getInstance(), _this__u8e3s4.arguments.x(0));
|
|
2542
2542
|
} else {
|
|
2543
|
-
tmp_6 = e.
|
|
2543
|
+
tmp_6 = e.l3x(_this__u8e3s4.context);
|
|
2544
2544
|
}
|
|
2545
2545
|
throw tmp_6;
|
|
2546
2546
|
} else {
|
|
@@ -2558,13 +2558,13 @@
|
|
|
2558
2558
|
function Nl1() {
|
|
2559
2559
|
Nl1_instance = this;
|
|
2560
2560
|
NonBacktrackable_0.call(this, 'nl');
|
|
2561
|
-
this.
|
|
2561
|
+
this.g41_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```';
|
|
2562
2562
|
}
|
|
2563
|
-
protoOf(Nl1).
|
|
2564
|
-
return this.
|
|
2563
|
+
protoOf(Nl1).w1x = function () {
|
|
2564
|
+
return this.g41_1;
|
|
2565
2565
|
};
|
|
2566
|
-
protoOf(Nl1).
|
|
2567
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2566
|
+
protoOf(Nl1).i2u = function (_this__u8e3s4, first) {
|
|
2567
|
+
var channel = IOPrimitiveUtils_getInstance().h3z(_this__u8e3s4, 0);
|
|
2568
2568
|
var tmp;
|
|
2569
2569
|
try {
|
|
2570
2570
|
channel.write('\n');
|
|
@@ -2581,8 +2581,8 @@
|
|
|
2581
2581
|
}
|
|
2582
2582
|
return tmp;
|
|
2583
2583
|
};
|
|
2584
|
-
protoOf(Nl1).
|
|
2585
|
-
return this.
|
|
2584
|
+
protoOf(Nl1).a2o = function (_this__u8e3s4, first) {
|
|
2585
|
+
return this.i2u(_this__u8e3s4, first);
|
|
2586
2586
|
};
|
|
2587
2587
|
var Nl1_instance;
|
|
2588
2588
|
function Nl1_getInstance() {
|
|
@@ -2593,16 +2593,16 @@
|
|
|
2593
2593
|
function Open3() {
|
|
2594
2594
|
Open3_instance = this;
|
|
2595
2595
|
NonBacktrackable_1.call(this, 'open');
|
|
2596
|
-
this.
|
|
2596
|
+
this.i41_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```";
|
|
2597
2597
|
}
|
|
2598
|
-
protoOf(Open3).
|
|
2599
|
-
return this.
|
|
2598
|
+
protoOf(Open3).w1x = function () {
|
|
2599
|
+
return this.i41_1;
|
|
2600
2600
|
};
|
|
2601
|
-
protoOf(Open3).
|
|
2602
|
-
return IOPrimitiveUtils_getInstance().
|
|
2601
|
+
protoOf(Open3).t2z = function (_this__u8e3s4, first, second, third) {
|
|
2602
|
+
return IOPrimitiveUtils_getInstance().e41(_this__u8e3s4, third);
|
|
2603
2603
|
};
|
|
2604
|
-
protoOf(Open3).
|
|
2605
|
-
return this.
|
|
2604
|
+
protoOf(Open3).t2n = function (_this__u8e3s4, first, second, third) {
|
|
2605
|
+
return this.t2z(_this__u8e3s4, first, second, third);
|
|
2606
2606
|
};
|
|
2607
2607
|
var Open3_instance;
|
|
2608
2608
|
function Open3_getInstance() {
|
|
@@ -2613,16 +2613,16 @@
|
|
|
2613
2613
|
function Open4() {
|
|
2614
2614
|
Open4_instance = this;
|
|
2615
2615
|
NonBacktrackable_2.call(this, 'open');
|
|
2616
|
-
this.
|
|
2616
|
+
this.k41_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```";
|
|
2617
2617
|
}
|
|
2618
|
-
protoOf(Open4).
|
|
2619
|
-
return this.
|
|
2618
|
+
protoOf(Open4).w1x = function () {
|
|
2619
|
+
return this.k41_1;
|
|
2620
2620
|
};
|
|
2621
|
-
protoOf(Open4).
|
|
2622
|
-
return IOPrimitiveUtils_getInstance().
|
|
2621
|
+
protoOf(Open4).l41 = function (_this__u8e3s4, first, second, third, fourth) {
|
|
2622
|
+
return IOPrimitiveUtils_getInstance().e41(_this__u8e3s4, third);
|
|
2623
2623
|
};
|
|
2624
|
-
protoOf(Open4).
|
|
2625
|
-
return this.
|
|
2624
|
+
protoOf(Open4).q2m = function (_this__u8e3s4, first, second, third, fourth) {
|
|
2625
|
+
return this.l41(_this__u8e3s4, first, second, third, fourth);
|
|
2626
2626
|
};
|
|
2627
2627
|
var Open4_instance;
|
|
2628
2628
|
function Open4_getInstance() {
|
|
@@ -2633,16 +2633,16 @@
|
|
|
2633
2633
|
function PeekByte1() {
|
|
2634
2634
|
PeekByte1_instance = this;
|
|
2635
2635
|
NonBacktrackable_0.call(this, 'peek_byte');
|
|
2636
|
-
this.
|
|
2636
|
+
this.n41_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```';
|
|
2637
2637
|
}
|
|
2638
|
-
protoOf(PeekByte1).
|
|
2639
|
-
return this.
|
|
2638
|
+
protoOf(PeekByte1).w1x = function () {
|
|
2639
|
+
return this.n41_1;
|
|
2640
2640
|
};
|
|
2641
|
-
protoOf(PeekByte1).
|
|
2642
|
-
return Companion_getInstance_1().
|
|
2641
|
+
protoOf(PeekByte1).i2u = function (_this__u8e3s4, first) {
|
|
2642
|
+
return Companion_getInstance_1().u2l(_this__u8e3s4);
|
|
2643
2643
|
};
|
|
2644
|
-
protoOf(PeekByte1).
|
|
2645
|
-
return this.
|
|
2644
|
+
protoOf(PeekByte1).a2o = function (_this__u8e3s4, first) {
|
|
2645
|
+
return this.i2u(_this__u8e3s4, first);
|
|
2646
2646
|
};
|
|
2647
2647
|
var PeekByte1_instance;
|
|
2648
2648
|
function PeekByte1_getInstance() {
|
|
@@ -2653,16 +2653,16 @@
|
|
|
2653
2653
|
function PeekByte2() {
|
|
2654
2654
|
PeekByte2_instance = this;
|
|
2655
2655
|
NonBacktrackable.call(this, 'peek_byte');
|
|
2656
|
-
this.
|
|
2656
|
+
this.p41_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```';
|
|
2657
2657
|
}
|
|
2658
|
-
protoOf(PeekByte2).
|
|
2659
|
-
return this.
|
|
2658
|
+
protoOf(PeekByte2).w1x = function () {
|
|
2659
|
+
return this.p41_1;
|
|
2660
2660
|
};
|
|
2661
|
-
protoOf(PeekByte2).
|
|
2662
|
-
return Companion_getInstance_1().
|
|
2661
|
+
protoOf(PeekByte2).z2u = function (_this__u8e3s4, first, second) {
|
|
2662
|
+
return Companion_getInstance_1().u2l(_this__u8e3s4);
|
|
2663
2663
|
};
|
|
2664
|
-
protoOf(PeekByte2).
|
|
2665
|
-
return this.
|
|
2664
|
+
protoOf(PeekByte2).r2k = function (_this__u8e3s4, first, second) {
|
|
2665
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
2666
2666
|
};
|
|
2667
2667
|
var PeekByte2_instance;
|
|
2668
2668
|
function PeekByte2_getInstance() {
|
|
@@ -2673,17 +2673,17 @@
|
|
|
2673
2673
|
function PeekChar1() {
|
|
2674
2674
|
PeekChar1_instance = this;
|
|
2675
2675
|
NonBacktrackable_0.call(this, 'peek_char');
|
|
2676
|
-
this.
|
|
2676
|
+
this.r41_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```';
|
|
2677
2677
|
}
|
|
2678
|
-
protoOf(PeekChar1).
|
|
2679
|
-
return this.
|
|
2678
|
+
protoOf(PeekChar1).w1x = function () {
|
|
2679
|
+
return this.r41_1;
|
|
2680
2680
|
};
|
|
2681
|
-
protoOf(PeekChar1).
|
|
2682
|
-
IOPrimitiveUtils_getInstance().
|
|
2683
|
-
return IOPrimitiveUtils_getInstance().
|
|
2681
|
+
protoOf(PeekChar1).i2u = function (_this__u8e3s4, first) {
|
|
2682
|
+
IOPrimitiveUtils_getInstance().o3z(_this__u8e3s4, 0);
|
|
2683
|
+
return IOPrimitiveUtils_getInstance().b41(_this__u8e3s4, IOPrimitiveUtils_getInstance().h3y(_this__u8e3s4), first);
|
|
2684
2684
|
};
|
|
2685
|
-
protoOf(PeekChar1).
|
|
2686
|
-
return this.
|
|
2685
|
+
protoOf(PeekChar1).a2o = function (_this__u8e3s4, first) {
|
|
2686
|
+
return this.i2u(_this__u8e3s4, first);
|
|
2687
2687
|
};
|
|
2688
2688
|
var PeekChar1_instance;
|
|
2689
2689
|
function PeekChar1_getInstance() {
|
|
@@ -2694,18 +2694,18 @@
|
|
|
2694
2694
|
function PeekChar2() {
|
|
2695
2695
|
PeekChar2_instance = this;
|
|
2696
2696
|
NonBacktrackable.call(this, 'peek_char');
|
|
2697
|
-
this.
|
|
2697
|
+
this.t41_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```';
|
|
2698
2698
|
}
|
|
2699
|
-
protoOf(PeekChar2).
|
|
2700
|
-
return this.
|
|
2699
|
+
protoOf(PeekChar2).w1x = function () {
|
|
2700
|
+
return this.t41_1;
|
|
2701
2701
|
};
|
|
2702
|
-
protoOf(PeekChar2).
|
|
2703
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2704
|
-
IOPrimitiveUtils_getInstance().
|
|
2705
|
-
return IOPrimitiveUtils_getInstance().
|
|
2702
|
+
protoOf(PeekChar2).z2u = function (_this__u8e3s4, first, second) {
|
|
2703
|
+
var channel = IOPrimitiveUtils_getInstance().l3y(_this__u8e3s4, 0);
|
|
2704
|
+
IOPrimitiveUtils_getInstance().o3z(_this__u8e3s4, 1);
|
|
2705
|
+
return IOPrimitiveUtils_getInstance().b41(_this__u8e3s4, channel, second);
|
|
2706
2706
|
};
|
|
2707
|
-
protoOf(PeekChar2).
|
|
2708
|
-
return this.
|
|
2707
|
+
protoOf(PeekChar2).r2k = function (_this__u8e3s4, first, second) {
|
|
2708
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
2709
2709
|
};
|
|
2710
2710
|
var PeekChar2_instance;
|
|
2711
2711
|
function PeekChar2_getInstance() {
|
|
@@ -2716,17 +2716,17 @@
|
|
|
2716
2716
|
function PeekCode1() {
|
|
2717
2717
|
PeekCode1_instance = this;
|
|
2718
2718
|
NonBacktrackable_0.call(this, 'peek_code');
|
|
2719
|
-
this.
|
|
2719
|
+
this.v41_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```';
|
|
2720
2720
|
}
|
|
2721
|
-
protoOf(PeekCode1).
|
|
2722
|
-
return this.
|
|
2721
|
+
protoOf(PeekCode1).w1x = function () {
|
|
2722
|
+
return this.v41_1;
|
|
2723
2723
|
};
|
|
2724
|
-
protoOf(PeekCode1).
|
|
2725
|
-
IOPrimitiveUtils_getInstance().
|
|
2726
|
-
return IOPrimitiveUtils_getInstance().
|
|
2724
|
+
protoOf(PeekCode1).i2u = function (_this__u8e3s4, first) {
|
|
2725
|
+
IOPrimitiveUtils_getInstance().u3z(_this__u8e3s4, 0);
|
|
2726
|
+
return IOPrimitiveUtils_getInstance().a41(_this__u8e3s4, IOPrimitiveUtils_getInstance().h3y(_this__u8e3s4), first);
|
|
2727
2727
|
};
|
|
2728
|
-
protoOf(PeekCode1).
|
|
2729
|
-
return this.
|
|
2728
|
+
protoOf(PeekCode1).a2o = function (_this__u8e3s4, first) {
|
|
2729
|
+
return this.i2u(_this__u8e3s4, first);
|
|
2730
2730
|
};
|
|
2731
2731
|
var PeekCode1_instance;
|
|
2732
2732
|
function PeekCode1_getInstance() {
|
|
@@ -2737,18 +2737,18 @@
|
|
|
2737
2737
|
function PeekCode2() {
|
|
2738
2738
|
PeekCode2_instance = this;
|
|
2739
2739
|
NonBacktrackable.call(this, 'peek_code');
|
|
2740
|
-
this.
|
|
2740
|
+
this.x41_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```';
|
|
2741
2741
|
}
|
|
2742
|
-
protoOf(PeekCode2).
|
|
2743
|
-
return this.
|
|
2742
|
+
protoOf(PeekCode2).w1x = function () {
|
|
2743
|
+
return this.x41_1;
|
|
2744
2744
|
};
|
|
2745
|
-
protoOf(PeekCode2).
|
|
2746
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2747
|
-
IOPrimitiveUtils_getInstance().
|
|
2748
|
-
return IOPrimitiveUtils_getInstance().
|
|
2745
|
+
protoOf(PeekCode2).z2u = function (_this__u8e3s4, first, second) {
|
|
2746
|
+
var channel = IOPrimitiveUtils_getInstance().l3y(_this__u8e3s4, 0);
|
|
2747
|
+
IOPrimitiveUtils_getInstance().u3z(_this__u8e3s4, 1);
|
|
2748
|
+
return IOPrimitiveUtils_getInstance().a41(_this__u8e3s4, channel, second);
|
|
2749
2749
|
};
|
|
2750
|
-
protoOf(PeekCode2).
|
|
2751
|
-
return this.
|
|
2750
|
+
protoOf(PeekCode2).r2k = function (_this__u8e3s4, first, second) {
|
|
2751
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
2752
2752
|
};
|
|
2753
2753
|
var PeekCode2_instance;
|
|
2754
2754
|
function PeekCode2_getInstance() {
|
|
@@ -2759,16 +2759,16 @@
|
|
|
2759
2759
|
function PutByte1() {
|
|
2760
2760
|
PutByte1_instance = this;
|
|
2761
2761
|
NonBacktrackable_0.call(this, 'put_byte');
|
|
2762
|
-
this.
|
|
2762
|
+
this.z41_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```';
|
|
2763
2763
|
}
|
|
2764
|
-
protoOf(PutByte1).
|
|
2765
|
-
return this.
|
|
2764
|
+
protoOf(PutByte1).w1x = function () {
|
|
2765
|
+
return this.z41_1;
|
|
2766
2766
|
};
|
|
2767
|
-
protoOf(PutByte1).
|
|
2768
|
-
return Companion_getInstance_1().
|
|
2767
|
+
protoOf(PutByte1).i2u = function (_this__u8e3s4, first) {
|
|
2768
|
+
return Companion_getInstance_1().u2l(_this__u8e3s4);
|
|
2769
2769
|
};
|
|
2770
|
-
protoOf(PutByte1).
|
|
2771
|
-
return this.
|
|
2770
|
+
protoOf(PutByte1).a2o = function (_this__u8e3s4, first) {
|
|
2771
|
+
return this.i2u(_this__u8e3s4, first);
|
|
2772
2772
|
};
|
|
2773
2773
|
var PutByte1_instance;
|
|
2774
2774
|
function PutByte1_getInstance() {
|
|
@@ -2779,16 +2779,16 @@
|
|
|
2779
2779
|
function PutByte2() {
|
|
2780
2780
|
PutByte2_instance = this;
|
|
2781
2781
|
NonBacktrackable.call(this, 'put_byte');
|
|
2782
|
-
this.
|
|
2782
|
+
this.b42_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```';
|
|
2783
2783
|
}
|
|
2784
|
-
protoOf(PutByte2).
|
|
2785
|
-
return this.
|
|
2784
|
+
protoOf(PutByte2).w1x = function () {
|
|
2785
|
+
return this.b42_1;
|
|
2786
2786
|
};
|
|
2787
|
-
protoOf(PutByte2).
|
|
2788
|
-
return Companion_getInstance_1().
|
|
2787
|
+
protoOf(PutByte2).z2u = function (_this__u8e3s4, first, second) {
|
|
2788
|
+
return Companion_getInstance_1().u2l(_this__u8e3s4);
|
|
2789
2789
|
};
|
|
2790
|
-
protoOf(PutByte2).
|
|
2791
|
-
return this.
|
|
2790
|
+
protoOf(PutByte2).r2k = function (_this__u8e3s4, first, second) {
|
|
2791
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
2792
2792
|
};
|
|
2793
2793
|
var PutByte2_instance;
|
|
2794
2794
|
function PutByte2_getInstance() {
|
|
@@ -2799,19 +2799,19 @@
|
|
|
2799
2799
|
function PutChar1() {
|
|
2800
2800
|
PutChar1_instance = this;
|
|
2801
2801
|
NonBacktrackable_0.call(this, 'put_char');
|
|
2802
|
-
this.
|
|
2802
|
+
this.d42_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```';
|
|
2803
2803
|
}
|
|
2804
|
-
protoOf(PutChar1).
|
|
2805
|
-
return this.
|
|
2804
|
+
protoOf(PutChar1).w1x = function () {
|
|
2805
|
+
return this.d42_1;
|
|
2806
2806
|
};
|
|
2807
|
-
protoOf(PutChar1).
|
|
2808
|
-
Companion_getInstance_1().
|
|
2807
|
+
protoOf(PutChar1).i2u = function (_this__u8e3s4, first) {
|
|
2808
|
+
Companion_getInstance_1().d2m(_this__u8e3s4, 0);
|
|
2809
2809
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2810
|
-
var tmp_0 = IOPrimitiveUtils_getInstance().
|
|
2811
|
-
return tmp.
|
|
2810
|
+
var tmp_0 = IOPrimitiveUtils_getInstance().o40(_this__u8e3s4);
|
|
2811
|
+
return tmp.z40(_this__u8e3s4, tmp_0, isInterface(first, Atom) ? first : THROW_CCE());
|
|
2812
2812
|
};
|
|
2813
|
-
protoOf(PutChar1).
|
|
2814
|
-
return this.
|
|
2813
|
+
protoOf(PutChar1).a2o = function (_this__u8e3s4, first) {
|
|
2814
|
+
return this.i2u(_this__u8e3s4, first);
|
|
2815
2815
|
};
|
|
2816
2816
|
var PutChar1_instance;
|
|
2817
2817
|
function PutChar1_getInstance() {
|
|
@@ -2822,19 +2822,19 @@
|
|
|
2822
2822
|
function PutChar2() {
|
|
2823
2823
|
PutChar2_instance = this;
|
|
2824
2824
|
NonBacktrackable.call(this, 'put_char');
|
|
2825
|
-
this.
|
|
2825
|
+
this.f42_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```';
|
|
2826
2826
|
}
|
|
2827
|
-
protoOf(PutChar2).
|
|
2828
|
-
return this.
|
|
2827
|
+
protoOf(PutChar2).w1x = function () {
|
|
2828
|
+
return this.f42_1;
|
|
2829
2829
|
};
|
|
2830
|
-
protoOf(PutChar2).
|
|
2831
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2832
|
-
Companion_getInstance_1().
|
|
2830
|
+
protoOf(PutChar2).z2u = function (_this__u8e3s4, first, second) {
|
|
2831
|
+
var channel = IOPrimitiveUtils_getInstance().h3z(_this__u8e3s4, 0);
|
|
2832
|
+
Companion_getInstance_1().d2m(_this__u8e3s4, 1);
|
|
2833
2833
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2834
|
-
return tmp.
|
|
2834
|
+
return tmp.z40(_this__u8e3s4, channel, isInterface(second, Atom) ? second : THROW_CCE());
|
|
2835
2835
|
};
|
|
2836
|
-
protoOf(PutChar2).
|
|
2837
|
-
return this.
|
|
2836
|
+
protoOf(PutChar2).r2k = function (_this__u8e3s4, first, second) {
|
|
2837
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
2838
2838
|
};
|
|
2839
2839
|
var PutChar2_instance;
|
|
2840
2840
|
function PutChar2_getInstance() {
|
|
@@ -2845,19 +2845,19 @@
|
|
|
2845
2845
|
function PutCode1() {
|
|
2846
2846
|
PutCode1_instance = this;
|
|
2847
2847
|
NonBacktrackable_0.call(this, 'put_code');
|
|
2848
|
-
this.
|
|
2848
|
+
this.h42_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```';
|
|
2849
2849
|
}
|
|
2850
|
-
protoOf(PutCode1).
|
|
2851
|
-
return this.
|
|
2850
|
+
protoOf(PutCode1).w1x = function () {
|
|
2851
|
+
return this.h42_1;
|
|
2852
2852
|
};
|
|
2853
|
-
protoOf(PutCode1).
|
|
2854
|
-
Companion_getInstance_1().
|
|
2853
|
+
protoOf(PutCode1).i2u = function (_this__u8e3s4, first) {
|
|
2854
|
+
Companion_getInstance_1().m2m(_this__u8e3s4, 0);
|
|
2855
2855
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2856
|
-
var tmp_0 = IOPrimitiveUtils_getInstance().
|
|
2857
|
-
return tmp.
|
|
2856
|
+
var tmp_0 = IOPrimitiveUtils_getInstance().o40(_this__u8e3s4);
|
|
2857
|
+
return tmp.y40(_this__u8e3s4, tmp_0, isInterface(first, Integer) ? first : THROW_CCE());
|
|
2858
2858
|
};
|
|
2859
|
-
protoOf(PutCode1).
|
|
2860
|
-
return this.
|
|
2859
|
+
protoOf(PutCode1).a2o = function (_this__u8e3s4, first) {
|
|
2860
|
+
return this.i2u(_this__u8e3s4, first);
|
|
2861
2861
|
};
|
|
2862
2862
|
var PutCode1_instance;
|
|
2863
2863
|
function PutCode1_getInstance() {
|
|
@@ -2868,19 +2868,19 @@
|
|
|
2868
2868
|
function PutCode2() {
|
|
2869
2869
|
PutCode2_instance = this;
|
|
2870
2870
|
NonBacktrackable.call(this, 'put_code');
|
|
2871
|
-
this.
|
|
2871
|
+
this.j42_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```';
|
|
2872
2872
|
}
|
|
2873
|
-
protoOf(PutCode2).
|
|
2874
|
-
return this.
|
|
2873
|
+
protoOf(PutCode2).w1x = function () {
|
|
2874
|
+
return this.j42_1;
|
|
2875
2875
|
};
|
|
2876
|
-
protoOf(PutCode2).
|
|
2877
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2878
|
-
Companion_getInstance_1().
|
|
2876
|
+
protoOf(PutCode2).z2u = function (_this__u8e3s4, first, second) {
|
|
2877
|
+
var channel = IOPrimitiveUtils_getInstance().h3z(_this__u8e3s4, 0);
|
|
2878
|
+
Companion_getInstance_1().m2m(_this__u8e3s4, 1);
|
|
2879
2879
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2880
|
-
return tmp.
|
|
2880
|
+
return tmp.y40(_this__u8e3s4, channel, isInterface(second, Integer) ? second : THROW_CCE());
|
|
2881
2881
|
};
|
|
2882
|
-
protoOf(PutCode2).
|
|
2883
|
-
return this.
|
|
2882
|
+
protoOf(PutCode2).r2k = function (_this__u8e3s4, first, second) {
|
|
2883
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
2884
2884
|
};
|
|
2885
2885
|
var PutCode2_instance;
|
|
2886
2886
|
function PutCode2_getInstance() {
|
|
@@ -2891,16 +2891,16 @@
|
|
|
2891
2891
|
function Read1() {
|
|
2892
2892
|
Read1_instance = this;
|
|
2893
2893
|
NonBacktrackable_0.call(this, 'read');
|
|
2894
|
-
this.
|
|
2894
|
+
this.l42_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```';
|
|
2895
2895
|
}
|
|
2896
|
-
protoOf(Read1).
|
|
2897
|
-
return this.
|
|
2896
|
+
protoOf(Read1).w1x = function () {
|
|
2897
|
+
return this.l42_1;
|
|
2898
2898
|
};
|
|
2899
|
-
protoOf(Read1).
|
|
2900
|
-
return IOPrimitiveUtils_getInstance().
|
|
2899
|
+
protoOf(Read1).i2u = function (_this__u8e3s4, first) {
|
|
2900
|
+
return IOPrimitiveUtils_getInstance().d41(_this__u8e3s4, IOPrimitiveUtils_getInstance().h3y(_this__u8e3s4), first);
|
|
2901
2901
|
};
|
|
2902
|
-
protoOf(Read1).
|
|
2903
|
-
return this.
|
|
2902
|
+
protoOf(Read1).a2o = function (_this__u8e3s4, first) {
|
|
2903
|
+
return this.i2u(_this__u8e3s4, first);
|
|
2904
2904
|
};
|
|
2905
2905
|
var Read1_instance;
|
|
2906
2906
|
function Read1_getInstance() {
|
|
@@ -2911,17 +2911,17 @@
|
|
|
2911
2911
|
function Read2() {
|
|
2912
2912
|
Read2_instance = this;
|
|
2913
2913
|
NonBacktrackable.call(this, 'read');
|
|
2914
|
-
this.
|
|
2914
|
+
this.n42_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```';
|
|
2915
2915
|
}
|
|
2916
|
-
protoOf(Read2).
|
|
2917
|
-
return this.
|
|
2916
|
+
protoOf(Read2).w1x = function () {
|
|
2917
|
+
return this.n42_1;
|
|
2918
2918
|
};
|
|
2919
|
-
protoOf(Read2).
|
|
2920
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2921
|
-
return IOPrimitiveUtils_getInstance().
|
|
2919
|
+
protoOf(Read2).z2u = function (_this__u8e3s4, first, second) {
|
|
2920
|
+
var channel = IOPrimitiveUtils_getInstance().l3y(_this__u8e3s4, 0);
|
|
2921
|
+
return IOPrimitiveUtils_getInstance().d41(_this__u8e3s4, channel, second);
|
|
2922
2922
|
};
|
|
2923
|
-
protoOf(Read2).
|
|
2924
|
-
return this.
|
|
2923
|
+
protoOf(Read2).r2k = function (_this__u8e3s4, first, second) {
|
|
2924
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
2925
2925
|
};
|
|
2926
2926
|
var Read2_instance;
|
|
2927
2927
|
function Read2_getInstance() {
|
|
@@ -2932,16 +2932,16 @@
|
|
|
2932
2932
|
function ReadTerm2() {
|
|
2933
2933
|
ReadTerm2_instance = this;
|
|
2934
2934
|
NonBacktrackable.call(this, 'read_term');
|
|
2935
|
-
this.
|
|
2935
|
+
this.p42_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```";
|
|
2936
2936
|
}
|
|
2937
|
-
protoOf(ReadTerm2).
|
|
2938
|
-
return this.
|
|
2937
|
+
protoOf(ReadTerm2).w1x = function () {
|
|
2938
|
+
return this.p42_1;
|
|
2939
2939
|
};
|
|
2940
|
-
protoOf(ReadTerm2).
|
|
2941
|
-
return IOPrimitiveUtils_getInstance().
|
|
2940
|
+
protoOf(ReadTerm2).z2u = function (_this__u8e3s4, first, second) {
|
|
2941
|
+
return IOPrimitiveUtils_getInstance().c41(_this__u8e3s4, IOPrimitiveUtils_getInstance().h3y(_this__u8e3s4), first, true);
|
|
2942
2942
|
};
|
|
2943
|
-
protoOf(ReadTerm2).
|
|
2944
|
-
return this.
|
|
2943
|
+
protoOf(ReadTerm2).r2k = function (_this__u8e3s4, first, second) {
|
|
2944
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
2945
2945
|
};
|
|
2946
2946
|
var ReadTerm2_instance;
|
|
2947
2947
|
function ReadTerm2_getInstance() {
|
|
@@ -2952,17 +2952,17 @@
|
|
|
2952
2952
|
function ReadTerm3() {
|
|
2953
2953
|
ReadTerm3_instance = this;
|
|
2954
2954
|
NonBacktrackable_1.call(this, 'read_term');
|
|
2955
|
-
this.
|
|
2955
|
+
this.r42_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```";
|
|
2956
2956
|
}
|
|
2957
|
-
protoOf(ReadTerm3).
|
|
2958
|
-
return this.
|
|
2957
|
+
protoOf(ReadTerm3).w1x = function () {
|
|
2958
|
+
return this.r42_1;
|
|
2959
2959
|
};
|
|
2960
|
-
protoOf(ReadTerm3).
|
|
2961
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2962
|
-
return IOPrimitiveUtils_getInstance().
|
|
2960
|
+
protoOf(ReadTerm3).t2z = function (_this__u8e3s4, first, second, third) {
|
|
2961
|
+
var channel = IOPrimitiveUtils_getInstance().l3y(_this__u8e3s4, 0);
|
|
2962
|
+
return IOPrimitiveUtils_getInstance().c41(_this__u8e3s4, channel, second, true);
|
|
2963
2963
|
};
|
|
2964
|
-
protoOf(ReadTerm3).
|
|
2965
|
-
return this.
|
|
2964
|
+
protoOf(ReadTerm3).t2n = function (_this__u8e3s4, first, second, third) {
|
|
2965
|
+
return this.t2z(_this__u8e3s4, first, second, third);
|
|
2966
2966
|
};
|
|
2967
2967
|
var ReadTerm3_instance;
|
|
2968
2968
|
function ReadTerm3_getInstance() {
|
|
@@ -2972,24 +2972,24 @@
|
|
|
2972
2972
|
}
|
|
2973
2973
|
function SetInput$computeOne$lambda($this_computeOne, $channel) {
|
|
2974
2974
|
return function ($this$replySuccess) {
|
|
2975
|
-
$this$replySuccess.
|
|
2975
|
+
$this$replySuccess.d2r($this_computeOne.context.l1y().setCurrentChannel($channel));
|
|
2976
2976
|
return Unit_instance;
|
|
2977
2977
|
};
|
|
2978
2978
|
}
|
|
2979
2979
|
function SetInput() {
|
|
2980
2980
|
SetInput_instance = this;
|
|
2981
2981
|
NonBacktrackable_0.call(this, 'set_input');
|
|
2982
|
-
this.
|
|
2982
|
+
this.t42_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```';
|
|
2983
2983
|
}
|
|
2984
|
-
protoOf(SetInput).
|
|
2985
|
-
return this.
|
|
2984
|
+
protoOf(SetInput).w1x = function () {
|
|
2985
|
+
return this.t42_1;
|
|
2986
2986
|
};
|
|
2987
|
-
protoOf(SetInput).
|
|
2988
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2987
|
+
protoOf(SetInput).i2u = function (_this__u8e3s4, first) {
|
|
2988
|
+
var channel = IOPrimitiveUtils_getInstance().l3y(_this__u8e3s4, 0);
|
|
2989
2989
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetInput$computeOne$lambda(_this__u8e3s4, channel));
|
|
2990
2990
|
};
|
|
2991
|
-
protoOf(SetInput).
|
|
2992
|
-
return this.
|
|
2991
|
+
protoOf(SetInput).a2o = function (_this__u8e3s4, first) {
|
|
2992
|
+
return this.i2u(_this__u8e3s4, first);
|
|
2993
2993
|
};
|
|
2994
2994
|
var SetInput_instance;
|
|
2995
2995
|
function SetInput_getInstance() {
|
|
@@ -2999,24 +2999,24 @@
|
|
|
2999
2999
|
}
|
|
3000
3000
|
function SetOutput$computeOne$lambda($this_computeOne, $channel) {
|
|
3001
3001
|
return function ($this$replySuccess) {
|
|
3002
|
-
$this$replySuccess.
|
|
3002
|
+
$this$replySuccess.g2r($this_computeOne.context.m1y().setCurrentChannel($channel));
|
|
3003
3003
|
return Unit_instance;
|
|
3004
3004
|
};
|
|
3005
3005
|
}
|
|
3006
3006
|
function SetOutput() {
|
|
3007
3007
|
SetOutput_instance = this;
|
|
3008
3008
|
NonBacktrackable_0.call(this, 'set_output');
|
|
3009
|
-
this.
|
|
3009
|
+
this.v42_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```';
|
|
3010
3010
|
}
|
|
3011
|
-
protoOf(SetOutput).
|
|
3012
|
-
return this.
|
|
3011
|
+
protoOf(SetOutput).w1x = function () {
|
|
3012
|
+
return this.v42_1;
|
|
3013
3013
|
};
|
|
3014
|
-
protoOf(SetOutput).
|
|
3015
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3014
|
+
protoOf(SetOutput).i2u = function (_this__u8e3s4, first) {
|
|
3015
|
+
var channel = IOPrimitiveUtils_getInstance().h3z(_this__u8e3s4, 0);
|
|
3016
3016
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetOutput$computeOne$lambda(_this__u8e3s4, channel));
|
|
3017
3017
|
};
|
|
3018
|
-
protoOf(SetOutput).
|
|
3019
|
-
return this.
|
|
3018
|
+
protoOf(SetOutput).a2o = function (_this__u8e3s4, first) {
|
|
3019
|
+
return this.i2u(_this__u8e3s4, first);
|
|
3020
3020
|
};
|
|
3021
3021
|
var SetOutput_instance;
|
|
3022
3022
|
function SetOutput_getInstance() {
|
|
@@ -3027,36 +3027,36 @@
|
|
|
3027
3027
|
function SetTheory$setTheory$lambda($append, $solver) {
|
|
3028
3028
|
return function ($this$replySuccess) {
|
|
3029
3029
|
if ($append) {
|
|
3030
|
-
$this$replySuccess.
|
|
3031
|
-
$this$replySuccess.
|
|
3030
|
+
$this$replySuccess.t2q($solver.j1y());
|
|
3031
|
+
$this$replySuccess.w2q($solver.k1y());
|
|
3032
3032
|
} else {
|
|
3033
|
-
$this$replySuccess.
|
|
3034
|
-
$this$replySuccess.
|
|
3033
|
+
$this$replySuccess.r2q($solver.j1y());
|
|
3034
|
+
$this$replySuccess.u2q($solver.k1y());
|
|
3035
3035
|
}
|
|
3036
|
-
$this$replySuccess.
|
|
3037
|
-
$this$replySuccess.
|
|
3036
|
+
$this$replySuccess.b2r($solver.q1y());
|
|
3037
|
+
$this$replySuccess.a2r($solver.i1y());
|
|
3038
3038
|
return Unit_instance;
|
|
3039
3039
|
};
|
|
3040
3040
|
}
|
|
3041
3041
|
function SetTheory() {
|
|
3042
3042
|
SetTheory_instance = this;
|
|
3043
3043
|
NonBacktrackable_0.call(this, 'set_theory');
|
|
3044
|
-
this.
|
|
3044
|
+
this.w3y_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```";
|
|
3045
3045
|
}
|
|
3046
|
-
protoOf(SetTheory).
|
|
3047
|
-
return this.
|
|
3046
|
+
protoOf(SetTheory).w1x = function () {
|
|
3047
|
+
return this.w3y_1;
|
|
3048
3048
|
};
|
|
3049
|
-
protoOf(SetTheory).
|
|
3050
|
-
Companion_getInstance_1().
|
|
3051
|
-
return this.
|
|
3049
|
+
protoOf(SetTheory).i2u = function (_this__u8e3s4, first) {
|
|
3050
|
+
Companion_getInstance_1().b2m(_this__u8e3s4, 0);
|
|
3051
|
+
return this.w42(_this__u8e3s4, first.yx().h2(), false);
|
|
3052
3052
|
};
|
|
3053
|
-
protoOf(SetTheory).
|
|
3054
|
-
return this.
|
|
3053
|
+
protoOf(SetTheory).a2o = function (_this__u8e3s4, first) {
|
|
3054
|
+
return this.i2u(_this__u8e3s4, first);
|
|
3055
3055
|
};
|
|
3056
|
-
protoOf(SetTheory).
|
|
3056
|
+
protoOf(SetTheory).w42 = function (_this__u8e3s4, text, append) {
|
|
3057
3057
|
try {
|
|
3058
|
-
var theory = Companion_instance_11.withOperatorSet(_this__u8e3s4.context.
|
|
3059
|
-
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.q1y()).parseTheoryWithDefaultUnificator(text);
|
|
3059
|
+
var solver = _this__u8e3s4.context.createMutableSolver(VOID, VOID, VOID, Companion_instance_12.empty(_this__u8e3s4.context.i1o()), Companion_instance_13.empty(_this__u8e3s4.context.i1o()));
|
|
3060
3060
|
solver.loadStaticKb(theory);
|
|
3061
3061
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetTheory$setTheory$lambda(append, solver));
|
|
3062
3062
|
} catch ($p) {
|
|
@@ -3090,9 +3090,9 @@
|
|
|
3090
3090
|
}
|
|
3091
3091
|
}
|
|
3092
3092
|
};
|
|
3093
|
-
protoOf(SetTheory).
|
|
3093
|
+
protoOf(SetTheory).x3y = function (_this__u8e3s4, text, append, $super) {
|
|
3094
3094
|
append = append === VOID ? true : append;
|
|
3095
|
-
return $super === VOID ? this.
|
|
3095
|
+
return $super === VOID ? this.w42(_this__u8e3s4, text, append) : $super.w42.call(this, _this__u8e3s4, text, append);
|
|
3096
3096
|
};
|
|
3097
3097
|
var SetTheory_instance;
|
|
3098
3098
|
function SetTheory_getInstance() {
|
|
@@ -3101,16 +3101,16 @@
|
|
|
3101
3101
|
return SetTheory_instance;
|
|
3102
3102
|
}
|
|
3103
3103
|
function StreamProperty$computeAll$lambda(it) {
|
|
3104
|
-
return asSequence(it.
|
|
3104
|
+
return asSequence(it.m2());
|
|
3105
3105
|
}
|
|
3106
3106
|
function StreamProperty$computeAll$lambda_0($this_computeAll) {
|
|
3107
3107
|
return function (it) {
|
|
3108
|
-
return to(it.
|
|
3108
|
+
return to(it.m22(), IOPrimitiveUtils_getInstance().n40($this_computeAll, it));
|
|
3109
3109
|
};
|
|
3110
3110
|
}
|
|
3111
3111
|
function StreamProperty$computeAll$lambda_1(_destruct__k2r9zo) {
|
|
3112
|
-
var streamTerm = _destruct__k2r9zo.
|
|
3113
|
-
var properties = _destruct__k2r9zo.
|
|
3112
|
+
var streamTerm = _destruct__k2r9zo.he();
|
|
3113
|
+
var properties = _destruct__k2r9zo.ie();
|
|
3114
3114
|
return map(properties, StreamProperty$computeAll$lambda$lambda(streamTerm));
|
|
3115
3115
|
}
|
|
3116
3116
|
function StreamProperty$computeAll$lambda$lambda($streamTerm) {
|
|
@@ -3120,13 +3120,13 @@
|
|
|
3120
3120
|
}
|
|
3121
3121
|
function StreamProperty$computeAll$lambda_2($this_computeAll, $first, $second) {
|
|
3122
3122
|
return function (_destruct__k2r9zo) {
|
|
3123
|
-
var streamTerm = _destruct__k2r9zo.
|
|
3124
|
-
var property = _destruct__k2r9zo.
|
|
3125
|
-
return Companion_getInstance_1().
|
|
3123
|
+
var streamTerm = _destruct__k2r9zo.he();
|
|
3124
|
+
var property = _destruct__k2r9zo.ie();
|
|
3125
|
+
return Companion_getInstance_1().m2l($this_computeAll, $first, streamTerm).plus(Companion_getInstance_1().m2l($this_computeAll, $second, property));
|
|
3126
3126
|
};
|
|
3127
3127
|
}
|
|
3128
3128
|
function StreamProperty$computeAll$lambda_3(it) {
|
|
3129
|
-
return it.
|
|
3129
|
+
return it.i13();
|
|
3130
3130
|
}
|
|
3131
3131
|
function StreamProperty$computeAll$lambda_4($this_computeAll) {
|
|
3132
3132
|
return function (it) {
|
|
@@ -3136,15 +3136,15 @@
|
|
|
3136
3136
|
function StreamProperty() {
|
|
3137
3137
|
StreamProperty_instance = this;
|
|
3138
3138
|
BinaryRelation.call(this, 'stream_property');
|
|
3139
|
-
this.
|
|
3139
|
+
this.y42_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```';
|
|
3140
3140
|
}
|
|
3141
|
-
protoOf(StreamProperty).
|
|
3142
|
-
return this.
|
|
3141
|
+
protoOf(StreamProperty).w1x = function () {
|
|
3142
|
+
return this.y42_1;
|
|
3143
3143
|
};
|
|
3144
|
-
protoOf(StreamProperty).
|
|
3145
|
-
IOPrimitiveUtils_getInstance().
|
|
3146
|
-
IOPrimitiveUtils_getInstance().
|
|
3147
|
-
var tmp = sequenceOf([_this__u8e3s4.context.
|
|
3144
|
+
protoOf(StreamProperty).v2u = function (_this__u8e3s4, first, second) {
|
|
3145
|
+
IOPrimitiveUtils_getInstance().c3z(_this__u8e3s4, 0);
|
|
3146
|
+
IOPrimitiveUtils_getInstance().u40(_this__u8e3s4, 1);
|
|
3147
|
+
var tmp = sequenceOf([_this__u8e3s4.context.l1y(), _this__u8e3s4.context.m1y()]);
|
|
3148
3148
|
var tmp_0 = distinct(flatMap(tmp, StreamProperty$computeAll$lambda));
|
|
3149
3149
|
var tmp_1 = map(tmp_0, StreamProperty$computeAll$lambda_0(_this__u8e3s4));
|
|
3150
3150
|
var tmp_2 = flatMap(tmp_1, StreamProperty$computeAll$lambda_1);
|
|
@@ -3152,8 +3152,8 @@
|
|
|
3152
3152
|
var tmp_4 = filter(tmp_3, StreamProperty$computeAll$lambda_3);
|
|
3153
3153
|
return map(tmp_4, StreamProperty$computeAll$lambda_4(_this__u8e3s4));
|
|
3154
3154
|
};
|
|
3155
|
-
protoOf(StreamProperty).
|
|
3156
|
-
return this.
|
|
3155
|
+
protoOf(StreamProperty).t2k = function (_this__u8e3s4, first, second) {
|
|
3156
|
+
return this.v2u(_this__u8e3s4, first, second);
|
|
3157
3157
|
};
|
|
3158
3158
|
var StreamProperty_instance;
|
|
3159
3159
|
function StreamProperty_getInstance() {
|
|
@@ -3164,17 +3164,17 @@
|
|
|
3164
3164
|
function Write2() {
|
|
3165
3165
|
Write2_instance = this;
|
|
3166
3166
|
NonBacktrackable.call(this, 'write');
|
|
3167
|
-
this.
|
|
3167
|
+
this.a43_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```";
|
|
3168
3168
|
}
|
|
3169
|
-
protoOf(Write2).
|
|
3170
|
-
return this.
|
|
3169
|
+
protoOf(Write2).w1x = function () {
|
|
3170
|
+
return this.a43_1;
|
|
3171
3171
|
};
|
|
3172
|
-
protoOf(Write2).
|
|
3173
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3174
|
-
return IOPrimitiveUtils_getInstance().
|
|
3172
|
+
protoOf(Write2).z2u = function (_this__u8e3s4, first, second) {
|
|
3173
|
+
var channel = IOPrimitiveUtils_getInstance().h3z(_this__u8e3s4, 0);
|
|
3174
|
+
return IOPrimitiveUtils_getInstance().x40(_this__u8e3s4, channel, second, Companion_instance_7.default(_this__u8e3s4.context.q1y()));
|
|
3175
3175
|
};
|
|
3176
|
-
protoOf(Write2).
|
|
3177
|
-
return this.
|
|
3176
|
+
protoOf(Write2).r2k = function (_this__u8e3s4, first, second) {
|
|
3177
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
3178
3178
|
};
|
|
3179
3179
|
var Write2_instance;
|
|
3180
3180
|
function Write2_getInstance() {
|
|
@@ -3185,16 +3185,16 @@
|
|
|
3185
3185
|
function WriteCanonical1() {
|
|
3186
3186
|
WriteCanonical1_instance = this;
|
|
3187
3187
|
NonBacktrackable_0.call(this, 'write_canonical');
|
|
3188
|
-
this.
|
|
3188
|
+
this.c43_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```";
|
|
3189
3189
|
}
|
|
3190
|
-
protoOf(WriteCanonical1).
|
|
3191
|
-
return this.
|
|
3190
|
+
protoOf(WriteCanonical1).w1x = function () {
|
|
3191
|
+
return this.c43_1;
|
|
3192
3192
|
};
|
|
3193
|
-
protoOf(WriteCanonical1).
|
|
3194
|
-
return IOPrimitiveUtils_getInstance().
|
|
3193
|
+
protoOf(WriteCanonical1).i2u = function (_this__u8e3s4, first) {
|
|
3194
|
+
return IOPrimitiveUtils_getInstance().x40(_this__u8e3s4, IOPrimitiveUtils_getInstance().o40(_this__u8e3s4), first, Companion_instance_7.canonical());
|
|
3195
3195
|
};
|
|
3196
|
-
protoOf(WriteCanonical1).
|
|
3197
|
-
return this.
|
|
3196
|
+
protoOf(WriteCanonical1).a2o = function (_this__u8e3s4, first) {
|
|
3197
|
+
return this.i2u(_this__u8e3s4, first);
|
|
3198
3198
|
};
|
|
3199
3199
|
var WriteCanonical1_instance;
|
|
3200
3200
|
function WriteCanonical1_getInstance() {
|
|
@@ -3205,17 +3205,17 @@
|
|
|
3205
3205
|
function WriteCanonical2() {
|
|
3206
3206
|
WriteCanonical2_instance = this;
|
|
3207
3207
|
NonBacktrackable.call(this, 'write_canonical');
|
|
3208
|
-
this.
|
|
3208
|
+
this.e43_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```";
|
|
3209
3209
|
}
|
|
3210
|
-
protoOf(WriteCanonical2).
|
|
3211
|
-
return this.
|
|
3210
|
+
protoOf(WriteCanonical2).w1x = function () {
|
|
3211
|
+
return this.e43_1;
|
|
3212
3212
|
};
|
|
3213
|
-
protoOf(WriteCanonical2).
|
|
3214
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3215
|
-
return IOPrimitiveUtils_getInstance().
|
|
3213
|
+
protoOf(WriteCanonical2).z2u = function (_this__u8e3s4, first, second) {
|
|
3214
|
+
var channel = IOPrimitiveUtils_getInstance().h3z(_this__u8e3s4, 0);
|
|
3215
|
+
return IOPrimitiveUtils_getInstance().x40(_this__u8e3s4, channel, second, Companion_instance_7.canonical());
|
|
3216
3216
|
};
|
|
3217
|
-
protoOf(WriteCanonical2).
|
|
3218
|
-
return this.
|
|
3217
|
+
protoOf(WriteCanonical2).r2k = function (_this__u8e3s4, first, second) {
|
|
3218
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
3219
3219
|
};
|
|
3220
3220
|
var WriteCanonical2_instance;
|
|
3221
3221
|
function WriteCanonical2_getInstance() {
|
|
@@ -3226,16 +3226,16 @@
|
|
|
3226
3226
|
function WriteEq1() {
|
|
3227
3227
|
WriteEq1_instance = this;
|
|
3228
3228
|
NonBacktrackable_0.call(this, 'writeq');
|
|
3229
|
-
this.
|
|
3229
|
+
this.g43_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```";
|
|
3230
3230
|
}
|
|
3231
|
-
protoOf(WriteEq1).
|
|
3232
|
-
return this.
|
|
3231
|
+
protoOf(WriteEq1).w1x = function () {
|
|
3232
|
+
return this.g43_1;
|
|
3233
3233
|
};
|
|
3234
|
-
protoOf(WriteEq1).
|
|
3235
|
-
return IOPrimitiveUtils_getInstance().
|
|
3234
|
+
protoOf(WriteEq1).i2u = function (_this__u8e3s4, first) {
|
|
3235
|
+
return IOPrimitiveUtils_getInstance().x40(_this__u8e3s4, IOPrimitiveUtils_getInstance().o40(_this__u8e3s4), first, Companion_instance_7.readable());
|
|
3236
3236
|
};
|
|
3237
|
-
protoOf(WriteEq1).
|
|
3238
|
-
return this.
|
|
3237
|
+
protoOf(WriteEq1).a2o = function (_this__u8e3s4, first) {
|
|
3238
|
+
return this.i2u(_this__u8e3s4, first);
|
|
3239
3239
|
};
|
|
3240
3240
|
var WriteEq1_instance;
|
|
3241
3241
|
function WriteEq1_getInstance() {
|
|
@@ -3246,17 +3246,17 @@
|
|
|
3246
3246
|
function WriteEq2() {
|
|
3247
3247
|
WriteEq2_instance = this;
|
|
3248
3248
|
NonBacktrackable.call(this, 'writeq');
|
|
3249
|
-
this.
|
|
3249
|
+
this.i43_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```";
|
|
3250
3250
|
}
|
|
3251
|
-
protoOf(WriteEq2).
|
|
3252
|
-
return this.
|
|
3251
|
+
protoOf(WriteEq2).w1x = function () {
|
|
3252
|
+
return this.i43_1;
|
|
3253
3253
|
};
|
|
3254
|
-
protoOf(WriteEq2).
|
|
3255
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3256
|
-
return IOPrimitiveUtils_getInstance().
|
|
3254
|
+
protoOf(WriteEq2).z2u = function (_this__u8e3s4, first, second) {
|
|
3255
|
+
var channel = IOPrimitiveUtils_getInstance().h3z(_this__u8e3s4, 0);
|
|
3256
|
+
return IOPrimitiveUtils_getInstance().x40(_this__u8e3s4, channel, second, Companion_instance_7.readable());
|
|
3257
3257
|
};
|
|
3258
|
-
protoOf(WriteEq2).
|
|
3259
|
-
return this.
|
|
3258
|
+
protoOf(WriteEq2).r2k = function (_this__u8e3s4, first, second) {
|
|
3259
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
3260
3260
|
};
|
|
3261
3261
|
var WriteEq2_instance;
|
|
3262
3262
|
function WriteEq2_getInstance() {
|
|
@@ -3267,17 +3267,17 @@
|
|
|
3267
3267
|
function WriteTerm2() {
|
|
3268
3268
|
WriteTerm2_instance = this;
|
|
3269
3269
|
NonBacktrackable.call(this, 'write_term');
|
|
3270
|
-
this.
|
|
3270
|
+
this.k43_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```";
|
|
3271
3271
|
}
|
|
3272
|
-
protoOf(WriteTerm2).
|
|
3273
|
-
return this.
|
|
3272
|
+
protoOf(WriteTerm2).w1x = function () {
|
|
3273
|
+
return this.k43_1;
|
|
3274
3274
|
};
|
|
3275
|
-
protoOf(WriteTerm2).
|
|
3276
|
-
var formatter = IOPrimitiveUtils_getInstance().
|
|
3277
|
-
return IOPrimitiveUtils_getInstance().
|
|
3275
|
+
protoOf(WriteTerm2).z2u = function (_this__u8e3s4, first, second) {
|
|
3276
|
+
var formatter = IOPrimitiveUtils_getInstance().t40(_this__u8e3s4, 1);
|
|
3277
|
+
return IOPrimitiveUtils_getInstance().x40(_this__u8e3s4, IOPrimitiveUtils_getInstance().o40(_this__u8e3s4), first, formatter);
|
|
3278
3278
|
};
|
|
3279
|
-
protoOf(WriteTerm2).
|
|
3280
|
-
return this.
|
|
3279
|
+
protoOf(WriteTerm2).r2k = function (_this__u8e3s4, first, second) {
|
|
3280
|
+
return this.z2u(_this__u8e3s4, first, second);
|
|
3281
3281
|
};
|
|
3282
3282
|
var WriteTerm2_instance;
|
|
3283
3283
|
function WriteTerm2_getInstance() {
|
|
@@ -3288,18 +3288,18 @@
|
|
|
3288
3288
|
function WriteTerm3() {
|
|
3289
3289
|
WriteTerm3_instance = this;
|
|
3290
3290
|
NonBacktrackable_1.call(this, 'write_term');
|
|
3291
|
-
this.
|
|
3291
|
+
this.m43_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```";
|
|
3292
3292
|
}
|
|
3293
|
-
protoOf(WriteTerm3).
|
|
3294
|
-
return this.
|
|
3293
|
+
protoOf(WriteTerm3).w1x = function () {
|
|
3294
|
+
return this.m43_1;
|
|
3295
3295
|
};
|
|
3296
|
-
protoOf(WriteTerm3).
|
|
3297
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3298
|
-
var formatter = IOPrimitiveUtils_getInstance().
|
|
3299
|
-
return IOPrimitiveUtils_getInstance().
|
|
3296
|
+
protoOf(WriteTerm3).t2z = function (_this__u8e3s4, first, second, third) {
|
|
3297
|
+
var channel = IOPrimitiveUtils_getInstance().h3z(_this__u8e3s4, 0);
|
|
3298
|
+
var formatter = IOPrimitiveUtils_getInstance().t40(_this__u8e3s4, 2);
|
|
3299
|
+
return IOPrimitiveUtils_getInstance().x40(_this__u8e3s4, channel, second, formatter);
|
|
3300
3300
|
};
|
|
3301
|
-
protoOf(WriteTerm3).
|
|
3302
|
-
return this.
|
|
3301
|
+
protoOf(WriteTerm3).t2n = function (_this__u8e3s4, first, second, third) {
|
|
3302
|
+
return this.t2z(_this__u8e3s4, first, second, third);
|
|
3303
3303
|
};
|
|
3304
3304
|
var WriteTerm3_instance;
|
|
3305
3305
|
function WriteTerm3_getInstance() {
|
|
@@ -3325,10 +3325,10 @@
|
|
|
3325
3325
|
if (removeSuffix(parsed.protocol, ':').length === 1) {
|
|
3326
3326
|
throw InvalidUrlException_init_$Create$('Invalid URL: ' + url);
|
|
3327
3327
|
}
|
|
3328
|
-
$this.
|
|
3329
|
-
$this.
|
|
3330
|
-
$this.
|
|
3331
|
-
$this.
|
|
3328
|
+
$this.o43_1 = removeSuffix(parsed.protocol, ':');
|
|
3329
|
+
$this.p43_1 = parsed.hostname;
|
|
3330
|
+
$this.q43_1 = parsed.pathname;
|
|
3331
|
+
$this.r43_1 = toIntOrNull(parsed.port);
|
|
3332
3332
|
var tmp_1 = $this;
|
|
3333
3333
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
3334
3334
|
var this_0 = removePrefix(parsed.search, '?');
|
|
@@ -3339,8 +3339,8 @@
|
|
|
3339
3339
|
} else {
|
|
3340
3340
|
tmp_2 = this_0;
|
|
3341
3341
|
}
|
|
3342
|
-
tmp_1.
|
|
3343
|
-
$this.
|
|
3342
|
+
tmp_1.s43_1 = tmp_2;
|
|
3343
|
+
$this.n43_1 = url;
|
|
3344
3344
|
return $this;
|
|
3345
3345
|
}
|
|
3346
3346
|
function JsUrl_init_$Create$(url) {
|
|
@@ -3352,12 +3352,12 @@
|
|
|
3352
3352
|
path = path === VOID ? '' : path;
|
|
3353
3353
|
query = query === VOID ? null : query;
|
|
3354
3354
|
JsUrl.call($this);
|
|
3355
|
-
$this.
|
|
3356
|
-
$this.
|
|
3357
|
-
$this.
|
|
3358
|
-
$this.
|
|
3359
|
-
$this.
|
|
3360
|
-
$this.
|
|
3355
|
+
$this.o43_1 = protocol;
|
|
3356
|
+
$this.p43_1 = host;
|
|
3357
|
+
$this.r43_1 = port;
|
|
3358
|
+
$this.q43_1 = path;
|
|
3359
|
+
$this.s43_1 = query;
|
|
3360
|
+
$this.n43_1 = Companion_instance_15.r3w(protocol, host, port, path, query);
|
|
3361
3361
|
return $this;
|
|
3362
3362
|
}
|
|
3363
3363
|
function JsUrl_init_$Create$_0(protocol, host, port, path, query) {
|
|
@@ -3367,7 +3367,7 @@
|
|
|
3367
3367
|
var tmp;
|
|
3368
3368
|
try {
|
|
3369
3369
|
// Inline function 'okio.use' call
|
|
3370
|
-
var this_0 = buffer(LocalFileSystem_getInstance().
|
|
3370
|
+
var this_0 = buffer(LocalFileSystem_getInstance().s3t(toLocalPath($this)));
|
|
3371
3371
|
var thrown = null;
|
|
3372
3372
|
var tmp_0;
|
|
3373
3373
|
try {
|
|
@@ -3388,7 +3388,7 @@
|
|
|
3388
3388
|
if (this_0 == null)
|
|
3389
3389
|
null;
|
|
3390
3390
|
else {
|
|
3391
|
-
this_0.
|
|
3391
|
+
this_0.z22();
|
|
3392
3392
|
}
|
|
3393
3393
|
} catch ($p_0) {
|
|
3394
3394
|
if ($p_0 instanceof Error) {
|
|
@@ -3419,53 +3419,53 @@
|
|
|
3419
3419
|
return tmp;
|
|
3420
3420
|
}
|
|
3421
3421
|
function JsUrl$readAsText$lambda(it) {
|
|
3422
|
-
return it.
|
|
3422
|
+
return it.k3u();
|
|
3423
3423
|
}
|
|
3424
3424
|
function JsUrl$readAsByteArray$lambda(it) {
|
|
3425
|
-
return it.
|
|
3425
|
+
return it.n3u();
|
|
3426
3426
|
}
|
|
3427
|
-
protoOf(JsUrl).
|
|
3428
|
-
return this.
|
|
3427
|
+
protoOf(JsUrl).s3w = function () {
|
|
3428
|
+
return this.o43_1;
|
|
3429
3429
|
};
|
|
3430
|
-
protoOf(JsUrl).
|
|
3431
|
-
return this.
|
|
3430
|
+
protoOf(JsUrl).t3w = function () {
|
|
3431
|
+
return this.p43_1;
|
|
3432
3432
|
};
|
|
3433
|
-
protoOf(JsUrl).
|
|
3434
|
-
return this.
|
|
3433
|
+
protoOf(JsUrl).u3w = function () {
|
|
3434
|
+
return this.q43_1;
|
|
3435
3435
|
};
|
|
3436
|
-
protoOf(JsUrl).
|
|
3437
|
-
return this.
|
|
3436
|
+
protoOf(JsUrl).v3w = function () {
|
|
3437
|
+
return this.r43_1;
|
|
3438
3438
|
};
|
|
3439
|
-
protoOf(JsUrl).
|
|
3440
|
-
return this.
|
|
3439
|
+
protoOf(JsUrl).w1z = function () {
|
|
3440
|
+
return this.s43_1;
|
|
3441
3441
|
};
|
|
3442
|
-
protoOf(JsUrl).
|
|
3442
|
+
protoOf(JsUrl).t43 = function () {
|
|
3443
3443
|
var tmp;
|
|
3444
|
-
if (this.
|
|
3444
|
+
if (this.w3w() && get_isNode()) {
|
|
3445
3445
|
tmp = readLocalFile(this, JsUrl$readAsText$lambda);
|
|
3446
|
-
} else if (this.
|
|
3447
|
-
tmp = readText(this.
|
|
3446
|
+
} else if (this.w3w()) {
|
|
3447
|
+
tmp = readText(this.q43_1);
|
|
3448
3448
|
} else {
|
|
3449
|
-
tmp = fetch(this.
|
|
3449
|
+
tmp = fetch(this.n43_1, 'UTF-8');
|
|
3450
3450
|
}
|
|
3451
3451
|
return tmp;
|
|
3452
3452
|
};
|
|
3453
3453
|
protoOf(JsUrl).readAsText = function () {
|
|
3454
|
-
return this.
|
|
3454
|
+
return this.t43();
|
|
3455
3455
|
};
|
|
3456
|
-
protoOf(JsUrl).
|
|
3456
|
+
protoOf(JsUrl).u43 = function () {
|
|
3457
3457
|
var tmp;
|
|
3458
|
-
if (this.
|
|
3458
|
+
if (this.w3w() && get_isNode()) {
|
|
3459
3459
|
tmp = readLocalFile(this, JsUrl$readAsByteArray$lambda);
|
|
3460
|
-
} else if (this.
|
|
3461
|
-
tmp = readBin(this.
|
|
3460
|
+
} else if (this.w3w()) {
|
|
3461
|
+
tmp = readBin(this.q43_1);
|
|
3462
3462
|
} else {
|
|
3463
|
-
tmp = toByteArray(fetch(this.
|
|
3463
|
+
tmp = toByteArray(fetch(this.n43_1));
|
|
3464
3464
|
}
|
|
3465
3465
|
return tmp;
|
|
3466
3466
|
};
|
|
3467
3467
|
protoOf(JsUrl).readAsByteArray = function () {
|
|
3468
|
-
return this.
|
|
3468
|
+
return this.u43();
|
|
3469
3469
|
};
|
|
3470
3470
|
protoOf(JsUrl).equals = function (other) {
|
|
3471
3471
|
if (this === other)
|
|
@@ -3474,15 +3474,15 @@
|
|
|
3474
3474
|
return false;
|
|
3475
3475
|
if (!(other instanceof JsUrl))
|
|
3476
3476
|
THROW_CCE();
|
|
3477
|
-
if (!(this.
|
|
3477
|
+
if (!(this.n43_1 === other.n43_1))
|
|
3478
3478
|
return false;
|
|
3479
3479
|
return true;
|
|
3480
3480
|
};
|
|
3481
3481
|
protoOf(JsUrl).hashCode = function () {
|
|
3482
|
-
return getStringHashCode(this.
|
|
3482
|
+
return getStringHashCode(this.n43_1);
|
|
3483
3483
|
};
|
|
3484
3484
|
protoOf(JsUrl).toString = function () {
|
|
3485
|
-
return this.
|
|
3485
|
+
return this.n43_1;
|
|
3486
3486
|
};
|
|
3487
3487
|
function JsUrl() {
|
|
3488
3488
|
}
|
|
@@ -3492,12 +3492,12 @@
|
|
|
3492
3492
|
var tmp = KProperty0;
|
|
3493
3493
|
// Inline function 'kotlin.getValue' call
|
|
3494
3494
|
/* dead property reference removed */
|
|
3495
|
-
return tmp0.
|
|
3495
|
+
return tmp0.h2();
|
|
3496
3496
|
}
|
|
3497
3497
|
var REQUEST$delegate;
|
|
3498
3498
|
function get_isNode() {
|
|
3499
3499
|
_init_properties_RemoteAndBrowserIO_kt__6j78jn();
|
|
3500
|
-
return !Info_getInstance().
|
|
3500
|
+
return !Info_getInstance().ov().equals(Platform_BROWSER_getInstance());
|
|
3501
3501
|
}
|
|
3502
3502
|
function readText(path) {
|
|
3503
3503
|
_init_properties_RemoteAndBrowserIO_kt__6j78jn();
|
|
@@ -3569,7 +3569,7 @@
|
|
|
3569
3569
|
function _get_REQUEST_$ref_g5y4c1() {
|
|
3570
3570
|
return constructCallableReference(function () {
|
|
3571
3571
|
return get_REQUEST();
|
|
3572
|
-
}, 0, 0,
|
|
3572
|
+
}, 0, 0, 126);
|
|
3573
3573
|
}
|
|
3574
3574
|
var properties_initialized_RemoteAndBrowserIO_kt_w2uybl;
|
|
3575
3575
|
function _init_properties_RemoteAndBrowserIO_kt__6j78jn() {
|
|
@@ -3589,7 +3589,7 @@
|
|
|
3589
3589
|
var tmp = KProperty0;
|
|
3590
3590
|
// Inline function 'kotlin.getValue' call
|
|
3591
3591
|
/* dead property reference removed */
|
|
3592
|
-
return tmp0.
|
|
3592
|
+
return tmp0.h2();
|
|
3593
3593
|
}
|
|
3594
3594
|
var FILE_URL_TO_PATH$delegate;
|
|
3595
3595
|
function fileUrl(path) {
|
|
@@ -3611,7 +3611,7 @@
|
|
|
3611
3611
|
function openInputChannel(_this__u8e3s4) {
|
|
3612
3612
|
_init_properties_UrlUtilsJs_kt__dw3tit();
|
|
3613
3613
|
var tmp;
|
|
3614
|
-
if (_this__u8e3s4.
|
|
3614
|
+
if (_this__u8e3s4.w3w() && get_isNode()) {
|
|
3615
3615
|
tmp = wrappingIOException(openInputChannel$lambda(_this__u8e3s4));
|
|
3616
3616
|
} else {
|
|
3617
3617
|
tmp = Companion_instance.ofString(_this__u8e3s4.readAsText());
|
|
@@ -3621,44 +3621,44 @@
|
|
|
3621
3621
|
function openOutputChannel(_this__u8e3s4, append) {
|
|
3622
3622
|
append = append === VOID ? false : append;
|
|
3623
3623
|
_init_properties_UrlUtilsJs_kt__dw3tit();
|
|
3624
|
-
if (!_this__u8e3s4.
|
|
3624
|
+
if (!_this__u8e3s4.w3w() || !get_isNode()) {
|
|
3625
3625
|
throw IOException_init_$Create$('Writing not supported for ' + toString(_this__u8e3s4));
|
|
3626
3626
|
}
|
|
3627
3627
|
var path = toLocalPath(_this__u8e3s4);
|
|
3628
3628
|
return wrappingIOException(openOutputChannel$lambda(append, path));
|
|
3629
3629
|
}
|
|
3630
|
-
function
|
|
3630
|
+
function wrappingIOException(action) {
|
|
3631
3631
|
_init_properties_UrlUtilsJs_kt__dw3tit();
|
|
3632
3632
|
var tmp;
|
|
3633
3633
|
try {
|
|
3634
|
-
|
|
3635
|
-
var tmp_1 = get_FILE_URL_TO_PATH()(toString(_this__u8e3s4));
|
|
3636
|
-
tmp = tmp_0.w42((!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : THROW_CCE());
|
|
3634
|
+
tmp = action();
|
|
3637
3635
|
} catch ($p) {
|
|
3638
|
-
var
|
|
3639
|
-
if ($p instanceof
|
|
3640
|
-
var
|
|
3641
|
-
|
|
3636
|
+
var tmp_0;
|
|
3637
|
+
if ($p instanceof IOException) {
|
|
3638
|
+
var e = $p;
|
|
3639
|
+
throw IOException_init_$Create$_0(e.message, e);
|
|
3642
3640
|
} else {
|
|
3643
3641
|
throw $p;
|
|
3644
3642
|
}
|
|
3645
|
-
tmp = tmp_2;
|
|
3646
3643
|
}
|
|
3647
3644
|
return tmp;
|
|
3648
3645
|
}
|
|
3649
|
-
function
|
|
3646
|
+
function toLocalPath(_this__u8e3s4) {
|
|
3650
3647
|
_init_properties_UrlUtilsJs_kt__dw3tit();
|
|
3651
3648
|
var tmp;
|
|
3652
3649
|
try {
|
|
3653
|
-
|
|
3650
|
+
var tmp_0 = Companion_getInstance_7();
|
|
3651
|
+
var tmp_1 = get_FILE_URL_TO_PATH()(toString(_this__u8e3s4));
|
|
3652
|
+
tmp = tmp_0.q3t((!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : THROW_CCE());
|
|
3654
3653
|
} catch ($p) {
|
|
3655
|
-
var
|
|
3656
|
-
if ($p instanceof
|
|
3657
|
-
var
|
|
3658
|
-
|
|
3654
|
+
var tmp_2;
|
|
3655
|
+
if ($p instanceof Error) {
|
|
3656
|
+
var _unused_var__etf5q3 = $p;
|
|
3657
|
+
tmp_2 = Companion_getInstance_7().q3t(_this__u8e3s4.u3w());
|
|
3659
3658
|
} else {
|
|
3660
3659
|
throw $p;
|
|
3661
3660
|
}
|
|
3661
|
+
tmp = tmp_2;
|
|
3662
3662
|
}
|
|
3663
3663
|
return tmp;
|
|
3664
3664
|
}
|
|
@@ -3669,16 +3669,16 @@
|
|
|
3669
3669
|
function _get_FILE_URL_TO_PATH_$ref_kwvzgc() {
|
|
3670
3670
|
return constructCallableReference(function () {
|
|
3671
3671
|
return get_FILE_URL_TO_PATH();
|
|
3672
|
-
}, 0, 0,
|
|
3672
|
+
}, 0, 0, 127);
|
|
3673
3673
|
}
|
|
3674
3674
|
function openInputChannel$lambda($this_openInputChannel) {
|
|
3675
3675
|
return function () {
|
|
3676
|
-
return new SourceInputChannel(buffer(LocalFileSystem_getInstance().
|
|
3676
|
+
return new SourceInputChannel(buffer(LocalFileSystem_getInstance().s3t(toLocalPath($this_openInputChannel))));
|
|
3677
3677
|
};
|
|
3678
3678
|
}
|
|
3679
3679
|
function openOutputChannel$lambda($append, $path) {
|
|
3680
3680
|
return function () {
|
|
3681
|
-
var sink = $append ? LocalFileSystem_getInstance().
|
|
3681
|
+
var sink = $append ? LocalFileSystem_getInstance().m3w($path) : LocalFileSystem_getInstance().l3w($path);
|
|
3682
3682
|
return new SinkOutputChannel(buffer_0(sink));
|
|
3683
3683
|
};
|
|
3684
3684
|
}
|
|
@@ -3693,8 +3693,8 @@
|
|
|
3693
3693
|
//region block: post-declaration
|
|
3694
3694
|
protoOf(JsUrl).resolve = resolve;
|
|
3695
3695
|
protoOf(JsUrl).div = div;
|
|
3696
|
-
protoOf(JsUrl).
|
|
3697
|
-
protoOf(JsUrl).
|
|
3696
|
+
protoOf(JsUrl).w3w = get_isFile;
|
|
3697
|
+
protoOf(JsUrl).x3w = get_isHttp;
|
|
3698
3698
|
//endregion
|
|
3699
3699
|
//region block: init
|
|
3700
3700
|
Companion_instance_15 = new Companion_0();
|