@tuprolog/2p-full 3.0.7 → 4.0.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-bdd.js +166 -166
- package/2p-core.js +3467 -3417
- package/2p-core.js.map +1 -1
- package/2p-io-lib.js +878 -874
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +1009 -1005
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +124 -124
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1404 -1404
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +87 -87
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +224 -187
- package/2p-repl.js.map +1 -1
- package/2p-solve-plp.js +3 -3
- package/2p-solve-problog.js +1528 -1338
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-prolog.js +3500 -2070
- package/2p-solve-prolog.js.map +1 -1
- package/2p-solve.js +6297 -5520
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +2301 -4039
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +1057 -950
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +875 -940
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-mordant.js +98 -98
- package/clikt-clikt.js +1673 -1672
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +474 -474
- package/kotlin-kotlin-stdlib.js +4097 -2277
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +11773 -8235
- package/kt-math.js.map +1 -1
- package/mordant-mordant.js +1585 -1535
- package/mordant-mordant.js.map +1 -1
- package/okio-parent-okio-nodefilesystem.js +50 -50
- package/okio-parent-okio.js +655 -655
- package/package.json +1 -1
package/2p-io-lib.js
CHANGED
|
@@ -38,152 +38,153 @@
|
|
|
38
38
|
//region block: imports
|
|
39
39
|
var VOID = kotlin_kotlin.$_$.b;
|
|
40
40
|
var buildParserFor = kotlin_it_unibo_tuprolog_parser_impl.$_$.v;
|
|
41
|
-
var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
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.$_$.
|
|
41
|
+
var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.z;
|
|
42
|
+
var Unit_instance = kotlin_kotlin.$_$.m1;
|
|
43
|
+
var protoOf = kotlin_kotlin.$_$.ba;
|
|
44
|
+
var equals = kotlin_kotlin.$_$.c9;
|
|
45
|
+
var FunctionAdapter = kotlin_kotlin.$_$.p8;
|
|
46
|
+
var isInterface = kotlin_kotlin.$_$.t9;
|
|
47
47
|
var TextChunkSource = kotlin_it_unibo_tuprolog_parser_impl.$_$.t;
|
|
48
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
49
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
50
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
51
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
52
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
53
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
48
|
+
var hashCode = kotlin_kotlin.$_$.j9;
|
|
49
|
+
var initMetadataForClass = kotlin_kotlin.$_$.k9;
|
|
50
|
+
var CoroutineImpl = kotlin_kotlin.$_$.s7;
|
|
51
|
+
var THROW_CCE = kotlin_kotlin.$_$.sf;
|
|
52
|
+
var SequenceScope = kotlin_kotlin.$_$.fb;
|
|
53
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r7;
|
|
54
54
|
var toParseException = kotlin_it_unibo_tuprolog_parser_core.$_$.h;
|
|
55
55
|
var PrologSyntaxException = kotlin_it_unibo_tuprolog_parser_impl.$_$.j;
|
|
56
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
57
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
56
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.o9;
|
|
57
|
+
var constructCallableReference = kotlin_kotlin.$_$.a9;
|
|
58
58
|
var toOperatorTable = kotlin_it_unibo_tuprolog_parser_core.$_$.g;
|
|
59
|
-
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
59
|
+
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.x;
|
|
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.$_$.kc;
|
|
62
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
63
|
+
var AbstractLibrary = kotlin_it_unibo_tuprolog_solve.$_$.n3;
|
|
64
|
+
var Companion_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.u1;
|
|
65
|
+
var listOf = kotlin_kotlin.$_$.l5;
|
|
66
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.u3;
|
|
67
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
68
|
+
var to = kotlin_kotlin.$_$.kg;
|
|
69
|
+
var initMetadataForObject = kotlin_kotlin.$_$.p9;
|
|
70
|
+
var Companion_instance_1 = kotlin_kotlin.$_$.k1;
|
|
71
|
+
var asSequence = kotlin_kotlin.$_$.p3;
|
|
72
|
+
var map = kotlin_kotlin.$_$.dc;
|
|
73
73
|
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.m;
|
|
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 Regex_init_$Create$ = kotlin_kotlin.$_$.
|
|
81
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
82
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
83
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
84
|
-
var AbstractOutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
85
|
-
var AbstractInputChannel = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
86
|
-
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.
|
|
87
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
88
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.
|
|
89
|
-
var numberToChar = kotlin_kotlin.$_$.
|
|
90
|
-
var Char = kotlin_kotlin.$_$.
|
|
91
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
92
|
-
var TuPrologException_init_$Init$ = kotlin_it_unibo_tuprolog_core.$_$.
|
|
93
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
94
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
95
|
-
var TuPrologException_init_$Init$_0 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
96
|
-
var TuPrologException = kotlin_it_unibo_tuprolog_core.$_$.
|
|
97
|
-
var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
98
|
-
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
74
|
+
var toSet = kotlin_kotlin.$_$.pc;
|
|
75
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.l9;
|
|
76
|
+
var THROW_IAE = kotlin_kotlin.$_$.tf;
|
|
77
|
+
var enumEntries = kotlin_kotlin.$_$.t7;
|
|
78
|
+
var Enum = kotlin_kotlin.$_$.if;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.ea;
|
|
80
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.x1;
|
|
81
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.g2;
|
|
82
|
+
var startsWith = kotlin_kotlin.$_$.ce;
|
|
83
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.n9;
|
|
84
|
+
var AbstractOutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.a3;
|
|
85
|
+
var AbstractInputChannel = kotlin_it_unibo_tuprolog_solve.$_$.z2;
|
|
86
|
+
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
87
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.q;
|
|
88
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.u;
|
|
89
|
+
var numberToChar = kotlin_kotlin.$_$.x9;
|
|
90
|
+
var Char = kotlin_kotlin.$_$.ef;
|
|
91
|
+
var toString_0 = kotlin_kotlin.$_$.v;
|
|
92
|
+
var TuPrologException_init_$Init$ = kotlin_it_unibo_tuprolog_core.$_$.h1;
|
|
93
|
+
var objectCreate = kotlin_kotlin.$_$.aa;
|
|
94
|
+
var captureStack = kotlin_kotlin.$_$.s8;
|
|
95
|
+
var TuPrologException_init_$Init$_0 = kotlin_it_unibo_tuprolog_core.$_$.j1;
|
|
96
|
+
var TuPrologException = kotlin_it_unibo_tuprolog_core.$_$.m1;
|
|
97
|
+
var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.k1;
|
|
98
|
+
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.l1;
|
|
99
99
|
var Expected_URL_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.r;
|
|
100
|
-
var Predicative = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
101
|
-
var Predicative_0 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
102
|
-
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
103
|
-
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
104
|
-
var InputChannel = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
105
|
-
var OutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
106
|
-
var NonBacktrackable_0 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
107
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
108
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
109
|
-
var Atom = kotlin_it_unibo_tuprolog_core.$_$.
|
|
110
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
111
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
112
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
113
|
-
var flatMap = kotlin_kotlin.$_$.
|
|
114
|
-
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
115
|
-
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
116
|
-
var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
117
|
-
var Companion_instance_4 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
118
|
-
var filter = kotlin_kotlin.$_$.
|
|
119
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
120
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
121
|
-
var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
122
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
123
|
-
var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
100
|
+
var Predicative = kotlin_it_unibo_tuprolog_solve.$_$.v3;
|
|
101
|
+
var Predicative_0 = kotlin_it_unibo_tuprolog_solve.$_$.h4;
|
|
102
|
+
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.s3;
|
|
103
|
+
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_solve.$_$.w1;
|
|
104
|
+
var InputChannel = kotlin_it_unibo_tuprolog_solve.$_$.b3;
|
|
105
|
+
var OutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.c3;
|
|
106
|
+
var NonBacktrackable_0 = kotlin_it_unibo_tuprolog_solve.$_$.g4;
|
|
107
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.k2;
|
|
108
|
+
var IllegalStateException = kotlin_kotlin.$_$.lf;
|
|
109
|
+
var Atom = kotlin_it_unibo_tuprolog_core.$_$.p1;
|
|
110
|
+
var KProperty1 = kotlin_kotlin.$_$.eb;
|
|
111
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.h9;
|
|
112
|
+
var sequenceOf = kotlin_kotlin.$_$.ic;
|
|
113
|
+
var flatMap = kotlin_kotlin.$_$.tb;
|
|
114
|
+
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.y;
|
|
115
|
+
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.d1;
|
|
116
|
+
var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_core.$_$.b1;
|
|
117
|
+
var Companion_instance_4 = kotlin_it_unibo_tuprolog_core.$_$.t;
|
|
118
|
+
var filter = kotlin_kotlin.$_$.qb;
|
|
119
|
+
var Sequence = kotlin_kotlin.$_$.gb;
|
|
120
|
+
var firstOrNull = kotlin_kotlin.$_$.rb;
|
|
121
|
+
var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_core.$_$.z;
|
|
122
|
+
var charCodeAt = kotlin_kotlin.$_$.v8;
|
|
123
|
+
var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.i1;
|
|
124
124
|
var Limit_CHARACTER_CODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.j;
|
|
125
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
126
|
-
var asSequence_0 = kotlin_kotlin.$_$.
|
|
127
|
-
var addAll = kotlin_kotlin.$_$.
|
|
128
|
-
var toList = kotlin_kotlin.$_$.
|
|
129
|
-
var Struct = kotlin_it_unibo_tuprolog_core.$_$.
|
|
130
|
-
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
131
|
-
var filterNot = kotlin_kotlin.$_$.
|
|
132
|
-
var Truth = kotlin_it_unibo_tuprolog_core.$_$.
|
|
133
|
-
var lazy = kotlin_kotlin.$_$.
|
|
134
|
-
var Companion_instance_7 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
125
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.q1;
|
|
126
|
+
var asSequence_0 = kotlin_kotlin.$_$.o3;
|
|
127
|
+
var addAll = kotlin_kotlin.$_$.g3;
|
|
128
|
+
var toList = kotlin_kotlin.$_$.a7;
|
|
129
|
+
var Struct = kotlin_it_unibo_tuprolog_core.$_$.b2;
|
|
130
|
+
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.b1;
|
|
131
|
+
var filterNot = kotlin_kotlin.$_$.pb;
|
|
132
|
+
var Truth = kotlin_it_unibo_tuprolog_core.$_$.b3;
|
|
133
|
+
var lazy = kotlin_kotlin.$_$.eg;
|
|
134
|
+
var Companion_instance_7 = kotlin_it_unibo_tuprolog_solve.$_$.e1;
|
|
135
135
|
var Expected_STREAM_PROPERTY_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.e;
|
|
136
136
|
var Expected_WRITE_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g;
|
|
137
137
|
var Expected_READ_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.b;
|
|
138
|
-
var List = kotlin_it_unibo_tuprolog_core.$_$.
|
|
139
|
-
var Var = kotlin_it_unibo_tuprolog_core.$_$.
|
|
138
|
+
var List = kotlin_it_unibo_tuprolog_core.$_$.x1;
|
|
139
|
+
var Var = kotlin_it_unibo_tuprolog_core.$_$.c3;
|
|
140
140
|
var FuncFormat_LITERAL_getInstance = kotlin_it_unibo_tuprolog_core.$_$.d;
|
|
141
141
|
var FuncFormat_QUOTED_IF_NECESSARY_getInstance = kotlin_it_unibo_tuprolog_core.$_$.e;
|
|
142
142
|
var OpFormat_EXPRESSIONS_getInstance = kotlin_it_unibo_tuprolog_core.$_$.f;
|
|
143
143
|
var OpFormat_IGNORE_OPERATORS_getInstance = kotlin_it_unibo_tuprolog_core.$_$.g;
|
|
144
|
-
var Companion_instance_8 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
144
|
+
var Companion_instance_8 = kotlin_it_unibo_tuprolog_core.$_$.a1;
|
|
145
145
|
var VarFormat_UNDERSCORE_getInstance = kotlin_it_unibo_tuprolog_core.$_$.h;
|
|
146
146
|
var Expected_SOURCE_SINK_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.c;
|
|
147
147
|
var Expected_IO_MODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.a;
|
|
148
|
-
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
148
|
+
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.f1;
|
|
149
149
|
var Expected_STREAM_OR_ALIAS_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.d;
|
|
150
150
|
var Expected_IN_CHARACTER_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.n;
|
|
151
|
-
var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
152
|
-
var Integer = kotlin_it_unibo_tuprolog_core.$_$.
|
|
153
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
151
|
+
var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_core.$_$.s;
|
|
152
|
+
var Integer = kotlin_it_unibo_tuprolog_core.$_$.w1;
|
|
153
|
+
var KtMap = kotlin_kotlin.$_$.d3;
|
|
154
154
|
var Expected_STREAM_TYPE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f;
|
|
155
|
-
var format = kotlin_it_unibo_tuprolog_core.$_$.
|
|
156
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
157
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
158
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
159
|
-
var last = kotlin_kotlin.$_$.
|
|
160
|
-
var Companion_instance_10 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
155
|
+
var format = kotlin_it_unibo_tuprolog_core.$_$.d3;
|
|
156
|
+
var emptyList = kotlin_kotlin.$_$.l4;
|
|
157
|
+
var get_lastIndex = kotlin_kotlin.$_$.b5;
|
|
158
|
+
var toList_0 = kotlin_kotlin.$_$.oc;
|
|
159
|
+
var last = kotlin_kotlin.$_$.f5;
|
|
160
|
+
var Companion_instance_10 = kotlin_it_unibo_tuprolog_solve.$_$.j1;
|
|
161
161
|
var ParseException = kotlin_it_unibo_tuprolog_parser_core.$_$.a;
|
|
162
|
-
var emptySet = kotlin_kotlin.$_$.
|
|
163
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
162
|
+
var emptySet = kotlin_kotlin.$_$.n4;
|
|
163
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.fg;
|
|
164
164
|
var ObjectType_SOURCE_SINK_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.i;
|
|
165
|
-
var ExistenceError_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
165
|
+
var ExistenceError_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.q2;
|
|
166
166
|
var FileNotFoundException = kotlin_com_squareup_okio_okio.$_$.d;
|
|
167
|
-
var NonBacktrackable_1 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
168
|
-
var NonBacktrackable_2 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
167
|
+
var NonBacktrackable_1 = kotlin_it_unibo_tuprolog_solve.$_$.b4;
|
|
168
|
+
var NonBacktrackable_2 = kotlin_it_unibo_tuprolog_solve.$_$.w3;
|
|
169
169
|
var Companion_instance_11 = kotlin_it_unibo_tuprolog_parser_theory.$_$.a;
|
|
170
170
|
var Companion_instance_12 = kotlin_it_unibo_tuprolog_theory.$_$.b;
|
|
171
171
|
var Companion_instance_13 = kotlin_it_unibo_tuprolog_theory.$_$.a;
|
|
172
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
173
|
-
var titlecase = kotlin_kotlin.$_$.
|
|
174
|
-
var isLowerCase = kotlin_kotlin.$_$.
|
|
175
|
-
var substring = kotlin_kotlin.$_$.
|
|
176
|
-
var BinaryRelation = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
177
|
-
var
|
|
178
|
-
var
|
|
179
|
-
var
|
|
180
|
-
var
|
|
172
|
+
var charSequenceLength = kotlin_kotlin.$_$.x8;
|
|
173
|
+
var titlecase = kotlin_kotlin.$_$.ke;
|
|
174
|
+
var isLowerCase = kotlin_kotlin.$_$.ld;
|
|
175
|
+
var substring = kotlin_kotlin.$_$.he;
|
|
176
|
+
var BinaryRelation = kotlin_it_unibo_tuprolog_solve.$_$.u3;
|
|
177
|
+
var Alternatives_LOOKAHEAD_SAFE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.y;
|
|
178
|
+
var distinct = kotlin_kotlin.$_$.lb;
|
|
179
|
+
var removeSuffix = kotlin_kotlin.$_$.vd;
|
|
180
|
+
var toIntOrNull = kotlin_kotlin.$_$.ne;
|
|
181
|
+
var removePrefix = kotlin_kotlin.$_$.td;
|
|
181
182
|
var buffer = kotlin_com_squareup_okio_okio.$_$.g;
|
|
182
|
-
var addSuppressed = kotlin_kotlin.$_$.
|
|
183
|
+
var addSuppressed = kotlin_kotlin.$_$.wf;
|
|
183
184
|
var IOException = kotlin_com_squareup_okio_okio.$_$.f;
|
|
184
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
185
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
186
|
-
var Info_getInstance = kotlin_it_unibo_tuprolog_core.$_$.
|
|
185
|
+
var getStringHashCode = kotlin_kotlin.$_$.i9;
|
|
186
|
+
var KProperty0 = kotlin_kotlin.$_$.db;
|
|
187
|
+
var Info_getInstance = kotlin_it_unibo_tuprolog_core.$_$.f1;
|
|
187
188
|
var Platform_BROWSER_getInstance = kotlin_it_unibo_tuprolog_core.$_$.i;
|
|
188
189
|
var Companion_getInstance_7 = kotlin_com_squareup_okio_okio.$_$.a;
|
|
189
190
|
var buffer_0 = kotlin_com_squareup_okio_okio.$_$.h;
|
|
@@ -198,16 +199,16 @@
|
|
|
198
199
|
initMetadataForObject(LocalFileSystem, 'LocalFileSystem');
|
|
199
200
|
initMetadataForCompanion(Companion_0);
|
|
200
201
|
function resolve(child) {
|
|
201
|
-
return Companion_getInstance_9().
|
|
202
|
+
return Companion_getInstance_9().m4x(this.q4x(), this.r4x(), this.r3g(), this.y3e() + '/' + child, this.j25());
|
|
202
203
|
}
|
|
203
204
|
function div(child) {
|
|
204
205
|
return this.resolve(child);
|
|
205
206
|
}
|
|
206
207
|
function get_isFile() {
|
|
207
|
-
return this.
|
|
208
|
+
return this.q4x() === 'file';
|
|
208
209
|
}
|
|
209
210
|
function get_isHttp() {
|
|
210
|
-
return startsWith(this.
|
|
211
|
+
return startsWith(this.q4x(), 'http');
|
|
211
212
|
}
|
|
212
213
|
initMetadataForInterface(Url, 'Url');
|
|
213
214
|
initMetadataForClass(SinkOutputChannel, 'SinkOutputChannel', VOID, AbstractOutputChannel);
|
|
@@ -282,7 +283,7 @@
|
|
|
282
283
|
var tmp_2 = Companion_instance;
|
|
283
284
|
var tmp_3 = asTermChannel$lambda_1(termIterator);
|
|
284
285
|
var answer = tmp_2.ofWithAvailabilityChecker(tmp_3, Iterator$hasNext$ref(termIterator));
|
|
285
|
-
this_0.
|
|
286
|
+
this_0.q4(_this__u8e3s4, answer);
|
|
286
287
|
tmp = answer;
|
|
287
288
|
} else {
|
|
288
289
|
tmp = value;
|
|
@@ -290,13 +291,13 @@
|
|
|
290
291
|
return tmp;
|
|
291
292
|
}
|
|
292
293
|
function sam$it_unibo_tuprolog_parser_TextChunkSource$0(function_0) {
|
|
293
|
-
this.
|
|
294
|
+
this.q4w_1 = function_0;
|
|
294
295
|
}
|
|
295
|
-
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).
|
|
296
|
-
return this.
|
|
296
|
+
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).v4d = function () {
|
|
297
|
+
return this.q4w_1();
|
|
297
298
|
};
|
|
298
299
|
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).r2 = function () {
|
|
299
|
-
return this.
|
|
300
|
+
return this.q4w_1;
|
|
300
301
|
};
|
|
301
302
|
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).equals = function (other) {
|
|
302
303
|
var tmp;
|
|
@@ -322,97 +323,97 @@
|
|
|
322
323
|
};
|
|
323
324
|
}
|
|
324
325
|
function asTermChannel$lambda$slambda($session, $visitor, $lexedSource, resultContinuation) {
|
|
325
|
-
this.
|
|
326
|
-
this.
|
|
327
|
-
this.
|
|
326
|
+
this.z4w_1 = $session;
|
|
327
|
+
this.a4x_1 = $visitor;
|
|
328
|
+
this.b4x_1 = $lexedSource;
|
|
328
329
|
CoroutineImpl.call(this, resultContinuation);
|
|
329
330
|
}
|
|
330
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
331
|
-
var tmp = this.
|
|
332
|
-
tmp.
|
|
333
|
-
tmp.
|
|
334
|
-
return tmp.
|
|
331
|
+
protoOf(asTermChannel$lambda$slambda).t2i = function ($this$sequence, $completion) {
|
|
332
|
+
var tmp = this.u2i($this$sequence, $completion);
|
|
333
|
+
tmp.t8_1 = Unit_instance;
|
|
334
|
+
tmp.u8_1 = null;
|
|
335
|
+
return tmp.z8();
|
|
335
336
|
};
|
|
336
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
337
|
-
return this.
|
|
337
|
+
protoOf(asTermChannel$lambda$slambda).q9 = function (p1, $completion) {
|
|
338
|
+
return this.t2i(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
338
339
|
};
|
|
339
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
340
|
-
var suspendResult = this.
|
|
340
|
+
protoOf(asTermChannel$lambda$slambda).z8 = function () {
|
|
341
|
+
var suspendResult = this.t8_1;
|
|
341
342
|
$sm: do
|
|
342
343
|
try {
|
|
343
|
-
var tmp = this.
|
|
344
|
+
var tmp = this.r8_1;
|
|
344
345
|
switch (tmp) {
|
|
345
346
|
case 0:
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
348
|
-
this.
|
|
349
|
-
this.
|
|
347
|
+
this.s8_1 = 6;
|
|
348
|
+
this.s8_1 = 5;
|
|
349
|
+
this.d4x_1 = this.z4w_1.l4l();
|
|
350
|
+
this.r8_1 = 1;
|
|
350
351
|
continue $sm;
|
|
351
352
|
case 1:
|
|
352
|
-
if (!!(this.
|
|
353
|
-
this.
|
|
353
|
+
if (!!(this.d4x_1 == null)) {
|
|
354
|
+
this.r8_1 = 3;
|
|
354
355
|
continue $sm;
|
|
355
356
|
}
|
|
356
357
|
|
|
357
|
-
this.
|
|
358
|
-
suspendResult = this.
|
|
358
|
+
this.r8_1 = 2;
|
|
359
|
+
suspendResult = this.c4x_1.wf(this.d4x_1.r4q_1.a4n(this.a4x_1), this);
|
|
359
360
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
360
361
|
return suspendResult;
|
|
361
362
|
}
|
|
362
363
|
|
|
363
364
|
continue $sm;
|
|
364
365
|
case 2:
|
|
365
|
-
this.
|
|
366
|
-
this.
|
|
366
|
+
this.d4x_1 = this.z4w_1.l4l();
|
|
367
|
+
this.r8_1 = 1;
|
|
367
368
|
continue $sm;
|
|
368
369
|
case 3:
|
|
369
|
-
this.
|
|
370
|
-
this.
|
|
370
|
+
this.s8_1 = 6;
|
|
371
|
+
this.r8_1 = 4;
|
|
371
372
|
continue $sm;
|
|
372
373
|
case 4:
|
|
373
|
-
this.
|
|
374
|
+
this.s8_1 = 6;
|
|
374
375
|
return Unit_instance;
|
|
375
376
|
case 5:
|
|
376
|
-
this.
|
|
377
|
-
var tmp_0 = this.
|
|
377
|
+
this.s8_1 = 6;
|
|
378
|
+
var tmp_0 = this.u8_1;
|
|
378
379
|
if (tmp_0 instanceof PrologSyntaxException) {
|
|
379
|
-
var e = this.
|
|
380
|
-
var it = this.
|
|
381
|
-
var tmp0_elvis_lhs = it.
|
|
382
|
-
var input = tmp0_elvis_lhs == null ? it.
|
|
380
|
+
var e = this.u8_1;
|
|
381
|
+
var it = this.b4x_1.b11();
|
|
382
|
+
var tmp0_elvis_lhs = it.p1c();
|
|
383
|
+
var input = tmp0_elvis_lhs == null ? it.r4g() : tmp0_elvis_lhs;
|
|
383
384
|
throw toParseException(e, input);
|
|
384
385
|
} else {
|
|
385
|
-
throw this.
|
|
386
|
+
throw this.u8_1;
|
|
386
387
|
}
|
|
387
388
|
|
|
388
389
|
case 6:
|
|
389
|
-
throw this.
|
|
390
|
+
throw this.u8_1;
|
|
390
391
|
}
|
|
391
392
|
} catch ($p) {
|
|
392
393
|
var e_0 = $p;
|
|
393
|
-
if (this.
|
|
394
|
+
if (this.s8_1 === 6) {
|
|
394
395
|
throw e_0;
|
|
395
396
|
} else {
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
397
|
+
this.r8_1 = this.s8_1;
|
|
398
|
+
this.u8_1 = e_0;
|
|
398
399
|
}
|
|
399
400
|
}
|
|
400
401
|
while (true);
|
|
401
402
|
};
|
|
402
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
403
|
-
var i = new asTermChannel$lambda$slambda(this.
|
|
404
|
-
i.
|
|
403
|
+
protoOf(asTermChannel$lambda$slambda).u2i = function ($this$sequence, completion) {
|
|
404
|
+
var i = new asTermChannel$lambda$slambda(this.z4w_1, this.a4x_1, this.b4x_1, completion);
|
|
405
|
+
i.c4x_1 = $this$sequence;
|
|
405
406
|
return i;
|
|
406
407
|
};
|
|
407
408
|
function asTermChannel$lambda$slambda_0($session, $visitor, $lexedSource, resultContinuation) {
|
|
408
409
|
var i = new asTermChannel$lambda$slambda($session, $visitor, $lexedSource, resultContinuation);
|
|
409
410
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
410
|
-
return i.
|
|
411
|
+
return i.t2i($this$sequence, $completion);
|
|
411
412
|
}, 1);
|
|
412
413
|
}
|
|
413
414
|
function asTermChannel$lambda_0($operators) {
|
|
414
415
|
return function (parser, lexedSource) {
|
|
415
|
-
var session = parser.
|
|
416
|
+
var session = parser.p4l(lexedSource, toOperatorTable($operators));
|
|
416
417
|
var visitor = new PrologTermParserVisitor(Companion_instance_0.empty());
|
|
417
418
|
return sequence(asTermChannel$lambda$slambda_0(session, visitor, lexedSource, null));
|
|
418
419
|
};
|
|
@@ -425,7 +426,7 @@
|
|
|
425
426
|
function Iterator$hasNext$ref(p0) {
|
|
426
427
|
return constructCallableReference(function () {
|
|
427
428
|
return p0.q();
|
|
428
|
-
}, 0, 0,
|
|
429
|
+
}, 0, 0, 57, 'hasNext', [p0]);
|
|
429
430
|
}
|
|
430
431
|
var properties_initialized_ChannelUtils_kt_an3chc;
|
|
431
432
|
function _init_properties_ChannelUtils_kt__fqios2() {
|
|
@@ -438,15 +439,15 @@
|
|
|
438
439
|
function IOLib() {
|
|
439
440
|
IOLib_instance = this;
|
|
440
441
|
AbstractLibrary.call(this);
|
|
441
|
-
this.
|
|
442
|
+
this.f4x_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.";
|
|
442
443
|
}
|
|
443
|
-
protoOf(IOLib).
|
|
444
|
-
return this.
|
|
444
|
+
protoOf(IOLib).a23 = function () {
|
|
445
|
+
return this.f4x_1;
|
|
445
446
|
};
|
|
446
|
-
protoOf(IOLib).
|
|
447
|
+
protoOf(IOLib).c2r = function () {
|
|
447
448
|
return 'prolog.io';
|
|
448
449
|
};
|
|
449
|
-
protoOf(IOLib).
|
|
450
|
+
protoOf(IOLib).x2q = function () {
|
|
450
451
|
var tmp = Companion_getInstance();
|
|
451
452
|
// Inline function 'kotlin.collections.map' call
|
|
452
453
|
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()]);
|
|
@@ -456,7 +457,7 @@
|
|
|
456
457
|
while (_iterator__ex2g4s.q()) {
|
|
457
458
|
var item = _iterator__ex2g4s.r();
|
|
458
459
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.descriptionPair' call
|
|
459
|
-
var tmp$ret$2 = to(item.signature, item.
|
|
460
|
+
var tmp$ret$2 = to(item.signature, item.y22());
|
|
460
461
|
destination.l(tmp$ret$2);
|
|
461
462
|
}
|
|
462
463
|
return tmp.iterableToMapEnsuringNoDuplicates(destination);
|
|
@@ -475,7 +476,7 @@
|
|
|
475
476
|
function Atom$Companion$of$ref(p0) {
|
|
476
477
|
return constructCallableReference(function (p0_0) {
|
|
477
478
|
return p0.of(p0_0);
|
|
478
|
-
}, 1, 0,
|
|
479
|
+
}, 1, 0, 58, 'of', [p0]);
|
|
479
480
|
}
|
|
480
481
|
var static_init_called;
|
|
481
482
|
function static_init() {
|
|
@@ -498,7 +499,7 @@
|
|
|
498
499
|
var tmp = this;
|
|
499
500
|
var tmp_0 = asSequence(get_entries());
|
|
500
501
|
var tmp_1 = map(tmp_0, IOMode$Companion$atomValues$lambda);
|
|
501
|
-
tmp.
|
|
502
|
+
tmp.g4x_1 = toSet(map(tmp_1, Atom$Companion$of$ref(Companion_getInstance_0())));
|
|
502
503
|
}
|
|
503
504
|
var Companion_instance_14;
|
|
504
505
|
function Companion_getInstance_8() {
|
|
@@ -547,24 +548,24 @@
|
|
|
547
548
|
}
|
|
548
549
|
function LocalFileSystem() {
|
|
549
550
|
LocalFileSystem_instance = this;
|
|
550
|
-
this.
|
|
551
|
+
this.h4x_1 = get_platformFileSystem();
|
|
551
552
|
}
|
|
552
|
-
protoOf(LocalFileSystem).
|
|
553
|
-
return this.
|
|
553
|
+
protoOf(LocalFileSystem).v4t = function (path) {
|
|
554
|
+
return this.h4x_1.v4t(path);
|
|
554
555
|
};
|
|
555
|
-
protoOf(LocalFileSystem).
|
|
556
|
-
return this.
|
|
556
|
+
protoOf(LocalFileSystem).w4t = function (path, mustCreate) {
|
|
557
|
+
return this.h4x_1.w4t(path, mustCreate);
|
|
557
558
|
};
|
|
558
|
-
protoOf(LocalFileSystem).
|
|
559
|
+
protoOf(LocalFileSystem).i4x = function (path, mustCreate, $super) {
|
|
559
560
|
mustCreate = mustCreate === VOID ? false : mustCreate;
|
|
560
|
-
return $super === VOID ? this.
|
|
561
|
+
return $super === VOID ? this.w4t(path, mustCreate) : $super.w4t.call(this, path, mustCreate);
|
|
561
562
|
};
|
|
562
|
-
protoOf(LocalFileSystem).
|
|
563
|
-
return this.
|
|
563
|
+
protoOf(LocalFileSystem).x4t = function (path, mustExist) {
|
|
564
|
+
return this.h4x_1.x4t(path, mustExist);
|
|
564
565
|
};
|
|
565
|
-
protoOf(LocalFileSystem).
|
|
566
|
+
protoOf(LocalFileSystem).j4x = function (path, mustExist, $super) {
|
|
566
567
|
mustExist = mustExist === VOID ? false : mustExist;
|
|
567
|
-
return $super === VOID ? this.
|
|
568
|
+
return $super === VOID ? this.x4t(path, mustExist) : $super.x4t.call(this, path, mustExist);
|
|
568
569
|
};
|
|
569
570
|
var LocalFileSystem_instance;
|
|
570
571
|
function LocalFileSystem_getInstance() {
|
|
@@ -593,9 +594,9 @@
|
|
|
593
594
|
}
|
|
594
595
|
function Companion_0() {
|
|
595
596
|
Companion_instance_15 = this;
|
|
596
|
-
this.
|
|
597
|
+
this.k4x_1 = Regex_init_$Create$('^[A-Za-z]:[\\\\/]');
|
|
597
598
|
}
|
|
598
|
-
protoOf(Companion_0).
|
|
599
|
+
protoOf(Companion_0).l4x = function (_this__u8e3s4) {
|
|
599
600
|
var tmp;
|
|
600
601
|
if (_this__u8e3s4 < 0) {
|
|
601
602
|
throw IllegalArgumentException_init_$Create$('Invalid port: ' + _this__u8e3s4);
|
|
@@ -607,7 +608,7 @@
|
|
|
607
608
|
protoOf(Companion_0).file = function (path) {
|
|
608
609
|
return fileUrl(path);
|
|
609
610
|
};
|
|
610
|
-
protoOf(Companion_0).
|
|
611
|
+
protoOf(Companion_0).m4x = function (protocol, host, port, path, query) {
|
|
611
612
|
return remoteUrl(protocol, host, port, path, query);
|
|
612
613
|
};
|
|
613
614
|
protoOf(Companion_0).remote = function (protocol, host, port, path, query, $super) {
|
|
@@ -615,27 +616,27 @@
|
|
|
615
616
|
port = port === VOID ? null : port;
|
|
616
617
|
path = path === VOID ? '' : path;
|
|
617
618
|
query = query === VOID ? null : query;
|
|
618
|
-
return $super === VOID ? this.
|
|
619
|
+
return $super === VOID ? this.m4x(protocol, host, port, path, query) : $super.m4x.call(this, protocol, host, port, path, query);
|
|
619
620
|
};
|
|
620
|
-
protoOf(Companion_0).
|
|
621
|
-
return this.
|
|
621
|
+
protoOf(Companion_0).n4x = function (host, port, path, query) {
|
|
622
|
+
return this.m4x('http', host, port, path, query);
|
|
622
623
|
};
|
|
623
624
|
protoOf(Companion_0).http = function (host, port, path, query, $super) {
|
|
624
625
|
host = host === VOID ? '' : host;
|
|
625
626
|
port = port === VOID ? null : port;
|
|
626
627
|
path = path === VOID ? '' : path;
|
|
627
628
|
query = query === VOID ? null : query;
|
|
628
|
-
return $super === VOID ? this.
|
|
629
|
+
return $super === VOID ? this.n4x(host, port, path, query) : $super.n4x.call(this, host, port, path, query);
|
|
629
630
|
};
|
|
630
|
-
protoOf(Companion_0).
|
|
631
|
-
return this.
|
|
631
|
+
protoOf(Companion_0).o4x = function (host, port, path, query) {
|
|
632
|
+
return this.m4x('https', host, port, path, query);
|
|
632
633
|
};
|
|
633
634
|
protoOf(Companion_0).https = function (host, port, path, query, $super) {
|
|
634
635
|
host = host === VOID ? '' : host;
|
|
635
636
|
port = port === VOID ? null : port;
|
|
636
637
|
path = path === VOID ? '' : path;
|
|
637
638
|
query = query === VOID ? null : query;
|
|
638
|
-
return $super === VOID ? this.
|
|
639
|
+
return $super === VOID ? this.o4x(host, port, path, query) : $super.o4x.call(this, host, port, path, query);
|
|
639
640
|
};
|
|
640
641
|
protoOf(Companion_0).of = function (string) {
|
|
641
642
|
var tmp;
|
|
@@ -646,7 +647,7 @@
|
|
|
646
647
|
if ($p instanceof InvalidUrlException) {
|
|
647
648
|
var e = $p;
|
|
648
649
|
var tmp_1;
|
|
649
|
-
if (startsWith(string, '/') || this.
|
|
650
|
+
if (startsWith(string, '/') || this.k4x_1.vb(string)) {
|
|
650
651
|
var tmp_2;
|
|
651
652
|
try {
|
|
652
653
|
tmp_2 = parseUrl('file://' + string);
|
|
@@ -671,8 +672,8 @@
|
|
|
671
672
|
}
|
|
672
673
|
return tmp;
|
|
673
674
|
};
|
|
674
|
-
protoOf(Companion_0).
|
|
675
|
-
var tmp = port == null ? null : this.
|
|
675
|
+
protoOf(Companion_0).p4x = function (protocol, host, port, path, query) {
|
|
676
|
+
var tmp = port == null ? null : this.l4x(port);
|
|
676
677
|
var tmp_0 = str(this, tmp, Url$Companion$toString$lambda);
|
|
677
678
|
return protocol + '://' + host + tmp_0 + path + str(this, query, Url$Companion$toString$lambda_0);
|
|
678
679
|
};
|
|
@@ -686,19 +687,19 @@
|
|
|
686
687
|
}
|
|
687
688
|
function SinkOutputChannel(sink) {
|
|
688
689
|
AbstractOutputChannel.call(this);
|
|
689
|
-
this.
|
|
690
|
+
this.y4x_1 = sink;
|
|
690
691
|
}
|
|
691
|
-
protoOf(SinkOutputChannel).
|
|
692
|
-
this.
|
|
692
|
+
protoOf(SinkOutputChannel).z4x = function (value) {
|
|
693
|
+
this.y4x_1.a4t(value);
|
|
693
694
|
};
|
|
694
|
-
protoOf(SinkOutputChannel).
|
|
695
|
-
return this.
|
|
695
|
+
protoOf(SinkOutputChannel).p29 = function (value) {
|
|
696
|
+
return this.z4x(typeof value === 'string' ? value : THROW_CCE());
|
|
696
697
|
};
|
|
697
|
-
protoOf(SinkOutputChannel).
|
|
698
|
-
this.
|
|
698
|
+
protoOf(SinkOutputChannel).q29 = function () {
|
|
699
|
+
this.y4x_1.o8();
|
|
699
700
|
};
|
|
700
701
|
protoOf(SinkOutputChannel).h3 = function () {
|
|
701
|
-
this.
|
|
702
|
+
this.y4x_1.h3();
|
|
702
703
|
protoOf(AbstractOutputChannel).h3.call(this);
|
|
703
704
|
};
|
|
704
705
|
protoOf(SinkOutputChannel).close = function () {
|
|
@@ -706,28 +707,28 @@
|
|
|
706
707
|
};
|
|
707
708
|
function SourceInputChannel(source) {
|
|
708
709
|
AbstractInputChannel.call(this);
|
|
709
|
-
this.
|
|
710
|
-
this.
|
|
710
|
+
this.f4y_1 = source;
|
|
711
|
+
this.g4y_1 = ArrayDeque_init_$Create$();
|
|
711
712
|
}
|
|
712
|
-
protoOf(SourceInputChannel).
|
|
713
|
-
if (this.
|
|
714
|
-
if (this.
|
|
713
|
+
protoOf(SourceInputChannel).j29 = function () {
|
|
714
|
+
if (this.g4y_1.i()) {
|
|
715
|
+
if (this.f4y_1.i4t())
|
|
715
716
|
return null;
|
|
716
|
-
var codePoint = this.
|
|
717
|
+
var codePoint = this.f4y_1.p4u();
|
|
717
718
|
// Inline function 'kotlin.code' call
|
|
718
719
|
var this_0 = _Char___init__impl__6a9atx(65535);
|
|
719
720
|
if (codePoint > Char__toInt_impl_vasixd(this_0)) {
|
|
720
721
|
var offset = codePoint - 65536 | 0;
|
|
721
|
-
this.
|
|
722
|
-
this.
|
|
722
|
+
this.g4y_1.re(new Char(numberToChar((offset >> 10) + 55296 | 0)));
|
|
723
|
+
this.g4y_1.re(new Char(numberToChar((offset & 1023) + 56320 | 0)));
|
|
723
724
|
} else {
|
|
724
|
-
this.
|
|
725
|
+
this.g4y_1.re(new Char(numberToChar(codePoint)));
|
|
725
726
|
}
|
|
726
727
|
}
|
|
727
|
-
return toString_0(this.
|
|
728
|
+
return toString_0(this.g4y_1.se().r1_1);
|
|
728
729
|
};
|
|
729
730
|
protoOf(SourceInputChannel).h3 = function () {
|
|
730
|
-
this.
|
|
731
|
+
this.f4y_1.h3();
|
|
731
732
|
protoOf(AbstractInputChannel).h3.call(this);
|
|
732
733
|
};
|
|
733
734
|
protoOf(SourceInputChannel).close = function () {
|
|
@@ -753,7 +754,7 @@
|
|
|
753
754
|
captureStack(tmp, IOException_init_$Create$_0);
|
|
754
755
|
return tmp;
|
|
755
756
|
}
|
|
756
|
-
protoOf(IOException_0).
|
|
757
|
+
protoOf(IOException_0).h4y = function (context) {
|
|
757
758
|
return Companion_instance_2.forUncaughtKtException(context, this);
|
|
758
759
|
};
|
|
759
760
|
function IOException_0() {
|
|
@@ -779,8 +780,8 @@
|
|
|
779
780
|
captureStack(tmp, InvalidUrlException_init_$Create$_0);
|
|
780
781
|
return tmp;
|
|
781
782
|
}
|
|
782
|
-
protoOf(InvalidUrlException).
|
|
783
|
-
return Companion_instance_3.
|
|
783
|
+
protoOf(InvalidUrlException).i4y = function (context, signature, culprit, index) {
|
|
784
|
+
return Companion_instance_3.q2h(context, signature, Expected_URL_getInstance(), culprit, index);
|
|
784
785
|
};
|
|
785
786
|
function InvalidUrlException() {
|
|
786
787
|
captureStack(this, InvalidUrlException);
|
|
@@ -788,18 +789,18 @@
|
|
|
788
789
|
function AtEndOfStream0() {
|
|
789
790
|
AtEndOfStream0_instance = this;
|
|
790
791
|
Predicative.call(this, 'at_end_of_stream');
|
|
791
|
-
this.
|
|
792
|
+
this.k4y_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```';
|
|
792
793
|
}
|
|
793
|
-
protoOf(AtEndOfStream0).
|
|
794
|
-
return this.
|
|
794
|
+
protoOf(AtEndOfStream0).a23 = function () {
|
|
795
|
+
return this.k4y_1;
|
|
795
796
|
};
|
|
796
|
-
protoOf(AtEndOfStream0).
|
|
797
|
+
protoOf(AtEndOfStream0).l4y = function (_this__u8e3s4) {
|
|
797
798
|
// Inline function 'kotlin.let' call
|
|
798
|
-
var it = IOPrimitiveUtils_getInstance().
|
|
799
|
-
return it.
|
|
799
|
+
var it = IOPrimitiveUtils_getInstance().d4z(_this__u8e3s4);
|
|
800
|
+
return it.m28() || it.cy();
|
|
800
801
|
};
|
|
801
|
-
protoOf(AtEndOfStream0).
|
|
802
|
-
return this.
|
|
802
|
+
protoOf(AtEndOfStream0).m2t = function (_this__u8e3s4) {
|
|
803
|
+
return this.l4y(_this__u8e3s4);
|
|
803
804
|
};
|
|
804
805
|
var AtEndOfStream0_instance;
|
|
805
806
|
function AtEndOfStream0_getInstance() {
|
|
@@ -810,18 +811,18 @@
|
|
|
810
811
|
function AtEndOfStream1() {
|
|
811
812
|
AtEndOfStream1_instance = this;
|
|
812
813
|
Predicative_0.call(this, 'at_end_of_stream');
|
|
813
|
-
this.
|
|
814
|
+
this.f4z_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```';
|
|
814
815
|
}
|
|
815
|
-
protoOf(AtEndOfStream1).
|
|
816
|
-
return this.
|
|
816
|
+
protoOf(AtEndOfStream1).a23 = function () {
|
|
817
|
+
return this.f4z_1;
|
|
817
818
|
};
|
|
818
|
-
protoOf(AtEndOfStream1).
|
|
819
|
+
protoOf(AtEndOfStream1).g4z = function (_this__u8e3s4, first) {
|
|
819
820
|
// Inline function 'kotlin.let' call
|
|
820
|
-
var it = IOPrimitiveUtils_getInstance().
|
|
821
|
-
return it.
|
|
821
|
+
var it = IOPrimitiveUtils_getInstance().h4z(_this__u8e3s4, 0);
|
|
822
|
+
return it.m28() || it.cy();
|
|
822
823
|
};
|
|
823
|
-
protoOf(AtEndOfStream1).
|
|
824
|
-
return this.
|
|
824
|
+
protoOf(AtEndOfStream1).f2w = function (_this__u8e3s4, first) {
|
|
825
|
+
return this.g4z(_this__u8e3s4, first);
|
|
825
826
|
};
|
|
826
827
|
var AtEndOfStream1_instance;
|
|
827
828
|
function AtEndOfStream1_getInstance() {
|
|
@@ -832,16 +833,16 @@
|
|
|
832
833
|
function CharConversion() {
|
|
833
834
|
CharConversion_instance = this;
|
|
834
835
|
NonBacktrackable.call(this, 'char_conversion');
|
|
835
|
-
this.
|
|
836
|
+
this.j4z_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```';
|
|
836
837
|
}
|
|
837
|
-
protoOf(CharConversion).
|
|
838
|
-
return this.
|
|
838
|
+
protoOf(CharConversion).a23 = function () {
|
|
839
|
+
return this.j4z_1;
|
|
839
840
|
};
|
|
840
|
-
protoOf(CharConversion).
|
|
841
|
-
return Companion_getInstance_1().
|
|
841
|
+
protoOf(CharConversion).o33 = function (_this__u8e3s4, first, second) {
|
|
842
|
+
return Companion_getInstance_1().y2t(_this__u8e3s4);
|
|
842
843
|
};
|
|
843
|
-
protoOf(CharConversion).
|
|
844
|
-
return this.
|
|
844
|
+
protoOf(CharConversion).t2s = function (_this__u8e3s4, first, second) {
|
|
845
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
845
846
|
};
|
|
846
847
|
var CharConversion_instance;
|
|
847
848
|
function CharConversion_getInstance() {
|
|
@@ -851,28 +852,28 @@
|
|
|
851
852
|
}
|
|
852
853
|
function Close1$computeOne$lambda($this_computeOne, $channel) {
|
|
853
854
|
return function ($this$replySuccess) {
|
|
854
|
-
var tmp = $this_computeOne.context.
|
|
855
|
-
$this$replySuccess.
|
|
855
|
+
var tmp = $this_computeOne.context.p23();
|
|
856
|
+
$this$replySuccess.u2z(tmp.aliasesOf(isInterface($channel, InputChannel) ? $channel : THROW_CCE()));
|
|
856
857
|
return Unit_instance;
|
|
857
858
|
};
|
|
858
859
|
}
|
|
859
860
|
function Close1$computeOne$lambda_0($this_computeOne, $channel) {
|
|
860
861
|
return function ($this$replySuccess) {
|
|
861
|
-
var tmp = $this_computeOne.context.
|
|
862
|
-
$this$replySuccess.
|
|
862
|
+
var tmp = $this_computeOne.context.q23();
|
|
863
|
+
$this$replySuccess.x2z(tmp.aliasesOf(isInterface($channel, OutputChannel) ? $channel : THROW_CCE()));
|
|
863
864
|
return Unit_instance;
|
|
864
865
|
};
|
|
865
866
|
}
|
|
866
867
|
function Close1() {
|
|
867
868
|
Close1_instance = this;
|
|
868
869
|
NonBacktrackable_0.call(this, 'close');
|
|
869
|
-
this.
|
|
870
|
+
this.l4z_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```';
|
|
870
871
|
}
|
|
871
|
-
protoOf(Close1).
|
|
872
|
-
return this.
|
|
872
|
+
protoOf(Close1).a23 = function () {
|
|
873
|
+
return this.l4z_1;
|
|
873
874
|
};
|
|
874
|
-
protoOf(Close1).
|
|
875
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
875
|
+
protoOf(Close1).a33 = function (_this__u8e3s4, first) {
|
|
876
|
+
var channel = IOPrimitiveUtils_getInstance().m4z(_this__u8e3s4, 0);
|
|
876
877
|
try {
|
|
877
878
|
channel.close();
|
|
878
879
|
var tmp;
|
|
@@ -895,8 +896,8 @@
|
|
|
895
896
|
}
|
|
896
897
|
}
|
|
897
898
|
};
|
|
898
|
-
protoOf(Close1).
|
|
899
|
-
return this.
|
|
899
|
+
protoOf(Close1).i2w = function (_this__u8e3s4, first) {
|
|
900
|
+
return this.a33(_this__u8e3s4, first);
|
|
900
901
|
};
|
|
901
902
|
var Close1_instance;
|
|
902
903
|
function Close1_getInstance() {
|
|
@@ -907,16 +908,16 @@
|
|
|
907
908
|
function Close2() {
|
|
908
909
|
Close2_instance = this;
|
|
909
910
|
NonBacktrackable.call(this, 'close');
|
|
910
|
-
this.
|
|
911
|
+
this.o4z_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```';
|
|
911
912
|
}
|
|
912
|
-
protoOf(Close2).
|
|
913
|
-
return this.
|
|
913
|
+
protoOf(Close2).a23 = function () {
|
|
914
|
+
return this.o4z_1;
|
|
914
915
|
};
|
|
915
|
-
protoOf(Close2).
|
|
916
|
-
return Companion_getInstance_1().
|
|
916
|
+
protoOf(Close2).o33 = function (_this__u8e3s4, first, second) {
|
|
917
|
+
return Companion_getInstance_1().y2t(_this__u8e3s4);
|
|
917
918
|
};
|
|
918
|
-
protoOf(Close2).
|
|
919
|
-
return this.
|
|
919
|
+
protoOf(Close2).t2s = function (_this__u8e3s4, first, second) {
|
|
920
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
920
921
|
};
|
|
921
922
|
var Close2_instance;
|
|
922
923
|
function Close2_getInstance() {
|
|
@@ -927,35 +928,35 @@
|
|
|
927
928
|
function Consult() {
|
|
928
929
|
Consult_instance = this;
|
|
929
930
|
NonBacktrackable_0.call(this, 'consult');
|
|
930
|
-
this.
|
|
931
|
+
this.q4z_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```";
|
|
931
932
|
}
|
|
932
|
-
protoOf(Consult).
|
|
933
|
-
return this.
|
|
933
|
+
protoOf(Consult).a23 = function () {
|
|
934
|
+
return this.q4z_1;
|
|
934
935
|
};
|
|
935
|
-
protoOf(Consult).
|
|
936
|
-
Companion_getInstance_1().
|
|
937
|
-
Companion_getInstance_1().
|
|
936
|
+
protoOf(Consult).a33 = function (_this__u8e3s4, first) {
|
|
937
|
+
Companion_getInstance_1().w2t(_this__u8e3s4, 0);
|
|
938
|
+
Companion_getInstance_1().f2u(_this__u8e3s4, 0);
|
|
938
939
|
var urlString = (isInterface(first, Atom) ? first : THROW_CCE()).f1();
|
|
939
940
|
try {
|
|
940
941
|
var url = Companion_getInstance_9().of(urlString);
|
|
941
942
|
var text = url.readAsText();
|
|
942
|
-
return SetTheory_getInstance().
|
|
943
|
+
return SetTheory_getInstance().t4z(_this__u8e3s4, text);
|
|
943
944
|
} catch ($p) {
|
|
944
945
|
if ($p instanceof InvalidUrlException) {
|
|
945
946
|
var e = $p;
|
|
946
|
-
throw e.
|
|
947
|
+
throw e.i4y(_this__u8e3s4.context, _this__u8e3s4.signature, first, 0);
|
|
947
948
|
} else {
|
|
948
949
|
if ($p instanceof IOException_0) {
|
|
949
950
|
var e_0 = $p;
|
|
950
|
-
throw e_0.
|
|
951
|
+
throw e_0.h4y(_this__u8e3s4.context);
|
|
951
952
|
} else {
|
|
952
953
|
throw $p;
|
|
953
954
|
}
|
|
954
955
|
}
|
|
955
956
|
}
|
|
956
957
|
};
|
|
957
|
-
protoOf(Consult).
|
|
958
|
-
return this.
|
|
958
|
+
protoOf(Consult).i2w = function (_this__u8e3s4, first) {
|
|
959
|
+
return this.a33(_this__u8e3s4, first);
|
|
959
960
|
};
|
|
960
961
|
var Consult_instance;
|
|
961
962
|
function Consult_getInstance() {
|
|
@@ -966,16 +967,16 @@
|
|
|
966
967
|
function CurrentCharConversion() {
|
|
967
968
|
CurrentCharConversion_instance = this;
|
|
968
969
|
NonBacktrackable.call(this, 'current_char_conversion');
|
|
969
|
-
this.
|
|
970
|
+
this.v4z_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```';
|
|
970
971
|
}
|
|
971
|
-
protoOf(CurrentCharConversion).
|
|
972
|
-
return this.
|
|
972
|
+
protoOf(CurrentCharConversion).a23 = function () {
|
|
973
|
+
return this.v4z_1;
|
|
973
974
|
};
|
|
974
|
-
protoOf(CurrentCharConversion).
|
|
975
|
-
return Companion_getInstance_1().
|
|
975
|
+
protoOf(CurrentCharConversion).o33 = function (_this__u8e3s4, first, second) {
|
|
976
|
+
return Companion_getInstance_1().y2t(_this__u8e3s4);
|
|
976
977
|
};
|
|
977
|
-
protoOf(CurrentCharConversion).
|
|
978
|
-
return this.
|
|
978
|
+
protoOf(CurrentCharConversion).t2s = function (_this__u8e3s4, first, second) {
|
|
979
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
979
980
|
};
|
|
980
981
|
var CurrentCharConversion_instance;
|
|
981
982
|
function CurrentCharConversion_getInstance() {
|
|
@@ -986,21 +987,21 @@
|
|
|
986
987
|
function CurrentInput() {
|
|
987
988
|
CurrentInput_instance = this;
|
|
988
989
|
NonBacktrackable_0.call(this, 'current_input');
|
|
989
|
-
this.
|
|
990
|
+
this.x4z_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```';
|
|
990
991
|
}
|
|
991
|
-
protoOf(CurrentInput).
|
|
992
|
-
return this.
|
|
992
|
+
protoOf(CurrentInput).a23 = function () {
|
|
993
|
+
return this.x4z_1;
|
|
993
994
|
};
|
|
994
|
-
protoOf(CurrentInput).
|
|
995
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
995
|
+
protoOf(CurrentInput).a33 = function (_this__u8e3s4, first) {
|
|
996
|
+
var channel = IOPrimitiveUtils_getInstance().y4z(_this__u8e3s4, 0);
|
|
996
997
|
// Inline function 'kotlin.let' call
|
|
997
|
-
var it = _this__u8e3s4.context.
|
|
998
|
-
var tmp0_elvis_lhs = it.
|
|
999
|
-
var currentChannel = tmp0_elvis_lhs == null ? it.
|
|
1000
|
-
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
998
|
+
var it = _this__u8e3s4.context.p23();
|
|
999
|
+
var tmp0_elvis_lhs = it.ay();
|
|
1000
|
+
var currentChannel = tmp0_elvis_lhs == null ? it.z23() : tmp0_elvis_lhs;
|
|
1001
|
+
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().p2t(_this__u8e3s4, first, currentChannel.n28()), VOID, []) : equals(channel, currentChannel) ? _this__u8e3s4.replySuccess(VOID, VOID, []) : _this__u8e3s4.replyFail(VOID, []);
|
|
1001
1002
|
};
|
|
1002
|
-
protoOf(CurrentInput).
|
|
1003
|
-
return this.
|
|
1003
|
+
protoOf(CurrentInput).i2w = function (_this__u8e3s4, first) {
|
|
1004
|
+
return this.a33(_this__u8e3s4, first);
|
|
1004
1005
|
};
|
|
1005
1006
|
var CurrentInput_instance;
|
|
1006
1007
|
function CurrentInput_getInstance() {
|
|
@@ -1011,21 +1012,21 @@
|
|
|
1011
1012
|
function CurrentOutput() {
|
|
1012
1013
|
CurrentOutput_instance = this;
|
|
1013
1014
|
NonBacktrackable_0.call(this, 'current_output');
|
|
1014
|
-
this.
|
|
1015
|
+
this.a50_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```';
|
|
1015
1016
|
}
|
|
1016
|
-
protoOf(CurrentOutput).
|
|
1017
|
-
return this.
|
|
1017
|
+
protoOf(CurrentOutput).a23 = function () {
|
|
1018
|
+
return this.a50_1;
|
|
1018
1019
|
};
|
|
1019
|
-
protoOf(CurrentOutput).
|
|
1020
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
1020
|
+
protoOf(CurrentOutput).a33 = function (_this__u8e3s4, first) {
|
|
1021
|
+
var channel = IOPrimitiveUtils_getInstance().y4z(_this__u8e3s4, 0);
|
|
1021
1022
|
// Inline function 'kotlin.let' call
|
|
1022
|
-
var it = _this__u8e3s4.context.
|
|
1023
|
-
var tmp0_elvis_lhs = it.
|
|
1024
|
-
var currentChannel = tmp0_elvis_lhs == null ? it.
|
|
1025
|
-
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
1023
|
+
var it = _this__u8e3s4.context.q23();
|
|
1024
|
+
var tmp0_elvis_lhs = it.ay();
|
|
1025
|
+
var currentChannel = tmp0_elvis_lhs == null ? it.a24() : tmp0_elvis_lhs;
|
|
1026
|
+
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().p2t(_this__u8e3s4, first, currentChannel.n28()), VOID, []) : equals(channel, currentChannel) ? _this__u8e3s4.replySuccess(VOID, VOID, []) : _this__u8e3s4.replyFail(VOID, []);
|
|
1026
1027
|
};
|
|
1027
|
-
protoOf(CurrentOutput).
|
|
1028
|
-
return this.
|
|
1028
|
+
protoOf(CurrentOutput).i2w = function (_this__u8e3s4, first) {
|
|
1029
|
+
return this.a33(_this__u8e3s4, first);
|
|
1029
1030
|
};
|
|
1030
1031
|
var CurrentOutput_instance;
|
|
1031
1032
|
function CurrentOutput_getInstance() {
|
|
@@ -1036,13 +1037,13 @@
|
|
|
1036
1037
|
function FlushOutput() {
|
|
1037
1038
|
FlushOutput_instance = this;
|
|
1038
1039
|
NonBacktrackable_0.call(this, 'flush_output');
|
|
1039
|
-
this.
|
|
1040
|
+
this.c50_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```';
|
|
1040
1041
|
}
|
|
1041
|
-
protoOf(FlushOutput).
|
|
1042
|
-
return this.
|
|
1042
|
+
protoOf(FlushOutput).a23 = function () {
|
|
1043
|
+
return this.c50_1;
|
|
1043
1044
|
};
|
|
1044
|
-
protoOf(FlushOutput).
|
|
1045
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
1045
|
+
protoOf(FlushOutput).a33 = function (_this__u8e3s4, first) {
|
|
1046
|
+
var channel = IOPrimitiveUtils_getInstance().d50(_this__u8e3s4, 0);
|
|
1046
1047
|
var tmp;
|
|
1047
1048
|
try {
|
|
1048
1049
|
channel.flush();
|
|
@@ -1059,8 +1060,8 @@
|
|
|
1059
1060
|
}
|
|
1060
1061
|
return tmp;
|
|
1061
1062
|
};
|
|
1062
|
-
protoOf(FlushOutput).
|
|
1063
|
-
return this.
|
|
1063
|
+
protoOf(FlushOutput).i2w = function (_this__u8e3s4, first) {
|
|
1064
|
+
return this.a33(_this__u8e3s4, first);
|
|
1064
1065
|
};
|
|
1065
1066
|
var FlushOutput_instance;
|
|
1066
1067
|
function FlushOutput_getInstance() {
|
|
@@ -1071,16 +1072,16 @@
|
|
|
1071
1072
|
function GetByte1() {
|
|
1072
1073
|
GetByte1_instance = this;
|
|
1073
1074
|
NonBacktrackable_0.call(this, 'get_byte');
|
|
1074
|
-
this.
|
|
1075
|
+
this.f50_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```';
|
|
1075
1076
|
}
|
|
1076
|
-
protoOf(GetByte1).
|
|
1077
|
-
return this.
|
|
1077
|
+
protoOf(GetByte1).a23 = function () {
|
|
1078
|
+
return this.f50_1;
|
|
1078
1079
|
};
|
|
1079
|
-
protoOf(GetByte1).
|
|
1080
|
-
return Companion_getInstance_1().
|
|
1080
|
+
protoOf(GetByte1).a33 = function (_this__u8e3s4, first) {
|
|
1081
|
+
return Companion_getInstance_1().y2t(_this__u8e3s4);
|
|
1081
1082
|
};
|
|
1082
|
-
protoOf(GetByte1).
|
|
1083
|
-
return this.
|
|
1083
|
+
protoOf(GetByte1).i2w = function (_this__u8e3s4, first) {
|
|
1084
|
+
return this.a33(_this__u8e3s4, first);
|
|
1084
1085
|
};
|
|
1085
1086
|
var GetByte1_instance;
|
|
1086
1087
|
function GetByte1_getInstance() {
|
|
@@ -1091,16 +1092,16 @@
|
|
|
1091
1092
|
function GetByte2() {
|
|
1092
1093
|
GetByte2_instance = this;
|
|
1093
1094
|
NonBacktrackable.call(this, 'get_byte');
|
|
1094
|
-
this.
|
|
1095
|
+
this.h50_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```';
|
|
1095
1096
|
}
|
|
1096
|
-
protoOf(GetByte2).
|
|
1097
|
-
return this.
|
|
1097
|
+
protoOf(GetByte2).a23 = function () {
|
|
1098
|
+
return this.h50_1;
|
|
1098
1099
|
};
|
|
1099
|
-
protoOf(GetByte2).
|
|
1100
|
-
return Companion_getInstance_1().
|
|
1100
|
+
protoOf(GetByte2).o33 = function (_this__u8e3s4, first, second) {
|
|
1101
|
+
return Companion_getInstance_1().y2t(_this__u8e3s4);
|
|
1101
1102
|
};
|
|
1102
|
-
protoOf(GetByte2).
|
|
1103
|
-
return this.
|
|
1103
|
+
protoOf(GetByte2).t2s = function (_this__u8e3s4, first, second) {
|
|
1104
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
1104
1105
|
};
|
|
1105
1106
|
var GetByte2_instance;
|
|
1106
1107
|
function GetByte2_getInstance() {
|
|
@@ -1111,17 +1112,17 @@
|
|
|
1111
1112
|
function GetChar1() {
|
|
1112
1113
|
GetChar1_instance = this;
|
|
1113
1114
|
NonBacktrackable_0.call(this, 'get_char');
|
|
1114
|
-
this.
|
|
1115
|
+
this.j50_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```';
|
|
1115
1116
|
}
|
|
1116
|
-
protoOf(GetChar1).
|
|
1117
|
-
return this.
|
|
1117
|
+
protoOf(GetChar1).a23 = function () {
|
|
1118
|
+
return this.j50_1;
|
|
1118
1119
|
};
|
|
1119
|
-
protoOf(GetChar1).
|
|
1120
|
-
IOPrimitiveUtils_getInstance().
|
|
1121
|
-
return IOPrimitiveUtils_getInstance().
|
|
1120
|
+
protoOf(GetChar1).a33 = function (_this__u8e3s4, first) {
|
|
1121
|
+
IOPrimitiveUtils_getInstance().k50(_this__u8e3s4, 0);
|
|
1122
|
+
return IOPrimitiveUtils_getInstance().l50(_this__u8e3s4, IOPrimitiveUtils_getInstance().d4z(_this__u8e3s4), first);
|
|
1122
1123
|
};
|
|
1123
|
-
protoOf(GetChar1).
|
|
1124
|
-
return this.
|
|
1124
|
+
protoOf(GetChar1).i2w = function (_this__u8e3s4, first) {
|
|
1125
|
+
return this.a33(_this__u8e3s4, first);
|
|
1125
1126
|
};
|
|
1126
1127
|
var GetChar1_instance;
|
|
1127
1128
|
function GetChar1_getInstance() {
|
|
@@ -1132,18 +1133,18 @@
|
|
|
1132
1133
|
function GetChar2() {
|
|
1133
1134
|
GetChar2_instance = this;
|
|
1134
1135
|
NonBacktrackable.call(this, 'get_char');
|
|
1135
|
-
this.
|
|
1136
|
+
this.n50_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```';
|
|
1136
1137
|
}
|
|
1137
|
-
protoOf(GetChar2).
|
|
1138
|
-
return this.
|
|
1138
|
+
protoOf(GetChar2).a23 = function () {
|
|
1139
|
+
return this.n50_1;
|
|
1139
1140
|
};
|
|
1140
|
-
protoOf(GetChar2).
|
|
1141
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
1142
|
-
IOPrimitiveUtils_getInstance().
|
|
1143
|
-
return IOPrimitiveUtils_getInstance().
|
|
1141
|
+
protoOf(GetChar2).o33 = function (_this__u8e3s4, first, second) {
|
|
1142
|
+
var channel = IOPrimitiveUtils_getInstance().h4z(_this__u8e3s4, 0);
|
|
1143
|
+
IOPrimitiveUtils_getInstance().k50(_this__u8e3s4, 1);
|
|
1144
|
+
return IOPrimitiveUtils_getInstance().l50(_this__u8e3s4, channel, second);
|
|
1144
1145
|
};
|
|
1145
|
-
protoOf(GetChar2).
|
|
1146
|
-
return this.
|
|
1146
|
+
protoOf(GetChar2).t2s = function (_this__u8e3s4, first, second) {
|
|
1147
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
1147
1148
|
};
|
|
1148
1149
|
var GetChar2_instance;
|
|
1149
1150
|
function GetChar2_getInstance() {
|
|
@@ -1154,17 +1155,17 @@
|
|
|
1154
1155
|
function GetCode1() {
|
|
1155
1156
|
GetCode1_instance = this;
|
|
1156
1157
|
NonBacktrackable_0.call(this, 'get_code');
|
|
1157
|
-
this.
|
|
1158
|
+
this.p50_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); so is a character beyond the Basic Multilingual Plane in the stream, which has no single UTF-16 code (`representation_error(character_code)`). 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```';
|
|
1158
1159
|
}
|
|
1159
|
-
protoOf(GetCode1).
|
|
1160
|
-
return this.
|
|
1160
|
+
protoOf(GetCode1).a23 = function () {
|
|
1161
|
+
return this.p50_1;
|
|
1161
1162
|
};
|
|
1162
|
-
protoOf(GetCode1).
|
|
1163
|
-
IOPrimitiveUtils_getInstance().
|
|
1164
|
-
return IOPrimitiveUtils_getInstance().
|
|
1163
|
+
protoOf(GetCode1).a33 = function (_this__u8e3s4, first) {
|
|
1164
|
+
IOPrimitiveUtils_getInstance().q50(_this__u8e3s4, 0);
|
|
1165
|
+
return IOPrimitiveUtils_getInstance().r50(_this__u8e3s4, IOPrimitiveUtils_getInstance().d4z(_this__u8e3s4), first);
|
|
1165
1166
|
};
|
|
1166
|
-
protoOf(GetCode1).
|
|
1167
|
-
return this.
|
|
1167
|
+
protoOf(GetCode1).i2w = function (_this__u8e3s4, first) {
|
|
1168
|
+
return this.a33(_this__u8e3s4, first);
|
|
1168
1169
|
};
|
|
1169
1170
|
var GetCode1_instance;
|
|
1170
1171
|
function GetCode1_getInstance() {
|
|
@@ -1175,18 +1176,18 @@
|
|
|
1175
1176
|
function GetCode2() {
|
|
1176
1177
|
GetCode2_instance = this;
|
|
1177
1178
|
NonBacktrackable.call(this, 'get_code');
|
|
1178
|
-
this.
|
|
1179
|
+
this.t50_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); so is a character beyond the Basic Multilingual Plane in the stream, which has no single UTF-16 code (`representation_error(character_code)`). 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```';
|
|
1179
1180
|
}
|
|
1180
|
-
protoOf(GetCode2).
|
|
1181
|
-
return this.
|
|
1181
|
+
protoOf(GetCode2).a23 = function () {
|
|
1182
|
+
return this.t50_1;
|
|
1182
1183
|
};
|
|
1183
|
-
protoOf(GetCode2).
|
|
1184
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
1185
|
-
IOPrimitiveUtils_getInstance().
|
|
1186
|
-
return IOPrimitiveUtils_getInstance().
|
|
1184
|
+
protoOf(GetCode2).o33 = function (_this__u8e3s4, first, second) {
|
|
1185
|
+
var channel = IOPrimitiveUtils_getInstance().h4z(_this__u8e3s4, 0);
|
|
1186
|
+
IOPrimitiveUtils_getInstance().q50(_this__u8e3s4, 1);
|
|
1187
|
+
return IOPrimitiveUtils_getInstance().r50(_this__u8e3s4, channel, second);
|
|
1187
1188
|
};
|
|
1188
|
-
protoOf(GetCode2).
|
|
1189
|
-
return this.
|
|
1189
|
+
protoOf(GetCode2).t2s = function (_this__u8e3s4, first, second) {
|
|
1190
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
1190
1191
|
};
|
|
1191
1192
|
var GetCode2_instance;
|
|
1192
1193
|
function GetCode2_getInstance() {
|
|
@@ -1201,125 +1202,125 @@
|
|
|
1201
1202
|
return constructCallableReference(function (p0_0) {
|
|
1202
1203
|
var tmp0 = p0;
|
|
1203
1204
|
return alias(tmp0, p0_0);
|
|
1204
|
-
}, 1, 0,
|
|
1205
|
+
}, 1, 0, 59, 'alias', [p0]);
|
|
1205
1206
|
}
|
|
1206
1207
|
function IOPrimitiveUtils$propertiesOf$slambda$lambda_0(it) {
|
|
1207
1208
|
return it === '$current';
|
|
1208
1209
|
}
|
|
1209
1210
|
function _get_INPUT_STREAM_TERM_PATTERN__5fd8p6($this) {
|
|
1210
|
-
var tmp0 = $this.
|
|
1211
|
+
var tmp0 = $this.m4y_1;
|
|
1211
1212
|
var tmp = KProperty1;
|
|
1212
1213
|
// Inline function 'kotlin.getValue' call
|
|
1213
1214
|
getPropertyCallableRef('INPUT_STREAM_TERM_PATTERN', 1, tmp, IOPrimitiveUtils$_get_INPUT_STREAM_TERM_PATTERN_$ref_59oxnp(), null);
|
|
1214
1215
|
return tmp0.f1();
|
|
1215
1216
|
}
|
|
1216
1217
|
function _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf($this) {
|
|
1217
|
-
var tmp0 = $this.
|
|
1218
|
+
var tmp0 = $this.n4y_1;
|
|
1218
1219
|
var tmp = KProperty1;
|
|
1219
1220
|
// Inline function 'kotlin.getValue' call
|
|
1220
1221
|
getPropertyCallableRef('OUTPUT_STREAM_TERM_PATTERN', 1, tmp, IOPrimitiveUtils$_get_OUTPUT_STREAM_TERM_PATTERN_$ref_kcdkmo(), null);
|
|
1221
1222
|
return tmp0.f1();
|
|
1222
1223
|
}
|
|
1223
1224
|
function _get_PROPERTY_TYPE_PATTERN__5nq864($this) {
|
|
1224
|
-
var tmp0 = $this.
|
|
1225
|
+
var tmp0 = $this.o4y_1;
|
|
1225
1226
|
var tmp = KProperty1;
|
|
1226
1227
|
// Inline function 'kotlin.getValue' call
|
|
1227
1228
|
getPropertyCallableRef('PROPERTY_TYPE_PATTERN', 1, tmp, IOPrimitiveUtils$_get_PROPERTY_TYPE_PATTERN_$ref_qcyh3d(), null);
|
|
1228
1229
|
return tmp0.f1();
|
|
1229
1230
|
}
|
|
1230
1231
|
function _get_PROPERTY_REPOSITION_PATTERN__lznuii($this) {
|
|
1231
|
-
var tmp0 = $this.
|
|
1232
|
+
var tmp0 = $this.p4y_1;
|
|
1232
1233
|
var tmp = KProperty1;
|
|
1233
1234
|
// Inline function 'kotlin.getValue' call
|
|
1234
1235
|
getPropertyCallableRef('PROPERTY_REPOSITION_PATTERN', 1, tmp, IOPrimitiveUtils$_get_PROPERTY_REPOSITION_PATTERN_$ref_uil93p(), null);
|
|
1235
1236
|
return tmp0.f1();
|
|
1236
1237
|
}
|
|
1237
1238
|
function _get_PROPERTY_EOF_ACTION_PATTERN__8k2shv($this) {
|
|
1238
|
-
var tmp0 = $this.
|
|
1239
|
+
var tmp0 = $this.q4y_1;
|
|
1239
1240
|
var tmp = KProperty1;
|
|
1240
1241
|
// Inline function 'kotlin.getValue' call
|
|
1241
1242
|
getPropertyCallableRef('PROPERTY_EOF_ACTION_PATTERN', 1, tmp, IOPrimitiveUtils$_get_PROPERTY_EOF_ACTION_PATTERN_$ref_bt8ai0(), null);
|
|
1242
1243
|
return tmp0.f1();
|
|
1243
1244
|
}
|
|
1244
1245
|
function _get_PROPERTY_ALIAS_PATTERN__wipd2s($this) {
|
|
1245
|
-
var tmp0 = $this.
|
|
1246
|
+
var tmp0 = $this.r4y_1;
|
|
1246
1247
|
var tmp = KProperty1;
|
|
1247
1248
|
// Inline function 'kotlin.getValue' call
|
|
1248
1249
|
getPropertyCallableRef('PROPERTY_ALIAS_PATTERN', 1, tmp, IOPrimitiveUtils$_get_PROPERTY_ALIAS_PATTERN_$ref_qs5lfb(), null);
|
|
1249
1250
|
return tmp0.f1();
|
|
1250
1251
|
}
|
|
1251
1252
|
function _get_PROPERTY_INPUT__z2zr91($this) {
|
|
1252
|
-
var tmp0 = $this.
|
|
1253
|
+
var tmp0 = $this.s4y_1;
|
|
1253
1254
|
var tmp = KProperty1;
|
|
1254
1255
|
// Inline function 'kotlin.getValue' call
|
|
1255
1256
|
getPropertyCallableRef('PROPERTY_INPUT', 1, tmp, IOPrimitiveUtils$_get_PROPERTY_INPUT_$ref_hltzoy(), null);
|
|
1256
1257
|
return tmp0.f1();
|
|
1257
1258
|
}
|
|
1258
1259
|
function _get_PROPERTY_OUTPUT__1pem9m($this) {
|
|
1259
|
-
var tmp0 = $this.
|
|
1260
|
+
var tmp0 = $this.t4y_1;
|
|
1260
1261
|
var tmp = KProperty1;
|
|
1261
1262
|
// Inline function 'kotlin.getValue' call
|
|
1262
1263
|
getPropertyCallableRef('PROPERTY_OUTPUT', 1, tmp, IOPrimitiveUtils$_get_PROPERTY_OUTPUT_$ref_9ccgyp(), null);
|
|
1263
1264
|
return tmp0.f1();
|
|
1264
1265
|
}
|
|
1265
1266
|
function _get_PROPERTY_TYPE_TEXT__9rpcwt($this) {
|
|
1266
|
-
var tmp0 = $this.
|
|
1267
|
+
var tmp0 = $this.u4y_1;
|
|
1267
1268
|
var tmp = KProperty1;
|
|
1268
1269
|
// Inline function 'kotlin.getValue' call
|
|
1269
1270
|
getPropertyCallableRef('PROPERTY_TYPE_TEXT', 1, tmp, IOPrimitiveUtils$_get_PROPERTY_TYPE_TEXT_$ref_47hbty(), null);
|
|
1270
1271
|
return tmp0.f1();
|
|
1271
1272
|
}
|
|
1272
1273
|
function _get_PROPERTY_REPOSITION_FALSE__i73t3b($this) {
|
|
1273
|
-
var tmp0 = $this.
|
|
1274
|
+
var tmp0 = $this.v4y_1;
|
|
1274
1275
|
var tmp = KProperty1;
|
|
1275
1276
|
// Inline function 'kotlin.getValue' call
|
|
1276
1277
|
getPropertyCallableRef('PROPERTY_REPOSITION_FALSE', 1, tmp, IOPrimitiveUtils$_get_PROPERTY_REPOSITION_FALSE_$ref_jx0m6(), null);
|
|
1277
1278
|
return tmp0.f1();
|
|
1278
1279
|
}
|
|
1279
1280
|
function _get_PROPERTY_EOF_ACTION_EOF_CODE__he3pvl($this) {
|
|
1280
|
-
var tmp0 = $this.
|
|
1281
|
+
var tmp0 = $this.w4y_1;
|
|
1281
1282
|
var tmp = KProperty1;
|
|
1282
1283
|
// Inline function 'kotlin.getValue' call
|
|
1283
1284
|
getPropertyCallableRef('PROPERTY_EOF_ACTION_EOF_CODE', 1, tmp, IOPrimitiveUtils$_get_PROPERTY_EOF_ACTION_EOF_CODE_$ref_1cwy66(), null);
|
|
1284
1285
|
return tmp0.f1();
|
|
1285
1286
|
}
|
|
1286
1287
|
function _get_OPTION_QUOTED_PATTERN__n2ri42($this) {
|
|
1287
|
-
var tmp0 = $this.
|
|
1288
|
+
var tmp0 = $this.x4y_1;
|
|
1288
1289
|
var tmp = KProperty1;
|
|
1289
1290
|
// Inline function 'kotlin.getValue' call
|
|
1290
1291
|
getPropertyCallableRef('OPTION_QUOTED_PATTERN', 1, tmp, IOPrimitiveUtils$_get_OPTION_QUOTED_PATTERN_$ref_nxjfbr(), null);
|
|
1291
1292
|
return tmp0.f1();
|
|
1292
1293
|
}
|
|
1293
1294
|
function _get_OPTION_NUMBER_VARS_PATTERN__p98ste($this) {
|
|
1294
|
-
var tmp0 = $this.
|
|
1295
|
+
var tmp0 = $this.y4y_1;
|
|
1295
1296
|
var tmp = KProperty1;
|
|
1296
1297
|
// Inline function 'kotlin.getValue' call
|
|
1297
1298
|
getPropertyCallableRef('OPTION_NUMBER_VARS_PATTERN', 1, tmp, IOPrimitiveUtils$_get_OPTION_NUMBER_VARS_PATTERN_$ref_pdk9ph(), null);
|
|
1298
1299
|
return tmp0.f1();
|
|
1299
1300
|
}
|
|
1300
1301
|
function _get_OPTION_IGNORE_OPS_PATTERN__cpse4v($this) {
|
|
1301
|
-
var tmp0 = $this.
|
|
1302
|
+
var tmp0 = $this.z4y_1;
|
|
1302
1303
|
var tmp = KProperty1;
|
|
1303
1304
|
// Inline function 'kotlin.getValue' call
|
|
1304
1305
|
getPropertyCallableRef('OPTION_IGNORE_OPS_PATTERN', 1, tmp, IOPrimitiveUtils$_get_OPTION_IGNORE_OPS_PATTERN_$ref_vvsa9g(), null);
|
|
1305
1306
|
return tmp0.f1();
|
|
1306
1307
|
}
|
|
1307
1308
|
function _get_INFO_VARIABLES_PATTERN__bhp1h0($this) {
|
|
1308
|
-
var tmp0 = $this.
|
|
1309
|
+
var tmp0 = $this.a4z_1;
|
|
1309
1310
|
var tmp = KProperty1;
|
|
1310
1311
|
// Inline function 'kotlin.getValue' call
|
|
1311
1312
|
getPropertyCallableRef('INFO_VARIABLES_PATTERN', 1, tmp, IOPrimitiveUtils$_get_INFO_VARIABLES_PATTERN_$ref_ih2rd5(), null);
|
|
1312
1313
|
return tmp0.f1();
|
|
1313
1314
|
}
|
|
1314
1315
|
function _get_INFO_VARIABLE_NAMES_PATTERN__j3oaom($this) {
|
|
1315
|
-
var tmp0 = $this.
|
|
1316
|
+
var tmp0 = $this.b4z_1;
|
|
1316
1317
|
var tmp = KProperty1;
|
|
1317
1318
|
// Inline function 'kotlin.getValue' call
|
|
1318
1319
|
getPropertyCallableRef('INFO_VARIABLE_NAMES_PATTERN', 1, tmp, IOPrimitiveUtils$_get_INFO_VARIABLE_NAMES_PATTERN_$ref_lzmk91(), null);
|
|
1319
1320
|
return tmp0.f1();
|
|
1320
1321
|
}
|
|
1321
1322
|
function _get_INFO_SINGLETONS_PATTERN__y21s87($this) {
|
|
1322
|
-
var tmp0 = $this.
|
|
1323
|
+
var tmp0 = $this.c4z_1;
|
|
1323
1324
|
var tmp = KProperty1;
|
|
1324
1325
|
// Inline function 'kotlin.getValue' call
|
|
1325
1326
|
getPropertyCallableRef('INFO_SINGLETONS_PATTERN', 1, tmp, IOPrimitiveUtils$_get_INFO_SINGLETONS_PATTERN_$ref_8msi4i(), null);
|
|
@@ -1418,8 +1419,8 @@
|
|
|
1418
1419
|
var _iterator__ex2g4s = vNames.n();
|
|
1419
1420
|
while (_iterator__ex2g4s.q()) {
|
|
1420
1421
|
var item = _iterator__ex2g4s.r();
|
|
1421
|
-
var a = item.
|
|
1422
|
-
var v = item.
|
|
1422
|
+
var a = item.cf();
|
|
1423
|
+
var v = item.df();
|
|
1423
1424
|
var tmp$ret$2 = Companion_getInstance_2().of('=', [a, v]);
|
|
1424
1425
|
destination.l(tmp$ret$2);
|
|
1425
1426
|
}
|
|
@@ -1501,7 +1502,7 @@
|
|
|
1501
1502
|
}
|
|
1502
1503
|
function _get_singletons__bihqrn($this, $receiver) {
|
|
1503
1504
|
// Inline function 'kotlin.sequences.groupBy' call
|
|
1504
|
-
var tmp0 = $receiver.
|
|
1505
|
+
var tmp0 = $receiver.z13();
|
|
1505
1506
|
// Inline function 'kotlin.sequences.groupByTo' call
|
|
1506
1507
|
var destination = LinkedHashMap_init_$Create$();
|
|
1507
1508
|
var _iterator__ex2g4s = tmp0.n();
|
|
@@ -1513,7 +1514,7 @@
|
|
|
1513
1514
|
var tmp;
|
|
1514
1515
|
if (value == null) {
|
|
1515
1516
|
var answer = ArrayList_init_$Create$_0();
|
|
1516
|
-
destination.
|
|
1517
|
+
destination.q4(key, answer);
|
|
1517
1518
|
tmp = answer;
|
|
1518
1519
|
} else {
|
|
1519
1520
|
tmp = value;
|
|
@@ -1541,7 +1542,7 @@
|
|
|
1541
1542
|
var tmp;
|
|
1542
1543
|
if (value == null) {
|
|
1543
1544
|
var answer = ArrayList_init_$Create$_0();
|
|
1544
|
-
destination.
|
|
1545
|
+
destination.q4(key, answer);
|
|
1545
1546
|
tmp = answer;
|
|
1546
1547
|
} else {
|
|
1547
1548
|
tmp = value;
|
|
@@ -1574,14 +1575,14 @@
|
|
|
1574
1575
|
}
|
|
1575
1576
|
function replyOpeningStream($this, $receiver, channel, third, alias) {
|
|
1576
1577
|
alias = alias === VOID ? null : alias;
|
|
1577
|
-
var streamTerm = channel.
|
|
1578
|
-
var tmp = Companion_getInstance_1().
|
|
1578
|
+
var streamTerm = channel.n28();
|
|
1579
|
+
var tmp = Companion_getInstance_1().p2t($receiver, third, streamTerm);
|
|
1579
1580
|
return $receiver.replyWithBuildingSideEffects(tmp, VOID, IOPrimitiveUtils$replyOpeningStream$lambda(alias, channel));
|
|
1580
1581
|
}
|
|
1581
1582
|
function replyOpeningStream_0($this, $receiver, channel, third, alias) {
|
|
1582
1583
|
alias = alias === VOID ? null : alias;
|
|
1583
|
-
var streamTerm = channel.
|
|
1584
|
-
var tmp = Companion_getInstance_1().
|
|
1584
|
+
var streamTerm = channel.n28();
|
|
1585
|
+
var tmp = Companion_getInstance_1().p2t($receiver, third, streamTerm);
|
|
1585
1586
|
return $receiver.replyWithBuildingSideEffects(tmp, VOID, IOPrimitiveUtils$replyOpeningStream$lambda_0(alias, channel));
|
|
1586
1587
|
}
|
|
1587
1588
|
function IOPrimitiveUtils$INPUT_STREAM_TERM_PATTERN$delegate$lambda() {
|
|
@@ -1590,7 +1591,7 @@
|
|
|
1590
1591
|
function IOPrimitiveUtils$_get_INPUT_STREAM_TERM_PATTERN_$ref_59oxnp() {
|
|
1591
1592
|
return constructCallableReference(function (p0) {
|
|
1592
1593
|
return _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(p0);
|
|
1593
|
-
}, 1, 0,
|
|
1594
|
+
}, 1, 0, 60);
|
|
1594
1595
|
}
|
|
1595
1596
|
function IOPrimitiveUtils$OUTPUT_STREAM_TERM_PATTERN$delegate$lambda() {
|
|
1596
1597
|
return Companion_instance_6.streamTerm();
|
|
@@ -1598,7 +1599,7 @@
|
|
|
1598
1599
|
function IOPrimitiveUtils$_get_OUTPUT_STREAM_TERM_PATTERN_$ref_kcdkmo() {
|
|
1599
1600
|
return constructCallableReference(function (p0) {
|
|
1600
1601
|
return _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(p0);
|
|
1601
|
-
}, 1, 0,
|
|
1602
|
+
}, 1, 0, 61);
|
|
1602
1603
|
}
|
|
1603
1604
|
function IOPrimitiveUtils$PROPERTY_TYPE_PATTERN$delegate$lambda() {
|
|
1604
1605
|
return Companion_getInstance_2().of('type', [Companion_getInstance_3().anonymous()]);
|
|
@@ -1606,7 +1607,7 @@
|
|
|
1606
1607
|
function IOPrimitiveUtils$_get_PROPERTY_TYPE_PATTERN_$ref_qcyh3d() {
|
|
1607
1608
|
return constructCallableReference(function (p0) {
|
|
1608
1609
|
return _get_PROPERTY_TYPE_PATTERN__5nq864(p0);
|
|
1609
|
-
}, 1, 0,
|
|
1610
|
+
}, 1, 0, 62);
|
|
1610
1611
|
}
|
|
1611
1612
|
function IOPrimitiveUtils$PROPERTY_REPOSITION_PATTERN$delegate$lambda() {
|
|
1612
1613
|
return Companion_getInstance_2().of('reposition', [Companion_getInstance_3().anonymous()]);
|
|
@@ -1614,7 +1615,7 @@
|
|
|
1614
1615
|
function IOPrimitiveUtils$_get_PROPERTY_REPOSITION_PATTERN_$ref_uil93p() {
|
|
1615
1616
|
return constructCallableReference(function (p0) {
|
|
1616
1617
|
return _get_PROPERTY_REPOSITION_PATTERN__lznuii(p0);
|
|
1617
|
-
}, 1, 0,
|
|
1618
|
+
}, 1, 0, 63);
|
|
1618
1619
|
}
|
|
1619
1620
|
function IOPrimitiveUtils$PROPERTY_EOF_ACTION_PATTERN$delegate$lambda() {
|
|
1620
1621
|
return Companion_getInstance_2().of('eof_action', [Companion_getInstance_3().anonymous()]);
|
|
@@ -1622,7 +1623,7 @@
|
|
|
1622
1623
|
function IOPrimitiveUtils$_get_PROPERTY_EOF_ACTION_PATTERN_$ref_bt8ai0() {
|
|
1623
1624
|
return constructCallableReference(function (p0) {
|
|
1624
1625
|
return _get_PROPERTY_EOF_ACTION_PATTERN__8k2shv(p0);
|
|
1625
|
-
}, 1, 0,
|
|
1626
|
+
}, 1, 0, 64);
|
|
1626
1627
|
}
|
|
1627
1628
|
function IOPrimitiveUtils$PROPERTY_ALIAS_PATTERN$delegate$lambda() {
|
|
1628
1629
|
return alias(IOPrimitiveUtils_getInstance());
|
|
@@ -1630,7 +1631,7 @@
|
|
|
1630
1631
|
function IOPrimitiveUtils$_get_PROPERTY_ALIAS_PATTERN_$ref_qs5lfb() {
|
|
1631
1632
|
return constructCallableReference(function (p0) {
|
|
1632
1633
|
return _get_PROPERTY_ALIAS_PATTERN__wipd2s(p0);
|
|
1633
|
-
}, 1, 0,
|
|
1634
|
+
}, 1, 0, 65);
|
|
1634
1635
|
}
|
|
1635
1636
|
function IOPrimitiveUtils$PROPERTY_INPUT$delegate$lambda() {
|
|
1636
1637
|
return Companion_getInstance_0().of('input');
|
|
@@ -1638,7 +1639,7 @@
|
|
|
1638
1639
|
function IOPrimitiveUtils$_get_PROPERTY_INPUT_$ref_hltzoy() {
|
|
1639
1640
|
return constructCallableReference(function (p0) {
|
|
1640
1641
|
return _get_PROPERTY_INPUT__z2zr91(p0);
|
|
1641
|
-
}, 1, 0,
|
|
1642
|
+
}, 1, 0, 66);
|
|
1642
1643
|
}
|
|
1643
1644
|
function IOPrimitiveUtils$PROPERTY_OUTPUT$delegate$lambda() {
|
|
1644
1645
|
return Companion_getInstance_0().of('output');
|
|
@@ -1646,7 +1647,7 @@
|
|
|
1646
1647
|
function IOPrimitiveUtils$_get_PROPERTY_OUTPUT_$ref_9ccgyp() {
|
|
1647
1648
|
return constructCallableReference(function (p0) {
|
|
1648
1649
|
return _get_PROPERTY_OUTPUT__1pem9m(p0);
|
|
1649
|
-
}, 1, 0,
|
|
1650
|
+
}, 1, 0, 67);
|
|
1650
1651
|
}
|
|
1651
1652
|
function IOPrimitiveUtils$PROPERTY_TYPE_TEXT$delegate$lambda() {
|
|
1652
1653
|
return Companion_getInstance_2().of('type', [Companion_getInstance_0().of('text')]);
|
|
@@ -1654,15 +1655,15 @@
|
|
|
1654
1655
|
function IOPrimitiveUtils$_get_PROPERTY_TYPE_TEXT_$ref_47hbty() {
|
|
1655
1656
|
return constructCallableReference(function (p0) {
|
|
1656
1657
|
return _get_PROPERTY_TYPE_TEXT__9rpcwt(p0);
|
|
1657
|
-
}, 1, 0,
|
|
1658
|
+
}, 1, 0, 68);
|
|
1658
1659
|
}
|
|
1659
1660
|
function IOPrimitiveUtils$PROPERTY_REPOSITION_FALSE$delegate$lambda() {
|
|
1660
|
-
return Companion_getInstance_2().of('reposition', [Companion_getInstance_4().
|
|
1661
|
+
return Companion_getInstance_2().of('reposition', [Companion_getInstance_4().q13_1]);
|
|
1661
1662
|
}
|
|
1662
1663
|
function IOPrimitiveUtils$_get_PROPERTY_REPOSITION_FALSE_$ref_jx0m6() {
|
|
1663
1664
|
return constructCallableReference(function (p0) {
|
|
1664
1665
|
return _get_PROPERTY_REPOSITION_FALSE__i73t3b(p0);
|
|
1665
|
-
}, 1, 0,
|
|
1666
|
+
}, 1, 0, 69);
|
|
1666
1667
|
}
|
|
1667
1668
|
function IOPrimitiveUtils$PROPERTY_EOF_ACTION_EOF_CODE$delegate$lambda() {
|
|
1668
1669
|
return Companion_getInstance_2().of('eof_action', [Companion_getInstance_0().of('eof_code')]);
|
|
@@ -1670,7 +1671,7 @@
|
|
|
1670
1671
|
function IOPrimitiveUtils$_get_PROPERTY_EOF_ACTION_EOF_CODE_$ref_1cwy66() {
|
|
1671
1672
|
return constructCallableReference(function (p0) {
|
|
1672
1673
|
return _get_PROPERTY_EOF_ACTION_EOF_CODE__he3pvl(p0);
|
|
1673
|
-
}, 1, 0,
|
|
1674
|
+
}, 1, 0, 70);
|
|
1674
1675
|
}
|
|
1675
1676
|
function IOPrimitiveUtils$OPTION_QUOTED_PATTERN$delegate$lambda() {
|
|
1676
1677
|
return quoted(IOPrimitiveUtils_getInstance());
|
|
@@ -1678,7 +1679,7 @@
|
|
|
1678
1679
|
function IOPrimitiveUtils$_get_OPTION_QUOTED_PATTERN_$ref_nxjfbr() {
|
|
1679
1680
|
return constructCallableReference(function (p0) {
|
|
1680
1681
|
return _get_OPTION_QUOTED_PATTERN__n2ri42(p0);
|
|
1681
|
-
}, 1, 0,
|
|
1682
|
+
}, 1, 0, 71);
|
|
1682
1683
|
}
|
|
1683
1684
|
function IOPrimitiveUtils$OPTION_NUMBER_VARS_PATTERN$delegate$lambda() {
|
|
1684
1685
|
return numberVars(IOPrimitiveUtils_getInstance());
|
|
@@ -1686,7 +1687,7 @@
|
|
|
1686
1687
|
function IOPrimitiveUtils$_get_OPTION_NUMBER_VARS_PATTERN_$ref_pdk9ph() {
|
|
1687
1688
|
return constructCallableReference(function (p0) {
|
|
1688
1689
|
return _get_OPTION_NUMBER_VARS_PATTERN__p98ste(p0);
|
|
1689
|
-
}, 1, 0,
|
|
1690
|
+
}, 1, 0, 72);
|
|
1690
1691
|
}
|
|
1691
1692
|
function IOPrimitiveUtils$OPTION_IGNORE_OPS_PATTERN$delegate$lambda() {
|
|
1692
1693
|
return ignoreOps(IOPrimitiveUtils_getInstance());
|
|
@@ -1694,7 +1695,7 @@
|
|
|
1694
1695
|
function IOPrimitiveUtils$_get_OPTION_IGNORE_OPS_PATTERN_$ref_vvsa9g() {
|
|
1695
1696
|
return constructCallableReference(function (p0) {
|
|
1696
1697
|
return _get_OPTION_IGNORE_OPS_PATTERN__cpse4v(p0);
|
|
1697
|
-
}, 1, 0,
|
|
1698
|
+
}, 1, 0, 73);
|
|
1698
1699
|
}
|
|
1699
1700
|
function IOPrimitiveUtils$INFO_VARIABLES_PATTERN$delegate$lambda() {
|
|
1700
1701
|
return variables(IOPrimitiveUtils_getInstance());
|
|
@@ -1702,7 +1703,7 @@
|
|
|
1702
1703
|
function IOPrimitiveUtils$_get_INFO_VARIABLES_PATTERN_$ref_ih2rd5() {
|
|
1703
1704
|
return constructCallableReference(function (p0) {
|
|
1704
1705
|
return _get_INFO_VARIABLES_PATTERN__bhp1h0(p0);
|
|
1705
|
-
}, 1, 0,
|
|
1706
|
+
}, 1, 0, 74);
|
|
1706
1707
|
}
|
|
1707
1708
|
function IOPrimitiveUtils$INFO_VARIABLE_NAMES_PATTERN$delegate$lambda() {
|
|
1708
1709
|
return variableNames(IOPrimitiveUtils_getInstance());
|
|
@@ -1710,7 +1711,7 @@
|
|
|
1710
1711
|
function IOPrimitiveUtils$_get_INFO_VARIABLE_NAMES_PATTERN_$ref_lzmk91() {
|
|
1711
1712
|
return constructCallableReference(function (p0) {
|
|
1712
1713
|
return _get_INFO_VARIABLE_NAMES_PATTERN__j3oaom(p0);
|
|
1713
|
-
}, 1, 0,
|
|
1714
|
+
}, 1, 0, 75);
|
|
1714
1715
|
}
|
|
1715
1716
|
function IOPrimitiveUtils$INFO_SINGLETONS_PATTERN$delegate$lambda() {
|
|
1716
1717
|
return singletons(IOPrimitiveUtils_getInstance());
|
|
@@ -1718,106 +1719,106 @@
|
|
|
1718
1719
|
function IOPrimitiveUtils$_get_INFO_SINGLETONS_PATTERN_$ref_8msi4i() {
|
|
1719
1720
|
return constructCallableReference(function (p0) {
|
|
1720
1721
|
return _get_INFO_SINGLETONS_PATTERN__y21s87(p0);
|
|
1721
|
-
}, 1, 0,
|
|
1722
|
+
}, 1, 0, 76);
|
|
1722
1723
|
}
|
|
1723
1724
|
function IOPrimitiveUtils$quoted$ref(p0) {
|
|
1724
1725
|
return constructCallableReference(function (p0_0) {
|
|
1725
1726
|
var tmp0 = p0;
|
|
1726
1727
|
return quoted(tmp0, p0_0);
|
|
1727
|
-
}, 1, 0,
|
|
1728
|
+
}, 1, 0, 77, 'quoted', [p0]);
|
|
1728
1729
|
}
|
|
1729
1730
|
function IOPrimitiveUtils$ignoreOps$ref(p0) {
|
|
1730
1731
|
return constructCallableReference(function (p0_0) {
|
|
1731
1732
|
var tmp0 = p0;
|
|
1732
1733
|
return ignoreOps(tmp0, p0_0);
|
|
1733
|
-
}, 1, 0,
|
|
1734
|
+
}, 1, 0, 78, 'ignoreOps', [p0]);
|
|
1734
1735
|
}
|
|
1735
1736
|
function IOPrimitiveUtils$numberVars$ref(p0) {
|
|
1736
1737
|
return constructCallableReference(function (p0_0) {
|
|
1737
1738
|
var tmp0 = p0;
|
|
1738
1739
|
return numberVars(tmp0, p0_0);
|
|
1739
|
-
}, 1, 0,
|
|
1740
|
+
}, 1, 0, 79, 'numberVars', [p0]);
|
|
1740
1741
|
}
|
|
1741
1742
|
function IOPrimitiveUtils$_get_validOptionsPattern_$lambda_r088xw(it) {
|
|
1742
1743
|
return map(sequenceOf([true, false]), it);
|
|
1743
1744
|
}
|
|
1744
1745
|
function IOPrimitiveUtils$propertiesOf$slambda($channel, $this_propertiesOf, resultContinuation) {
|
|
1745
|
-
this.
|
|
1746
|
-
this.
|
|
1746
|
+
this.c51_1 = $channel;
|
|
1747
|
+
this.d51_1 = $this_propertiesOf;
|
|
1747
1748
|
CoroutineImpl.call(this, resultContinuation);
|
|
1748
1749
|
}
|
|
1749
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1750
|
-
var tmp = this.
|
|
1751
|
-
tmp.
|
|
1752
|
-
tmp.
|
|
1753
|
-
return tmp.
|
|
1750
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).f51 = function ($this$sequence, $completion) {
|
|
1751
|
+
var tmp = this.g51($this$sequence, $completion);
|
|
1752
|
+
tmp.t8_1 = Unit_instance;
|
|
1753
|
+
tmp.u8_1 = null;
|
|
1754
|
+
return tmp.z8();
|
|
1754
1755
|
};
|
|
1755
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1756
|
-
return this.
|
|
1756
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).q9 = function (p1, $completion) {
|
|
1757
|
+
return this.f51(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
1757
1758
|
};
|
|
1758
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1759
|
-
var suspendResult = this.
|
|
1759
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).z8 = function () {
|
|
1760
|
+
var suspendResult = this.t8_1;
|
|
1760
1761
|
$sm: do
|
|
1761
1762
|
try {
|
|
1762
|
-
var tmp = this.
|
|
1763
|
+
var tmp = this.r8_1;
|
|
1763
1764
|
switch (tmp) {
|
|
1764
1765
|
case 0:
|
|
1765
|
-
this.
|
|
1766
|
-
var tmp0_subject = this.
|
|
1766
|
+
this.s8_1 = 7;
|
|
1767
|
+
var tmp0_subject = this.c51_1;
|
|
1767
1768
|
if (isInterface(tmp0_subject, InputChannel)) {
|
|
1768
|
-
this.
|
|
1769
|
-
suspendResult = this.
|
|
1769
|
+
this.r8_1 = 3;
|
|
1770
|
+
suspendResult = this.e51_1.wf(_get_PROPERTY_INPUT__z2zr91(IOPrimitiveUtils_getInstance()), this);
|
|
1770
1771
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1771
1772
|
return suspendResult;
|
|
1772
1773
|
}
|
|
1773
1774
|
continue $sm;
|
|
1774
1775
|
} else {
|
|
1775
1776
|
if (isInterface(tmp0_subject, OutputChannel)) {
|
|
1776
|
-
this.
|
|
1777
|
-
suspendResult = this.
|
|
1777
|
+
this.r8_1 = 1;
|
|
1778
|
+
suspendResult = this.e51_1.wf(_get_PROPERTY_OUTPUT__1pem9m(IOPrimitiveUtils_getInstance()), this);
|
|
1778
1779
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1779
1780
|
return suspendResult;
|
|
1780
1781
|
}
|
|
1781
1782
|
continue $sm;
|
|
1782
1783
|
} else {
|
|
1783
|
-
this.
|
|
1784
|
+
this.r8_1 = 5;
|
|
1784
1785
|
continue $sm;
|
|
1785
1786
|
}
|
|
1786
1787
|
}
|
|
1787
1788
|
|
|
1788
1789
|
case 1:
|
|
1789
|
-
this.
|
|
1790
|
-
var tmp_0 = this.
|
|
1791
|
-
var tmp_1 = this.
|
|
1790
|
+
this.r8_1 = 2;
|
|
1791
|
+
var tmp_0 = this.d51_1.context.q23();
|
|
1792
|
+
var tmp_1 = this.c51_1;
|
|
1792
1793
|
var tmp_2 = tmp_0.aliasesOf(isInterface(tmp_1, OutputChannel) ? tmp_1 : THROW_CCE());
|
|
1793
1794
|
var tmp_3 = filterNot(tmp_2, IOPrimitiveUtils$propertiesOf$slambda$lambda_0);
|
|
1794
|
-
suspendResult = this.
|
|
1795
|
+
suspendResult = this.e51_1.zf(map(tmp_3, IOPrimitiveUtils$alias$ref(IOPrimitiveUtils_getInstance())), this);
|
|
1795
1796
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1796
1797
|
return suspendResult;
|
|
1797
1798
|
}
|
|
1798
1799
|
|
|
1799
1800
|
continue $sm;
|
|
1800
1801
|
case 2:
|
|
1801
|
-
this.
|
|
1802
|
+
this.r8_1 = 5;
|
|
1802
1803
|
continue $sm;
|
|
1803
1804
|
case 3:
|
|
1804
|
-
this.
|
|
1805
|
-
var tmp_4 = this.
|
|
1806
|
-
var tmp_5 = this.
|
|
1805
|
+
this.r8_1 = 4;
|
|
1806
|
+
var tmp_4 = this.d51_1.context.p23();
|
|
1807
|
+
var tmp_5 = this.c51_1;
|
|
1807
1808
|
var tmp_6 = tmp_4.aliasesOf(isInterface(tmp_5, InputChannel) ? tmp_5 : THROW_CCE());
|
|
1808
1809
|
var tmp_7 = filterNot(tmp_6, IOPrimitiveUtils$propertiesOf$slambda$lambda);
|
|
1809
|
-
suspendResult = this.
|
|
1810
|
+
suspendResult = this.e51_1.zf(map(tmp_7, IOPrimitiveUtils$alias$ref(IOPrimitiveUtils_getInstance())), this);
|
|
1810
1811
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1811
1812
|
return suspendResult;
|
|
1812
1813
|
}
|
|
1813
1814
|
|
|
1814
1815
|
continue $sm;
|
|
1815
1816
|
case 4:
|
|
1816
|
-
this.
|
|
1817
|
+
this.r8_1 = 5;
|
|
1817
1818
|
continue $sm;
|
|
1818
1819
|
case 5:
|
|
1819
|
-
this.
|
|
1820
|
-
suspendResult = this.
|
|
1820
|
+
this.r8_1 = 6;
|
|
1821
|
+
suspendResult = this.e51_1.wf(_get_PROPERTY_TYPE_TEXT__9rpcwt(IOPrimitiveUtils_getInstance()), this);
|
|
1821
1822
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1822
1823
|
return suspendResult;
|
|
1823
1824
|
}
|
|
@@ -1826,28 +1827,28 @@
|
|
|
1826
1827
|
case 6:
|
|
1827
1828
|
return Unit_instance;
|
|
1828
1829
|
case 7:
|
|
1829
|
-
throw this.
|
|
1830
|
+
throw this.u8_1;
|
|
1830
1831
|
}
|
|
1831
1832
|
} catch ($p) {
|
|
1832
1833
|
var e = $p;
|
|
1833
|
-
if (this.
|
|
1834
|
+
if (this.s8_1 === 7) {
|
|
1834
1835
|
throw e;
|
|
1835
1836
|
} else {
|
|
1836
|
-
this.
|
|
1837
|
-
this.
|
|
1837
|
+
this.r8_1 = this.s8_1;
|
|
1838
|
+
this.u8_1 = e;
|
|
1838
1839
|
}
|
|
1839
1840
|
}
|
|
1840
1841
|
while (true);
|
|
1841
1842
|
};
|
|
1842
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1843
|
-
var i = new IOPrimitiveUtils$propertiesOf$slambda(this.
|
|
1844
|
-
i.
|
|
1843
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).g51 = function ($this$sequence, completion) {
|
|
1844
|
+
var i = new IOPrimitiveUtils$propertiesOf$slambda(this.c51_1, this.d51_1, completion);
|
|
1845
|
+
i.e51_1 = $this$sequence;
|
|
1845
1846
|
return i;
|
|
1846
1847
|
};
|
|
1847
1848
|
function IOPrimitiveUtils$propertiesOf$slambda_0($channel, $this_propertiesOf, resultContinuation) {
|
|
1848
1849
|
var i = new IOPrimitiveUtils$propertiesOf$slambda($channel, $this_propertiesOf, resultContinuation);
|
|
1849
1850
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
1850
|
-
return i.
|
|
1851
|
+
return i.f51($this$sequence, $completion);
|
|
1851
1852
|
}, 1);
|
|
1852
1853
|
}
|
|
1853
1854
|
function IOPrimitiveUtils$getOption$lambda(it) {
|
|
@@ -1865,7 +1866,7 @@
|
|
|
1865
1866
|
return !(it == null) ? isInterface(it, Truth) : false;
|
|
1866
1867
|
}
|
|
1867
1868
|
function IOPrimitiveUtils$getOption$lambda_3(it) {
|
|
1868
|
-
return it.
|
|
1869
|
+
return it.v13();
|
|
1869
1870
|
}
|
|
1870
1871
|
function IOPrimitiveUtils$getInfo$lambda(it) {
|
|
1871
1872
|
return !(it == null) ? isInterface(it, Struct) : false;
|
|
@@ -1883,81 +1884,81 @@
|
|
|
1883
1884
|
}
|
|
1884
1885
|
function IOPrimitiveUtils$open$lambda($this_open) {
|
|
1885
1886
|
return function (it) {
|
|
1886
|
-
return IOPrimitiveUtils_getInstance().
|
|
1887
|
+
return IOPrimitiveUtils_getInstance().h51($this_open, it);
|
|
1887
1888
|
};
|
|
1888
1889
|
}
|
|
1889
1890
|
function IOPrimitiveUtils$open$lambda_0($this_open) {
|
|
1890
1891
|
return function (it) {
|
|
1891
|
-
return IOPrimitiveUtils_getInstance().
|
|
1892
|
+
return IOPrimitiveUtils_getInstance().i51($this_open, it);
|
|
1892
1893
|
};
|
|
1893
1894
|
}
|
|
1894
1895
|
function IOPrimitiveUtils$replyOpeningStream$lambda($alias, $channel) {
|
|
1895
1896
|
return function ($this$replyWith) {
|
|
1896
1897
|
var tmp0_elvis_lhs = $alias;
|
|
1897
|
-
$this$replyWith.
|
|
1898
|
+
$this$replyWith.v2z(tmp0_elvis_lhs == null ? 'output_channel' + $channel.n28().get(1).toString() : tmp0_elvis_lhs, $channel);
|
|
1898
1899
|
return Unit_instance;
|
|
1899
1900
|
};
|
|
1900
1901
|
}
|
|
1901
1902
|
function IOPrimitiveUtils$replyOpeningStream$lambda_0($alias, $channel) {
|
|
1902
1903
|
return function ($this$replyWith) {
|
|
1903
1904
|
var tmp0_elvis_lhs = $alias;
|
|
1904
|
-
$this$replyWith.
|
|
1905
|
+
$this$replyWith.s2z(tmp0_elvis_lhs == null ? 'input_channel' + $channel.n28().get(1).toString() : tmp0_elvis_lhs, $channel);
|
|
1905
1906
|
return Unit_instance;
|
|
1906
1907
|
};
|
|
1907
1908
|
}
|
|
1908
1909
|
function IOPrimitiveUtils() {
|
|
1909
1910
|
IOPrimitiveUtils_instance = this;
|
|
1910
1911
|
var tmp = this;
|
|
1911
|
-
tmp.
|
|
1912
|
+
tmp.m4y_1 = lazy(IOPrimitiveUtils$INPUT_STREAM_TERM_PATTERN$delegate$lambda);
|
|
1912
1913
|
var tmp_0 = this;
|
|
1913
|
-
tmp_0.
|
|
1914
|
+
tmp_0.n4y_1 = lazy(IOPrimitiveUtils$OUTPUT_STREAM_TERM_PATTERN$delegate$lambda);
|
|
1914
1915
|
var tmp_1 = this;
|
|
1915
|
-
tmp_1.
|
|
1916
|
+
tmp_1.o4y_1 = lazy(IOPrimitiveUtils$PROPERTY_TYPE_PATTERN$delegate$lambda);
|
|
1916
1917
|
var tmp_2 = this;
|
|
1917
|
-
tmp_2.
|
|
1918
|
+
tmp_2.p4y_1 = lazy(IOPrimitiveUtils$PROPERTY_REPOSITION_PATTERN$delegate$lambda);
|
|
1918
1919
|
var tmp_3 = this;
|
|
1919
|
-
tmp_3.
|
|
1920
|
+
tmp_3.q4y_1 = lazy(IOPrimitiveUtils$PROPERTY_EOF_ACTION_PATTERN$delegate$lambda);
|
|
1920
1921
|
var tmp_4 = this;
|
|
1921
|
-
tmp_4.
|
|
1922
|
+
tmp_4.r4y_1 = lazy(IOPrimitiveUtils$PROPERTY_ALIAS_PATTERN$delegate$lambda);
|
|
1922
1923
|
var tmp_5 = this;
|
|
1923
|
-
tmp_5.
|
|
1924
|
+
tmp_5.s4y_1 = lazy(IOPrimitiveUtils$PROPERTY_INPUT$delegate$lambda);
|
|
1924
1925
|
var tmp_6 = this;
|
|
1925
|
-
tmp_6.
|
|
1926
|
+
tmp_6.t4y_1 = lazy(IOPrimitiveUtils$PROPERTY_OUTPUT$delegate$lambda);
|
|
1926
1927
|
var tmp_7 = this;
|
|
1927
|
-
tmp_7.
|
|
1928
|
+
tmp_7.u4y_1 = lazy(IOPrimitiveUtils$PROPERTY_TYPE_TEXT$delegate$lambda);
|
|
1928
1929
|
var tmp_8 = this;
|
|
1929
|
-
tmp_8.
|
|
1930
|
+
tmp_8.v4y_1 = lazy(IOPrimitiveUtils$PROPERTY_REPOSITION_FALSE$delegate$lambda);
|
|
1930
1931
|
var tmp_9 = this;
|
|
1931
|
-
tmp_9.
|
|
1932
|
+
tmp_9.w4y_1 = lazy(IOPrimitiveUtils$PROPERTY_EOF_ACTION_EOF_CODE$delegate$lambda);
|
|
1932
1933
|
var tmp_10 = this;
|
|
1933
|
-
tmp_10.
|
|
1934
|
+
tmp_10.x4y_1 = lazy(IOPrimitiveUtils$OPTION_QUOTED_PATTERN$delegate$lambda);
|
|
1934
1935
|
var tmp_11 = this;
|
|
1935
|
-
tmp_11.
|
|
1936
|
+
tmp_11.y4y_1 = lazy(IOPrimitiveUtils$OPTION_NUMBER_VARS_PATTERN$delegate$lambda);
|
|
1936
1937
|
var tmp_12 = this;
|
|
1937
|
-
tmp_12.
|
|
1938
|
+
tmp_12.z4y_1 = lazy(IOPrimitiveUtils$OPTION_IGNORE_OPS_PATTERN$delegate$lambda);
|
|
1938
1939
|
var tmp_13 = this;
|
|
1939
|
-
tmp_13.
|
|
1940
|
+
tmp_13.a4z_1 = lazy(IOPrimitiveUtils$INFO_VARIABLES_PATTERN$delegate$lambda);
|
|
1940
1941
|
var tmp_14 = this;
|
|
1941
|
-
tmp_14.
|
|
1942
|
+
tmp_14.b4z_1 = lazy(IOPrimitiveUtils$INFO_VARIABLE_NAMES_PATTERN$delegate$lambda);
|
|
1942
1943
|
var tmp_15 = this;
|
|
1943
|
-
tmp_15.
|
|
1944
|
+
tmp_15.c4z_1 = lazy(IOPrimitiveUtils$INFO_SINGLETONS_PATTERN$delegate$lambda);
|
|
1944
1945
|
}
|
|
1945
|
-
protoOf(IOPrimitiveUtils).
|
|
1946
|
+
protoOf(IOPrimitiveUtils).j51 = function (_this__u8e3s4, channel) {
|
|
1946
1947
|
return sequence(IOPrimitiveUtils$propertiesOf$slambda_0(channel, _this__u8e3s4, null));
|
|
1947
1948
|
};
|
|
1948
|
-
protoOf(IOPrimitiveUtils).
|
|
1949
|
+
protoOf(IOPrimitiveUtils).d4z = function (_this__u8e3s4) {
|
|
1949
1950
|
// Inline function 'kotlin.let' call
|
|
1950
|
-
var it = _this__u8e3s4.context.
|
|
1951
|
-
var tmp0_elvis_lhs = it.
|
|
1952
|
-
return tmp0_elvis_lhs == null ? it.
|
|
1951
|
+
var it = _this__u8e3s4.context.p23();
|
|
1952
|
+
var tmp0_elvis_lhs = it.ay();
|
|
1953
|
+
return tmp0_elvis_lhs == null ? it.z23() : tmp0_elvis_lhs;
|
|
1953
1954
|
};
|
|
1954
|
-
protoOf(IOPrimitiveUtils).
|
|
1955
|
+
protoOf(IOPrimitiveUtils).k51 = function (_this__u8e3s4) {
|
|
1955
1956
|
// Inline function 'kotlin.let' call
|
|
1956
|
-
var it = _this__u8e3s4.context.
|
|
1957
|
-
var tmp0_elvis_lhs = it.
|
|
1958
|
-
return tmp0_elvis_lhs == null ? it.
|
|
1957
|
+
var it = _this__u8e3s4.context.q23();
|
|
1958
|
+
var tmp0_elvis_lhs = it.ay();
|
|
1959
|
+
return tmp0_elvis_lhs == null ? it.a24() : tmp0_elvis_lhs;
|
|
1959
1960
|
};
|
|
1960
|
-
protoOf(IOPrimitiveUtils).
|
|
1961
|
+
protoOf(IOPrimitiveUtils).h51 = function (_this__u8e3s4, term) {
|
|
1961
1962
|
var tmp;
|
|
1962
1963
|
var tmp0 = _get_validPropertiesPattern__7s1t06(this);
|
|
1963
1964
|
var tmp$ret$0;
|
|
@@ -1966,7 +1967,7 @@
|
|
|
1966
1967
|
var _iterator__ex2g4s = tmp0.n();
|
|
1967
1968
|
while (_iterator__ex2g4s.q()) {
|
|
1968
1969
|
var element = _iterator__ex2g4s.r();
|
|
1969
|
-
if (Companion_getInstance_1().
|
|
1970
|
+
if (Companion_getInstance_1().r2t(_this__u8e3s4, term, element)) {
|
|
1970
1971
|
tmp$ret$0 = true;
|
|
1971
1972
|
break $l$block;
|
|
1972
1973
|
}
|
|
@@ -1980,7 +1981,7 @@
|
|
|
1980
1981
|
}
|
|
1981
1982
|
return tmp;
|
|
1982
1983
|
};
|
|
1983
|
-
protoOf(IOPrimitiveUtils).
|
|
1984
|
+
protoOf(IOPrimitiveUtils).i51 = function (_this__u8e3s4, term) {
|
|
1984
1985
|
var tmp;
|
|
1985
1986
|
var tmp0 = _get_supportedPropertiesPattern__x8u7bw(this);
|
|
1986
1987
|
var tmp$ret$0;
|
|
@@ -1989,7 +1990,7 @@
|
|
|
1989
1990
|
var _iterator__ex2g4s = tmp0.n();
|
|
1990
1991
|
while (_iterator__ex2g4s.q()) {
|
|
1991
1992
|
var element = _iterator__ex2g4s.r();
|
|
1992
|
-
if (Companion_getInstance_1().
|
|
1993
|
+
if (Companion_getInstance_1().r2t(_this__u8e3s4, term, element)) {
|
|
1993
1994
|
tmp$ret$0 = true;
|
|
1994
1995
|
break $l$block;
|
|
1995
1996
|
}
|
|
@@ -2003,7 +2004,7 @@
|
|
|
2003
2004
|
}
|
|
2004
2005
|
return tmp;
|
|
2005
2006
|
};
|
|
2006
|
-
protoOf(IOPrimitiveUtils).
|
|
2007
|
+
protoOf(IOPrimitiveUtils).l51 = function (_this__u8e3s4, term) {
|
|
2007
2008
|
var tmp;
|
|
2008
2009
|
var tmp0 = _get_validOptionsPattern__akhsd9(this);
|
|
2009
2010
|
var tmp$ret$0;
|
|
@@ -2012,7 +2013,7 @@
|
|
|
2012
2013
|
var _iterator__ex2g4s = tmp0.n();
|
|
2013
2014
|
while (_iterator__ex2g4s.q()) {
|
|
2014
2015
|
var element = _iterator__ex2g4s.r();
|
|
2015
|
-
if (Companion_getInstance_1().
|
|
2016
|
+
if (Companion_getInstance_1().r2t(_this__u8e3s4, term, element)) {
|
|
2016
2017
|
tmp$ret$0 = true;
|
|
2017
2018
|
break $l$block;
|
|
2018
2019
|
}
|
|
@@ -2026,7 +2027,7 @@
|
|
|
2026
2027
|
}
|
|
2027
2028
|
return tmp;
|
|
2028
2029
|
};
|
|
2029
|
-
protoOf(IOPrimitiveUtils).
|
|
2030
|
+
protoOf(IOPrimitiveUtils).m51 = function (_this__u8e3s4, term) {
|
|
2030
2031
|
var tmp;
|
|
2031
2032
|
var tmp0 = _get_validInfoPattern__dtwgth(this);
|
|
2032
2033
|
var tmp$ret$0;
|
|
@@ -2035,7 +2036,7 @@
|
|
|
2035
2036
|
var _iterator__ex2g4s = tmp0.n();
|
|
2036
2037
|
while (_iterator__ex2g4s.q()) {
|
|
2037
2038
|
var element = _iterator__ex2g4s.r();
|
|
2038
|
-
if (Companion_getInstance_1().
|
|
2039
|
+
if (Companion_getInstance_1().r2t(_this__u8e3s4, term, element)) {
|
|
2039
2040
|
tmp$ret$0 = true;
|
|
2040
2041
|
break $l$block;
|
|
2041
2042
|
}
|
|
@@ -2049,56 +2050,56 @@
|
|
|
2049
2050
|
}
|
|
2050
2051
|
return tmp;
|
|
2051
2052
|
};
|
|
2052
|
-
protoOf(IOPrimitiveUtils).
|
|
2053
|
-
Companion_getInstance_1().
|
|
2053
|
+
protoOf(IOPrimitiveUtils).n51 = function (_this__u8e3s4, index) {
|
|
2054
|
+
Companion_getInstance_1().k2u(_this__u8e3s4, index);
|
|
2054
2055
|
var tmp = _this__u8e3s4.arguments.t(index);
|
|
2055
2056
|
var list = isInterface(tmp, List) ? tmp : THROW_CCE();
|
|
2056
|
-
var _iterator__ex2g4s = list.
|
|
2057
|
+
var _iterator__ex2g4s = list.a10().n();
|
|
2057
2058
|
while (_iterator__ex2g4s.q()) {
|
|
2058
2059
|
var term = _iterator__ex2g4s.r();
|
|
2059
|
-
this.
|
|
2060
|
+
this.l51(_this__u8e3s4, term);
|
|
2060
2061
|
}
|
|
2061
2062
|
return _this__u8e3s4;
|
|
2062
2063
|
};
|
|
2063
|
-
protoOf(IOPrimitiveUtils).
|
|
2064
|
+
protoOf(IOPrimitiveUtils).o51 = function (_this__u8e3s4, index) {
|
|
2064
2065
|
var list = _this__u8e3s4.arguments.t(index);
|
|
2065
2066
|
var tmp;
|
|
2066
2067
|
if (isInterface(list, Var)) {
|
|
2067
2068
|
tmp = null;
|
|
2068
2069
|
} else {
|
|
2069
|
-
Companion_getInstance_1().
|
|
2070
|
+
Companion_getInstance_1().k2u(_this__u8e3s4, index);
|
|
2070
2071
|
var listOfInfo = (isInterface(list, List) ? list : THROW_CCE()).toList();
|
|
2071
2072
|
var _iterator__ex2g4s = listOfInfo.n();
|
|
2072
2073
|
while (_iterator__ex2g4s.q()) {
|
|
2073
2074
|
var term = _iterator__ex2g4s.r();
|
|
2074
|
-
this.
|
|
2075
|
+
this.m51(_this__u8e3s4, term);
|
|
2075
2076
|
}
|
|
2076
2077
|
tmp = listOfInfo;
|
|
2077
2078
|
}
|
|
2078
2079
|
return tmp;
|
|
2079
2080
|
};
|
|
2080
|
-
protoOf(IOPrimitiveUtils).
|
|
2081
|
-
this.
|
|
2081
|
+
protoOf(IOPrimitiveUtils).p51 = function (_this__u8e3s4, index) {
|
|
2082
|
+
this.n51(_this__u8e3s4, index);
|
|
2082
2083
|
var tmp = _this__u8e3s4.arguments.t(index);
|
|
2083
2084
|
var optionList = (isInterface(tmp, List) ? tmp : THROW_CCE()).toList();
|
|
2084
2085
|
var tmp_0;
|
|
2085
|
-
if (getOption(this, optionList, _this__u8e3s4.context.
|
|
2086
|
+
if (getOption(this, optionList, _this__u8e3s4.context.z1u(), _get_OPTION_QUOTED_PATTERN__n2ri42(this))) {
|
|
2086
2087
|
tmp_0 = FuncFormat_QUOTED_IF_NECESSARY_getInstance();
|
|
2087
2088
|
} else {
|
|
2088
2089
|
tmp_0 = FuncFormat_LITERAL_getInstance();
|
|
2089
2090
|
}
|
|
2090
2091
|
var funcFormat = tmp_0;
|
|
2091
2092
|
var tmp_1;
|
|
2092
|
-
if (getOption(this, optionList, _this__u8e3s4.context.
|
|
2093
|
+
if (getOption(this, optionList, _this__u8e3s4.context.z1u(), _get_OPTION_IGNORE_OPS_PATTERN__cpse4v(this))) {
|
|
2093
2094
|
tmp_1 = OpFormat_IGNORE_OPERATORS_getInstance();
|
|
2094
2095
|
} else {
|
|
2095
2096
|
tmp_1 = OpFormat_EXPRESSIONS_getInstance();
|
|
2096
2097
|
}
|
|
2097
2098
|
var opFormat = tmp_1;
|
|
2098
|
-
var numberVars = getOption(this, optionList, _this__u8e3s4.context.
|
|
2099
|
-
return Companion_instance_8.of(VarFormat_UNDERSCORE_getInstance(), opFormat, funcFormat, numberVars, _this__u8e3s4.context.
|
|
2099
|
+
var numberVars = getOption(this, optionList, _this__u8e3s4.context.z1u(), _get_OPTION_NUMBER_VARS_PATTERN__p98ste(this));
|
|
2100
|
+
return Companion_instance_8.of(VarFormat_UNDERSCORE_getInstance(), opFormat, funcFormat, numberVars, _this__u8e3s4.context.u23());
|
|
2100
2101
|
};
|
|
2101
|
-
protoOf(IOPrimitiveUtils).
|
|
2102
|
+
protoOf(IOPrimitiveUtils).q51 = function (_this__u8e3s4, index) {
|
|
2102
2103
|
var term = _this__u8e3s4.arguments.t(index);
|
|
2103
2104
|
if (isInterface(term, Var))
|
|
2104
2105
|
return _this__u8e3s4;
|
|
@@ -2111,7 +2112,7 @@
|
|
|
2111
2112
|
var _iterator__ex2g4s = tmp0.n();
|
|
2112
2113
|
while (_iterator__ex2g4s.q()) {
|
|
2113
2114
|
var element = _iterator__ex2g4s.r();
|
|
2114
|
-
if (Companion_getInstance_1().
|
|
2115
|
+
if (Companion_getInstance_1().r2t(_this__u8e3s4, term, element)) {
|
|
2115
2116
|
tmp$ret$0 = true;
|
|
2116
2117
|
break $l$block;
|
|
2117
2118
|
}
|
|
@@ -2123,12 +2124,12 @@
|
|
|
2123
2124
|
}
|
|
2124
2125
|
}
|
|
2125
2126
|
}
|
|
2126
|
-
throw Companion_instance_7.
|
|
2127
|
+
throw Companion_instance_7.u2e(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_PROPERTY_getInstance(), term, index);
|
|
2127
2128
|
};
|
|
2128
|
-
protoOf(IOPrimitiveUtils).
|
|
2129
|
-
Companion_getInstance_1().
|
|
2129
|
+
protoOf(IOPrimitiveUtils).r51 = function (_this__u8e3s4, index) {
|
|
2130
|
+
Companion_getInstance_1().w2t(_this__u8e3s4, index);
|
|
2130
2131
|
var term = _this__u8e3s4.arguments.t(index);
|
|
2131
|
-
var error = Companion_instance_7.
|
|
2132
|
+
var error = Companion_instance_7.u2e(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_SOURCE_SINK_getInstance(), term, index);
|
|
2132
2133
|
if (!isInterface(term, Atom)) {
|
|
2133
2134
|
throw error;
|
|
2134
2135
|
}
|
|
@@ -2143,27 +2144,27 @@
|
|
|
2143
2144
|
}
|
|
2144
2145
|
}
|
|
2145
2146
|
};
|
|
2146
|
-
protoOf(IOPrimitiveUtils).
|
|
2147
|
-
Companion_getInstance_1().
|
|
2148
|
-
Companion_getInstance_1().
|
|
2147
|
+
protoOf(IOPrimitiveUtils).s51 = function (_this__u8e3s4, index) {
|
|
2148
|
+
Companion_getInstance_1().w2t(_this__u8e3s4, index);
|
|
2149
|
+
Companion_getInstance_1().f2u(_this__u8e3s4, index);
|
|
2149
2150
|
var tmp = _this__u8e3s4.arguments.t(index);
|
|
2150
2151
|
var term = isInterface(tmp, Atom) ? tmp : THROW_CCE();
|
|
2151
|
-
if (!Companion_getInstance_8().
|
|
2152
|
-
throw Companion_instance_7.
|
|
2152
|
+
if (!Companion_getInstance_8().g4x_1.y(term)) {
|
|
2153
|
+
throw Companion_instance_7.u2e(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IO_MODE_getInstance(), term, index);
|
|
2153
2154
|
}
|
|
2154
2155
|
// Inline function 'kotlin.text.uppercase' call
|
|
2155
2156
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2156
2157
|
var tmp$ret$0 = term.f1().toUpperCase();
|
|
2157
2158
|
return valueOf(tmp$ret$0);
|
|
2158
2159
|
};
|
|
2159
|
-
protoOf(IOPrimitiveUtils).
|
|
2160
|
+
protoOf(IOPrimitiveUtils).y4z = function (_this__u8e3s4, index) {
|
|
2160
2161
|
var term = _this__u8e3s4.arguments.t(index);
|
|
2161
2162
|
if (isInterface(term, Var))
|
|
2162
2163
|
return null;
|
|
2163
2164
|
else {
|
|
2164
2165
|
if (isInterface(term, Struct))
|
|
2165
|
-
if (Companion_getInstance_1().
|
|
2166
|
-
var tmp1_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2166
|
+
if (Companion_getInstance_1().r2t(_this__u8e3s4, term, _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(this))) {
|
|
2167
|
+
var tmp1_elvis_lhs = firstOrNull(_this__u8e3s4.context.q23().findByTerm(term));
|
|
2167
2168
|
var tmp;
|
|
2168
2169
|
if (tmp1_elvis_lhs == null) {
|
|
2169
2170
|
throw Companion_instance_9.forStream(_this__u8e3s4.context, term);
|
|
@@ -2171,8 +2172,8 @@
|
|
|
2171
2172
|
tmp = tmp1_elvis_lhs;
|
|
2172
2173
|
}
|
|
2173
2174
|
return tmp;
|
|
2174
|
-
} else if (Companion_getInstance_1().
|
|
2175
|
-
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2175
|
+
} else if (Companion_getInstance_1().r2t(_this__u8e3s4, term, _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(this))) {
|
|
2176
|
+
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.p23().findByTerm(term));
|
|
2176
2177
|
var tmp_0;
|
|
2177
2178
|
if (tmp2_elvis_lhs == null) {
|
|
2178
2179
|
throw Companion_instance_9.forStream(_this__u8e3s4.context, term);
|
|
@@ -2182,9 +2183,9 @@
|
|
|
2182
2183
|
return tmp_0;
|
|
2183
2184
|
}
|
|
2184
2185
|
}
|
|
2185
|
-
throw Companion_instance_7.
|
|
2186
|
+
throw Companion_instance_7.u2e(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_OR_ALIAS_getInstance(), term, index);
|
|
2186
2187
|
};
|
|
2187
|
-
protoOf(IOPrimitiveUtils).
|
|
2188
|
+
protoOf(IOPrimitiveUtils).k50 = function (_this__u8e3s4, index) {
|
|
2188
2189
|
var arg = _this__u8e3s4.arguments.t(index);
|
|
2189
2190
|
var tmp;
|
|
2190
2191
|
if (isInterface(arg, Var)) {
|
|
@@ -2197,28 +2198,28 @@
|
|
|
2197
2198
|
} else if (arg.f1().length === 1) {
|
|
2198
2199
|
tmp_0 = _this__u8e3s4;
|
|
2199
2200
|
} else {
|
|
2200
|
-
throw Companion_instance_3.
|
|
2201
|
+
throw Companion_instance_3.q2h(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IN_CHARACTER_getInstance(), arg, index);
|
|
2201
2202
|
}
|
|
2202
2203
|
tmp = tmp_0;
|
|
2203
2204
|
} else {
|
|
2204
|
-
throw Companion_instance_3.
|
|
2205
|
+
throw Companion_instance_3.q2h(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IN_CHARACTER_getInstance(), arg, index);
|
|
2205
2206
|
}
|
|
2206
2207
|
}
|
|
2207
2208
|
return tmp;
|
|
2208
2209
|
};
|
|
2209
|
-
protoOf(IOPrimitiveUtils).
|
|
2210
|
+
protoOf(IOPrimitiveUtils).q50 = function (_this__u8e3s4, index) {
|
|
2210
2211
|
var term = _this__u8e3s4.arguments.t(index);
|
|
2211
2212
|
var tmp;
|
|
2212
2213
|
if (isInterface(term, Var)) {
|
|
2213
2214
|
tmp = _this__u8e3s4;
|
|
2214
2215
|
} else {
|
|
2215
2216
|
if (!isInterface(term, Integer)) {
|
|
2216
|
-
tmp = Companion_getInstance_1().
|
|
2217
|
+
tmp = Companion_getInstance_1().j2u(_this__u8e3s4, index);
|
|
2217
2218
|
} else {
|
|
2218
|
-
if (term.equals(Companion_getInstance_6().
|
|
2219
|
+
if (term.equals(Companion_getInstance_6().a18_1)) {
|
|
2219
2220
|
tmp = _this__u8e3s4;
|
|
2220
2221
|
} else {
|
|
2221
|
-
if (!Companion_getInstance_1().
|
|
2222
|
+
if (!Companion_getInstance_1().n2u(term)) {
|
|
2222
2223
|
throw Companion_instance_5.of(_this__u8e3s4.context, _this__u8e3s4.signature, Limit_CHARACTER_CODE_getInstance());
|
|
2223
2224
|
} else {
|
|
2224
2225
|
tmp = _this__u8e3s4;
|
|
@@ -2228,14 +2229,14 @@
|
|
|
2228
2229
|
}
|
|
2229
2230
|
return tmp;
|
|
2230
2231
|
};
|
|
2231
|
-
protoOf(IOPrimitiveUtils).
|
|
2232
|
-
Companion_getInstance_1().
|
|
2233
|
-
Companion_getInstance_1().
|
|
2232
|
+
protoOf(IOPrimitiveUtils).m4z = function (_this__u8e3s4, index) {
|
|
2233
|
+
Companion_getInstance_1().w2t(_this__u8e3s4, index);
|
|
2234
|
+
Companion_getInstance_1().a2u(_this__u8e3s4, index);
|
|
2234
2235
|
var tmp = _this__u8e3s4.arguments.t(index);
|
|
2235
2236
|
var term = isInterface(tmp, Struct) ? tmp : THROW_CCE();
|
|
2236
2237
|
var tmp_0;
|
|
2237
2238
|
if (isInterface(term, Atom)) {
|
|
2238
|
-
var tmp0 = sequenceOf([_this__u8e3s4.context.
|
|
2239
|
+
var tmp0 = sequenceOf([_this__u8e3s4.context.p23(), _this__u8e3s4.context.q23()]);
|
|
2239
2240
|
var tmp$ret$0;
|
|
2240
2241
|
$l$block: {
|
|
2241
2242
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
@@ -2262,8 +2263,8 @@
|
|
|
2262
2263
|
}
|
|
2263
2264
|
tmp_0 = tmp_1;
|
|
2264
2265
|
} else {
|
|
2265
|
-
if (Companion_getInstance_1().
|
|
2266
|
-
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2266
|
+
if (Companion_getInstance_1().r2t(_this__u8e3s4, term, _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(this))) {
|
|
2267
|
+
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.q23().findByTerm(term));
|
|
2267
2268
|
var tmp_2;
|
|
2268
2269
|
if (tmp2_elvis_lhs == null) {
|
|
2269
2270
|
throw Companion_instance_9.forStream(_this__u8e3s4.context, term);
|
|
@@ -2272,8 +2273,8 @@
|
|
|
2272
2273
|
}
|
|
2273
2274
|
tmp_0 = tmp_2;
|
|
2274
2275
|
} else {
|
|
2275
|
-
if (Companion_getInstance_1().
|
|
2276
|
-
var tmp3_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2276
|
+
if (Companion_getInstance_1().r2t(_this__u8e3s4, term, _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(this))) {
|
|
2277
|
+
var tmp3_elvis_lhs = firstOrNull(_this__u8e3s4.context.p23().findByTerm(term));
|
|
2277
2278
|
var tmp_3;
|
|
2278
2279
|
if (tmp3_elvis_lhs == null) {
|
|
2279
2280
|
throw Companion_instance_9.forStream(_this__u8e3s4.context, term);
|
|
@@ -2282,33 +2283,33 @@
|
|
|
2282
2283
|
}
|
|
2283
2284
|
tmp_0 = tmp_3;
|
|
2284
2285
|
} else {
|
|
2285
|
-
throw Companion_instance_7.
|
|
2286
|
+
throw Companion_instance_7.u2e(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_OR_ALIAS_getInstance(), term, index);
|
|
2286
2287
|
}
|
|
2287
2288
|
}
|
|
2288
2289
|
}
|
|
2289
2290
|
return tmp_0;
|
|
2290
2291
|
};
|
|
2291
|
-
protoOf(IOPrimitiveUtils).
|
|
2292
|
-
var channel = this.
|
|
2292
|
+
protoOf(IOPrimitiveUtils).h4z = function (_this__u8e3s4, index) {
|
|
2293
|
+
var channel = this.m4z(_this__u8e3s4, index);
|
|
2293
2294
|
var tmp;
|
|
2294
2295
|
if (isInterface(channel, InputChannel)) {
|
|
2295
2296
|
tmp = channel;
|
|
2296
2297
|
} else {
|
|
2297
|
-
throw Companion_instance_7.
|
|
2298
|
+
throw Companion_instance_7.u2e(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_TYPE_getInstance(), _this__u8e3s4.arguments.t(index), index);
|
|
2298
2299
|
}
|
|
2299
2300
|
return tmp;
|
|
2300
2301
|
};
|
|
2301
|
-
protoOf(IOPrimitiveUtils).
|
|
2302
|
-
var channel = this.
|
|
2302
|
+
protoOf(IOPrimitiveUtils).d50 = function (_this__u8e3s4, index) {
|
|
2303
|
+
var channel = this.m4z(_this__u8e3s4, index);
|
|
2303
2304
|
var tmp;
|
|
2304
2305
|
if (isInterface(channel, OutputChannel)) {
|
|
2305
2306
|
tmp = channel;
|
|
2306
2307
|
} else {
|
|
2307
|
-
throw Companion_instance_7.
|
|
2308
|
+
throw Companion_instance_7.u2e(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_TYPE_getInstance(), _this__u8e3s4.arguments.t(index), index);
|
|
2308
2309
|
}
|
|
2309
2310
|
return tmp;
|
|
2310
2311
|
};
|
|
2311
|
-
protoOf(IOPrimitiveUtils).
|
|
2312
|
+
protoOf(IOPrimitiveUtils).t51 = function (_this__u8e3s4, channel, term, formatter) {
|
|
2312
2313
|
var tmp;
|
|
2313
2314
|
try {
|
|
2314
2315
|
channel.write(format(term, formatter));
|
|
@@ -2325,10 +2326,10 @@
|
|
|
2325
2326
|
}
|
|
2326
2327
|
return tmp;
|
|
2327
2328
|
};
|
|
2328
|
-
protoOf(IOPrimitiveUtils).
|
|
2329
|
+
protoOf(IOPrimitiveUtils).u51 = function (_this__u8e3s4, channel, arg) {
|
|
2329
2330
|
var tmp;
|
|
2330
2331
|
try {
|
|
2331
|
-
channel.write(toString_0(arg.
|
|
2332
|
+
channel.write(toString_0(arg.t17().fn()));
|
|
2332
2333
|
tmp = _this__u8e3s4.replySuccess(VOID, VOID, []);
|
|
2333
2334
|
} catch ($p) {
|
|
2334
2335
|
var tmp_0;
|
|
@@ -2342,7 +2343,7 @@
|
|
|
2342
2343
|
}
|
|
2343
2344
|
return tmp;
|
|
2344
2345
|
};
|
|
2345
|
-
protoOf(IOPrimitiveUtils).
|
|
2346
|
+
protoOf(IOPrimitiveUtils).v51 = function (_this__u8e3s4, channel, arg) {
|
|
2346
2347
|
var tmp;
|
|
2347
2348
|
try {
|
|
2348
2349
|
channel.write(arg.f1());
|
|
@@ -2359,11 +2360,11 @@
|
|
|
2359
2360
|
}
|
|
2360
2361
|
return tmp;
|
|
2361
2362
|
};
|
|
2362
|
-
protoOf(IOPrimitiveUtils).
|
|
2363
|
+
protoOf(IOPrimitiveUtils).w51 = function (_this__u8e3s4, channel, arg) {
|
|
2363
2364
|
var tmp;
|
|
2364
2365
|
try {
|
|
2365
2366
|
var code = characterCodeOf(this, _this__u8e3s4, channel.peek());
|
|
2366
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2367
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().p2t(_this__u8e3s4, arg, Companion_getInstance_6().ofInt(code)), VOID, []);
|
|
2367
2368
|
} catch ($p) {
|
|
2368
2369
|
var tmp_0;
|
|
2369
2370
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2376,12 +2377,12 @@
|
|
|
2376
2377
|
}
|
|
2377
2378
|
return tmp;
|
|
2378
2379
|
};
|
|
2379
|
-
protoOf(IOPrimitiveUtils).
|
|
2380
|
+
protoOf(IOPrimitiveUtils).x51 = function (_this__u8e3s4, channel, arg) {
|
|
2380
2381
|
var tmp;
|
|
2381
2382
|
try {
|
|
2382
2383
|
var tmp0_elvis_lhs = channel.peek();
|
|
2383
2384
|
var char = tmp0_elvis_lhs == null ? 'end_of_file' : tmp0_elvis_lhs;
|
|
2384
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2385
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().p2t(_this__u8e3s4, arg, Companion_getInstance_0().of(char)), VOID, []);
|
|
2385
2386
|
} catch ($p) {
|
|
2386
2387
|
var tmp_0;
|
|
2387
2388
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2394,11 +2395,11 @@
|
|
|
2394
2395
|
}
|
|
2395
2396
|
return tmp;
|
|
2396
2397
|
};
|
|
2397
|
-
protoOf(IOPrimitiveUtils).
|
|
2398
|
+
protoOf(IOPrimitiveUtils).r50 = function (_this__u8e3s4, channel, arg) {
|
|
2398
2399
|
var tmp;
|
|
2399
2400
|
try {
|
|
2400
2401
|
var code = characterCodeOf(this, _this__u8e3s4, channel.read());
|
|
2401
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2402
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().p2t(_this__u8e3s4, arg, Companion_getInstance_6().ofInt(code)), VOID, []);
|
|
2402
2403
|
} catch ($p) {
|
|
2403
2404
|
var tmp_0;
|
|
2404
2405
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2411,12 +2412,12 @@
|
|
|
2411
2412
|
}
|
|
2412
2413
|
return tmp;
|
|
2413
2414
|
};
|
|
2414
|
-
protoOf(IOPrimitiveUtils).
|
|
2415
|
+
protoOf(IOPrimitiveUtils).l50 = function (_this__u8e3s4, channel, arg) {
|
|
2415
2416
|
var tmp;
|
|
2416
2417
|
try {
|
|
2417
2418
|
var tmp0_elvis_lhs = channel.read();
|
|
2418
2419
|
var char = tmp0_elvis_lhs == null ? 'end_of_file' : tmp0_elvis_lhs;
|
|
2419
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2420
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().p2t(_this__u8e3s4, arg, Companion_getInstance_0().of(char)), VOID, []);
|
|
2420
2421
|
} catch ($p) {
|
|
2421
2422
|
var tmp_0;
|
|
2422
2423
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2429,37 +2430,37 @@
|
|
|
2429
2430
|
}
|
|
2430
2431
|
return tmp;
|
|
2431
2432
|
};
|
|
2432
|
-
protoOf(IOPrimitiveUtils).
|
|
2433
|
+
protoOf(IOPrimitiveUtils).y51 = function (_this__u8e3s4, channel, arg, lastIsInfoList) {
|
|
2433
2434
|
try {
|
|
2434
|
-
var termsChannel = asTermChannel(channel, _this__u8e3s4.context.
|
|
2435
|
+
var termsChannel = asTermChannel(channel, _this__u8e3s4.context.u23());
|
|
2435
2436
|
var tmp;
|
|
2436
2437
|
if (lastIsInfoList) {
|
|
2437
|
-
tmp = this.
|
|
2438
|
+
tmp = this.o51(_this__u8e3s4, get_lastIndex(_this__u8e3s4.arguments));
|
|
2438
2439
|
} else {
|
|
2439
2440
|
tmp = emptyList();
|
|
2440
2441
|
}
|
|
2441
2442
|
var infoList = tmp;
|
|
2442
|
-
if (!termsChannel.
|
|
2443
|
+
if (!termsChannel.q28())
|
|
2443
2444
|
return _this__u8e3s4.replyFail(VOID, []);
|
|
2444
2445
|
var read = termsChannel.read();
|
|
2445
2446
|
var tmp_0;
|
|
2446
2447
|
if (read == null) {
|
|
2447
2448
|
tmp_0 = _this__u8e3s4.replyFail(VOID, []);
|
|
2448
2449
|
} else {
|
|
2449
|
-
var variables_0 = variables(this, toList_0(read.
|
|
2450
|
-
var variableNames_0 = variableNames(this, toAssignments_0(this, read.
|
|
2450
|
+
var variables_0 = variables(this, toList_0(read.z13()));
|
|
2451
|
+
var variableNames_0 = variableNames(this, toAssignments_0(this, read.z13()));
|
|
2451
2452
|
var singletons_0 = singletons(this, toAssignments(this, _get_singletons__bihqrn(this, read)));
|
|
2452
2453
|
var tmp_1;
|
|
2453
2454
|
if (infoList == null) {
|
|
2454
2455
|
tmp_1 = null;
|
|
2455
2456
|
} else {
|
|
2456
2457
|
// Inline function 'kotlin.let' call
|
|
2457
|
-
var u = _this__u8e3s4.context.
|
|
2458
|
+
var u = _this__u8e3s4.context.z1u();
|
|
2458
2459
|
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));
|
|
2459
2460
|
}
|
|
2460
2461
|
var tmp1_elvis_lhs = tmp_1;
|
|
2461
|
-
var info = tmp1_elvis_lhs == null ? Companion_getInstance_1().
|
|
2462
|
-
tmp_0 = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2462
|
+
var info = tmp1_elvis_lhs == null ? Companion_getInstance_1().p2t(_this__u8e3s4, last(_this__u8e3s4.arguments), Companion_instance_4.of([variables_0, variableNames_0, singletons_0])) : tmp1_elvis_lhs;
|
|
2463
|
+
tmp_0 = _this__u8e3s4.replyWith(Companion_getInstance_1().p2t(_this__u8e3s4, arg, read).plus(info), VOID, []);
|
|
2463
2464
|
}
|
|
2464
2465
|
return tmp_0;
|
|
2465
2466
|
} catch ($p) {
|
|
@@ -2470,7 +2471,7 @@
|
|
|
2470
2471
|
if ($p instanceof ParseException) {
|
|
2471
2472
|
var e_0 = $p;
|
|
2472
2473
|
var tmp_2 = Companion_instance_10;
|
|
2473
|
-
var tmp_3 = channel.
|
|
2474
|
+
var tmp_3 = channel.n28().toString();
|
|
2474
2475
|
var tmp_4 = e_0.line;
|
|
2475
2476
|
var tmp_5 = e_0.column;
|
|
2476
2477
|
var tmp2_elvis_lhs = e_0.message;
|
|
@@ -2481,19 +2482,19 @@
|
|
|
2481
2482
|
}
|
|
2482
2483
|
}
|
|
2483
2484
|
};
|
|
2484
|
-
protoOf(IOPrimitiveUtils).
|
|
2485
|
+
protoOf(IOPrimitiveUtils).z51 = function (_this__u8e3s4, channel, arg, lastIsInfoList, $super) {
|
|
2485
2486
|
lastIsInfoList = lastIsInfoList === VOID ? false : lastIsInfoList;
|
|
2486
|
-
return $super === VOID ? this.
|
|
2487
|
+
return $super === VOID ? this.y51(_this__u8e3s4, channel, arg, lastIsInfoList) : $super.y51.call(this, _this__u8e3s4, channel, arg, lastIsInfoList);
|
|
2487
2488
|
};
|
|
2488
|
-
protoOf(IOPrimitiveUtils).
|
|
2489
|
-
var url = this.
|
|
2490
|
-
var mode = this.
|
|
2491
|
-
Companion_getInstance_1().
|
|
2489
|
+
protoOf(IOPrimitiveUtils).a52 = function (_this__u8e3s4, third) {
|
|
2490
|
+
var url = this.r51(_this__u8e3s4, 0);
|
|
2491
|
+
var mode = this.s51(_this__u8e3s4, 1);
|
|
2492
|
+
Companion_getInstance_1().d2u(_this__u8e3s4, 2);
|
|
2492
2493
|
var tmp;
|
|
2493
2494
|
if (_this__u8e3s4.arguments.s() >= 4) {
|
|
2494
|
-
Companion_getInstance_1().
|
|
2495
|
+
Companion_getInstance_1().k2u(_this__u8e3s4, 3);
|
|
2495
2496
|
var tmp_0 = _this__u8e3s4.arguments.t(3);
|
|
2496
|
-
var tmp_1 = (isInterface(tmp_0, List) ? tmp_0 : THROW_CCE()).
|
|
2497
|
+
var tmp_1 = (isInterface(tmp_0, List) ? tmp_0 : THROW_CCE()).a10();
|
|
2497
2498
|
var tmp_2 = map(tmp_1, IOPrimitiveUtils$open$lambda(_this__u8e3s4));
|
|
2498
2499
|
tmp = toSet(map(tmp_2, IOPrimitiveUtils$open$lambda_0(_this__u8e3s4)));
|
|
2499
2500
|
} else {
|
|
@@ -2506,7 +2507,7 @@
|
|
|
2506
2507
|
var _iterator__ex2g4s = options.n();
|
|
2507
2508
|
while (_iterator__ex2g4s.q()) {
|
|
2508
2509
|
var element = _iterator__ex2g4s.r();
|
|
2509
|
-
if (Companion_getInstance_1().
|
|
2510
|
+
if (Companion_getInstance_1().r2t(_this__u8e3s4, _get_PROPERTY_ALIAS_PATTERN__wipd2s(IOPrimitiveUtils_getInstance()), element)) {
|
|
2510
2511
|
tmp$ret$0 = element;
|
|
2511
2512
|
break $l$block;
|
|
2512
2513
|
}
|
|
@@ -2542,7 +2543,7 @@
|
|
|
2542
2543
|
if (tmp_7 instanceof FileNotFoundException) {
|
|
2543
2544
|
tmp_6 = ExistenceError_init_$Create$(e.message, e, _this__u8e3s4.context, ObjectType_SOURCE_SINK_getInstance(), _this__u8e3s4.arguments.t(0));
|
|
2544
2545
|
} else {
|
|
2545
|
-
tmp_6 = e.
|
|
2546
|
+
tmp_6 = e.h4y(_this__u8e3s4.context);
|
|
2546
2547
|
}
|
|
2547
2548
|
throw tmp_6;
|
|
2548
2549
|
} else {
|
|
@@ -2560,13 +2561,13 @@
|
|
|
2560
2561
|
function Nl1() {
|
|
2561
2562
|
Nl1_instance = this;
|
|
2562
2563
|
NonBacktrackable_0.call(this, 'nl');
|
|
2563
|
-
this.
|
|
2564
|
+
this.c52_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```';
|
|
2564
2565
|
}
|
|
2565
|
-
protoOf(Nl1).
|
|
2566
|
-
return this.
|
|
2566
|
+
protoOf(Nl1).a23 = function () {
|
|
2567
|
+
return this.c52_1;
|
|
2567
2568
|
};
|
|
2568
|
-
protoOf(Nl1).
|
|
2569
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2569
|
+
protoOf(Nl1).a33 = function (_this__u8e3s4, first) {
|
|
2570
|
+
var channel = IOPrimitiveUtils_getInstance().d50(_this__u8e3s4, 0);
|
|
2570
2571
|
var tmp;
|
|
2571
2572
|
try {
|
|
2572
2573
|
channel.write('\n');
|
|
@@ -2583,8 +2584,8 @@
|
|
|
2583
2584
|
}
|
|
2584
2585
|
return tmp;
|
|
2585
2586
|
};
|
|
2586
|
-
protoOf(Nl1).
|
|
2587
|
-
return this.
|
|
2587
|
+
protoOf(Nl1).i2w = function (_this__u8e3s4, first) {
|
|
2588
|
+
return this.a33(_this__u8e3s4, first);
|
|
2588
2589
|
};
|
|
2589
2590
|
var Nl1_instance;
|
|
2590
2591
|
function Nl1_getInstance() {
|
|
@@ -2595,16 +2596,16 @@
|
|
|
2595
2596
|
function Open3() {
|
|
2596
2597
|
Open3_instance = this;
|
|
2597
2598
|
NonBacktrackable_1.call(this, 'open');
|
|
2598
|
-
this.
|
|
2599
|
+
this.e52_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```";
|
|
2599
2600
|
}
|
|
2600
|
-
protoOf(Open3).
|
|
2601
|
-
return this.
|
|
2601
|
+
protoOf(Open3).a23 = function () {
|
|
2602
|
+
return this.e52_1;
|
|
2602
2603
|
};
|
|
2603
|
-
protoOf(Open3).
|
|
2604
|
-
return IOPrimitiveUtils_getInstance().
|
|
2604
|
+
protoOf(Open3).h38 = function (_this__u8e3s4, first, second, third) {
|
|
2605
|
+
return IOPrimitiveUtils_getInstance().a52(_this__u8e3s4, third);
|
|
2605
2606
|
};
|
|
2606
|
-
protoOf(Open3).
|
|
2607
|
-
return this.
|
|
2607
|
+
protoOf(Open3).z2v = function (_this__u8e3s4, first, second, third) {
|
|
2608
|
+
return this.h38(_this__u8e3s4, first, second, third);
|
|
2608
2609
|
};
|
|
2609
2610
|
var Open3_instance;
|
|
2610
2611
|
function Open3_getInstance() {
|
|
@@ -2615,16 +2616,16 @@
|
|
|
2615
2616
|
function Open4() {
|
|
2616
2617
|
Open4_instance = this;
|
|
2617
2618
|
NonBacktrackable_2.call(this, 'open');
|
|
2618
|
-
this.
|
|
2619
|
+
this.g52_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```";
|
|
2619
2620
|
}
|
|
2620
|
-
protoOf(Open4).
|
|
2621
|
-
return this.
|
|
2621
|
+
protoOf(Open4).a23 = function () {
|
|
2622
|
+
return this.g52_1;
|
|
2622
2623
|
};
|
|
2623
|
-
protoOf(Open4).
|
|
2624
|
-
return IOPrimitiveUtils_getInstance().
|
|
2624
|
+
protoOf(Open4).h52 = function (_this__u8e3s4, first, second, third, fourth) {
|
|
2625
|
+
return IOPrimitiveUtils_getInstance().a52(_this__u8e3s4, third);
|
|
2625
2626
|
};
|
|
2626
|
-
protoOf(Open4).
|
|
2627
|
-
return this.
|
|
2627
|
+
protoOf(Open4).y2u = function (_this__u8e3s4, first, second, third, fourth) {
|
|
2628
|
+
return this.h52(_this__u8e3s4, first, second, third, fourth);
|
|
2628
2629
|
};
|
|
2629
2630
|
var Open4_instance;
|
|
2630
2631
|
function Open4_getInstance() {
|
|
@@ -2635,16 +2636,16 @@
|
|
|
2635
2636
|
function PeekByte1() {
|
|
2636
2637
|
PeekByte1_instance = this;
|
|
2637
2638
|
NonBacktrackable_0.call(this, 'peek_byte');
|
|
2638
|
-
this.
|
|
2639
|
+
this.j52_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```';
|
|
2639
2640
|
}
|
|
2640
|
-
protoOf(PeekByte1).
|
|
2641
|
-
return this.
|
|
2641
|
+
protoOf(PeekByte1).a23 = function () {
|
|
2642
|
+
return this.j52_1;
|
|
2642
2643
|
};
|
|
2643
|
-
protoOf(PeekByte1).
|
|
2644
|
-
return Companion_getInstance_1().
|
|
2644
|
+
protoOf(PeekByte1).a33 = function (_this__u8e3s4, first) {
|
|
2645
|
+
return Companion_getInstance_1().y2t(_this__u8e3s4);
|
|
2645
2646
|
};
|
|
2646
|
-
protoOf(PeekByte1).
|
|
2647
|
-
return this.
|
|
2647
|
+
protoOf(PeekByte1).i2w = function (_this__u8e3s4, first) {
|
|
2648
|
+
return this.a33(_this__u8e3s4, first);
|
|
2648
2649
|
};
|
|
2649
2650
|
var PeekByte1_instance;
|
|
2650
2651
|
function PeekByte1_getInstance() {
|
|
@@ -2655,16 +2656,16 @@
|
|
|
2655
2656
|
function PeekByte2() {
|
|
2656
2657
|
PeekByte2_instance = this;
|
|
2657
2658
|
NonBacktrackable.call(this, 'peek_byte');
|
|
2658
|
-
this.
|
|
2659
|
+
this.l52_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```';
|
|
2659
2660
|
}
|
|
2660
|
-
protoOf(PeekByte2).
|
|
2661
|
-
return this.
|
|
2661
|
+
protoOf(PeekByte2).a23 = function () {
|
|
2662
|
+
return this.l52_1;
|
|
2662
2663
|
};
|
|
2663
|
-
protoOf(PeekByte2).
|
|
2664
|
-
return Companion_getInstance_1().
|
|
2664
|
+
protoOf(PeekByte2).o33 = function (_this__u8e3s4, first, second) {
|
|
2665
|
+
return Companion_getInstance_1().y2t(_this__u8e3s4);
|
|
2665
2666
|
};
|
|
2666
|
-
protoOf(PeekByte2).
|
|
2667
|
-
return this.
|
|
2667
|
+
protoOf(PeekByte2).t2s = function (_this__u8e3s4, first, second) {
|
|
2668
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
2668
2669
|
};
|
|
2669
2670
|
var PeekByte2_instance;
|
|
2670
2671
|
function PeekByte2_getInstance() {
|
|
@@ -2675,17 +2676,17 @@
|
|
|
2675
2676
|
function PeekChar1() {
|
|
2676
2677
|
PeekChar1_instance = this;
|
|
2677
2678
|
NonBacktrackable_0.call(this, 'peek_char');
|
|
2678
|
-
this.
|
|
2679
|
+
this.n52_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```';
|
|
2679
2680
|
}
|
|
2680
|
-
protoOf(PeekChar1).
|
|
2681
|
-
return this.
|
|
2681
|
+
protoOf(PeekChar1).a23 = function () {
|
|
2682
|
+
return this.n52_1;
|
|
2682
2683
|
};
|
|
2683
|
-
protoOf(PeekChar1).
|
|
2684
|
-
IOPrimitiveUtils_getInstance().
|
|
2685
|
-
return IOPrimitiveUtils_getInstance().
|
|
2684
|
+
protoOf(PeekChar1).a33 = function (_this__u8e3s4, first) {
|
|
2685
|
+
IOPrimitiveUtils_getInstance().k50(_this__u8e3s4, 0);
|
|
2686
|
+
return IOPrimitiveUtils_getInstance().x51(_this__u8e3s4, IOPrimitiveUtils_getInstance().d4z(_this__u8e3s4), first);
|
|
2686
2687
|
};
|
|
2687
|
-
protoOf(PeekChar1).
|
|
2688
|
-
return this.
|
|
2688
|
+
protoOf(PeekChar1).i2w = function (_this__u8e3s4, first) {
|
|
2689
|
+
return this.a33(_this__u8e3s4, first);
|
|
2689
2690
|
};
|
|
2690
2691
|
var PeekChar1_instance;
|
|
2691
2692
|
function PeekChar1_getInstance() {
|
|
@@ -2696,18 +2697,18 @@
|
|
|
2696
2697
|
function PeekChar2() {
|
|
2697
2698
|
PeekChar2_instance = this;
|
|
2698
2699
|
NonBacktrackable.call(this, 'peek_char');
|
|
2699
|
-
this.
|
|
2700
|
+
this.p52_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```';
|
|
2700
2701
|
}
|
|
2701
|
-
protoOf(PeekChar2).
|
|
2702
|
-
return this.
|
|
2702
|
+
protoOf(PeekChar2).a23 = function () {
|
|
2703
|
+
return this.p52_1;
|
|
2703
2704
|
};
|
|
2704
|
-
protoOf(PeekChar2).
|
|
2705
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2706
|
-
IOPrimitiveUtils_getInstance().
|
|
2707
|
-
return IOPrimitiveUtils_getInstance().
|
|
2705
|
+
protoOf(PeekChar2).o33 = function (_this__u8e3s4, first, second) {
|
|
2706
|
+
var channel = IOPrimitiveUtils_getInstance().h4z(_this__u8e3s4, 0);
|
|
2707
|
+
IOPrimitiveUtils_getInstance().k50(_this__u8e3s4, 1);
|
|
2708
|
+
return IOPrimitiveUtils_getInstance().x51(_this__u8e3s4, channel, second);
|
|
2708
2709
|
};
|
|
2709
|
-
protoOf(PeekChar2).
|
|
2710
|
-
return this.
|
|
2710
|
+
protoOf(PeekChar2).t2s = function (_this__u8e3s4, first, second) {
|
|
2711
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
2711
2712
|
};
|
|
2712
2713
|
var PeekChar2_instance;
|
|
2713
2714
|
function PeekChar2_getInstance() {
|
|
@@ -2718,17 +2719,17 @@
|
|
|
2718
2719
|
function PeekCode1() {
|
|
2719
2720
|
PeekCode1_instance = this;
|
|
2720
2721
|
NonBacktrackable_0.call(this, 'peek_code');
|
|
2721
|
-
this.
|
|
2722
|
+
this.r52_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); so is a character beyond the Basic Multilingual Plane in the stream, which has no single UTF-16 code (`representation_error(character_code)`). 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```';
|
|
2722
2723
|
}
|
|
2723
|
-
protoOf(PeekCode1).
|
|
2724
|
-
return this.
|
|
2724
|
+
protoOf(PeekCode1).a23 = function () {
|
|
2725
|
+
return this.r52_1;
|
|
2725
2726
|
};
|
|
2726
|
-
protoOf(PeekCode1).
|
|
2727
|
-
IOPrimitiveUtils_getInstance().
|
|
2728
|
-
return IOPrimitiveUtils_getInstance().
|
|
2727
|
+
protoOf(PeekCode1).a33 = function (_this__u8e3s4, first) {
|
|
2728
|
+
IOPrimitiveUtils_getInstance().q50(_this__u8e3s4, 0);
|
|
2729
|
+
return IOPrimitiveUtils_getInstance().w51(_this__u8e3s4, IOPrimitiveUtils_getInstance().d4z(_this__u8e3s4), first);
|
|
2729
2730
|
};
|
|
2730
|
-
protoOf(PeekCode1).
|
|
2731
|
-
return this.
|
|
2731
|
+
protoOf(PeekCode1).i2w = function (_this__u8e3s4, first) {
|
|
2732
|
+
return this.a33(_this__u8e3s4, first);
|
|
2732
2733
|
};
|
|
2733
2734
|
var PeekCode1_instance;
|
|
2734
2735
|
function PeekCode1_getInstance() {
|
|
@@ -2739,18 +2740,18 @@
|
|
|
2739
2740
|
function PeekCode2() {
|
|
2740
2741
|
PeekCode2_instance = this;
|
|
2741
2742
|
NonBacktrackable.call(this, 'peek_code');
|
|
2742
|
-
this.
|
|
2743
|
+
this.t52_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); so is a character beyond the Basic Multilingual Plane in the stream, which has no single UTF-16 code (`representation_error(character_code)`). 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```';
|
|
2743
2744
|
}
|
|
2744
|
-
protoOf(PeekCode2).
|
|
2745
|
-
return this.
|
|
2745
|
+
protoOf(PeekCode2).a23 = function () {
|
|
2746
|
+
return this.t52_1;
|
|
2746
2747
|
};
|
|
2747
|
-
protoOf(PeekCode2).
|
|
2748
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2749
|
-
IOPrimitiveUtils_getInstance().
|
|
2750
|
-
return IOPrimitiveUtils_getInstance().
|
|
2748
|
+
protoOf(PeekCode2).o33 = function (_this__u8e3s4, first, second) {
|
|
2749
|
+
var channel = IOPrimitiveUtils_getInstance().h4z(_this__u8e3s4, 0);
|
|
2750
|
+
IOPrimitiveUtils_getInstance().q50(_this__u8e3s4, 1);
|
|
2751
|
+
return IOPrimitiveUtils_getInstance().w51(_this__u8e3s4, channel, second);
|
|
2751
2752
|
};
|
|
2752
|
-
protoOf(PeekCode2).
|
|
2753
|
-
return this.
|
|
2753
|
+
protoOf(PeekCode2).t2s = function (_this__u8e3s4, first, second) {
|
|
2754
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
2754
2755
|
};
|
|
2755
2756
|
var PeekCode2_instance;
|
|
2756
2757
|
function PeekCode2_getInstance() {
|
|
@@ -2761,16 +2762,16 @@
|
|
|
2761
2762
|
function PutByte1() {
|
|
2762
2763
|
PutByte1_instance = this;
|
|
2763
2764
|
NonBacktrackable_0.call(this, 'put_byte');
|
|
2764
|
-
this.
|
|
2765
|
+
this.v52_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```';
|
|
2765
2766
|
}
|
|
2766
|
-
protoOf(PutByte1).
|
|
2767
|
-
return this.
|
|
2767
|
+
protoOf(PutByte1).a23 = function () {
|
|
2768
|
+
return this.v52_1;
|
|
2768
2769
|
};
|
|
2769
|
-
protoOf(PutByte1).
|
|
2770
|
-
return Companion_getInstance_1().
|
|
2770
|
+
protoOf(PutByte1).a33 = function (_this__u8e3s4, first) {
|
|
2771
|
+
return Companion_getInstance_1().y2t(_this__u8e3s4);
|
|
2771
2772
|
};
|
|
2772
|
-
protoOf(PutByte1).
|
|
2773
|
-
return this.
|
|
2773
|
+
protoOf(PutByte1).i2w = function (_this__u8e3s4, first) {
|
|
2774
|
+
return this.a33(_this__u8e3s4, first);
|
|
2774
2775
|
};
|
|
2775
2776
|
var PutByte1_instance;
|
|
2776
2777
|
function PutByte1_getInstance() {
|
|
@@ -2781,16 +2782,16 @@
|
|
|
2781
2782
|
function PutByte2() {
|
|
2782
2783
|
PutByte2_instance = this;
|
|
2783
2784
|
NonBacktrackable.call(this, 'put_byte');
|
|
2784
|
-
this.
|
|
2785
|
+
this.x52_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```';
|
|
2785
2786
|
}
|
|
2786
|
-
protoOf(PutByte2).
|
|
2787
|
-
return this.
|
|
2787
|
+
protoOf(PutByte2).a23 = function () {
|
|
2788
|
+
return this.x52_1;
|
|
2788
2789
|
};
|
|
2789
|
-
protoOf(PutByte2).
|
|
2790
|
-
return Companion_getInstance_1().
|
|
2790
|
+
protoOf(PutByte2).o33 = function (_this__u8e3s4, first, second) {
|
|
2791
|
+
return Companion_getInstance_1().y2t(_this__u8e3s4);
|
|
2791
2792
|
};
|
|
2792
|
-
protoOf(PutByte2).
|
|
2793
|
-
return this.
|
|
2793
|
+
protoOf(PutByte2).t2s = function (_this__u8e3s4, first, second) {
|
|
2794
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
2794
2795
|
};
|
|
2795
2796
|
var PutByte2_instance;
|
|
2796
2797
|
function PutByte2_getInstance() {
|
|
@@ -2801,19 +2802,19 @@
|
|
|
2801
2802
|
function PutChar1() {
|
|
2802
2803
|
PutChar1_instance = this;
|
|
2803
2804
|
NonBacktrackable_0.call(this, 'put_char');
|
|
2804
|
-
this.
|
|
2805
|
+
this.z52_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```';
|
|
2805
2806
|
}
|
|
2806
|
-
protoOf(PutChar1).
|
|
2807
|
-
return this.
|
|
2807
|
+
protoOf(PutChar1).a23 = function () {
|
|
2808
|
+
return this.z52_1;
|
|
2808
2809
|
};
|
|
2809
|
-
protoOf(PutChar1).
|
|
2810
|
-
Companion_getInstance_1().
|
|
2810
|
+
protoOf(PutChar1).a33 = function (_this__u8e3s4, first) {
|
|
2811
|
+
Companion_getInstance_1().h2u(_this__u8e3s4, 0);
|
|
2811
2812
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2812
|
-
var tmp_0 = IOPrimitiveUtils_getInstance().
|
|
2813
|
-
return tmp.
|
|
2813
|
+
var tmp_0 = IOPrimitiveUtils_getInstance().k51(_this__u8e3s4);
|
|
2814
|
+
return tmp.v51(_this__u8e3s4, tmp_0, isInterface(first, Atom) ? first : THROW_CCE());
|
|
2814
2815
|
};
|
|
2815
|
-
protoOf(PutChar1).
|
|
2816
|
-
return this.
|
|
2816
|
+
protoOf(PutChar1).i2w = function (_this__u8e3s4, first) {
|
|
2817
|
+
return this.a33(_this__u8e3s4, first);
|
|
2817
2818
|
};
|
|
2818
2819
|
var PutChar1_instance;
|
|
2819
2820
|
function PutChar1_getInstance() {
|
|
@@ -2824,19 +2825,19 @@
|
|
|
2824
2825
|
function PutChar2() {
|
|
2825
2826
|
PutChar2_instance = this;
|
|
2826
2827
|
NonBacktrackable.call(this, 'put_char');
|
|
2827
|
-
this.
|
|
2828
|
+
this.b53_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```';
|
|
2828
2829
|
}
|
|
2829
|
-
protoOf(PutChar2).
|
|
2830
|
-
return this.
|
|
2830
|
+
protoOf(PutChar2).a23 = function () {
|
|
2831
|
+
return this.b53_1;
|
|
2831
2832
|
};
|
|
2832
|
-
protoOf(PutChar2).
|
|
2833
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2834
|
-
Companion_getInstance_1().
|
|
2833
|
+
protoOf(PutChar2).o33 = function (_this__u8e3s4, first, second) {
|
|
2834
|
+
var channel = IOPrimitiveUtils_getInstance().d50(_this__u8e3s4, 0);
|
|
2835
|
+
Companion_getInstance_1().h2u(_this__u8e3s4, 1);
|
|
2835
2836
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2836
|
-
return tmp.
|
|
2837
|
+
return tmp.v51(_this__u8e3s4, channel, isInterface(second, Atom) ? second : THROW_CCE());
|
|
2837
2838
|
};
|
|
2838
|
-
protoOf(PutChar2).
|
|
2839
|
-
return this.
|
|
2839
|
+
protoOf(PutChar2).t2s = function (_this__u8e3s4, first, second) {
|
|
2840
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
2840
2841
|
};
|
|
2841
2842
|
var PutChar2_instance;
|
|
2842
2843
|
function PutChar2_getInstance() {
|
|
@@ -2847,19 +2848,19 @@
|
|
|
2847
2848
|
function PutCode1() {
|
|
2848
2849
|
PutCode1_instance = this;
|
|
2849
2850
|
NonBacktrackable_0.call(this, 'put_code');
|
|
2850
|
-
this.
|
|
2851
|
+
this.d53_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```';
|
|
2851
2852
|
}
|
|
2852
|
-
protoOf(PutCode1).
|
|
2853
|
-
return this.
|
|
2853
|
+
protoOf(PutCode1).a23 = function () {
|
|
2854
|
+
return this.d53_1;
|
|
2854
2855
|
};
|
|
2855
|
-
protoOf(PutCode1).
|
|
2856
|
-
Companion_getInstance_1().
|
|
2856
|
+
protoOf(PutCode1).a33 = function (_this__u8e3s4, first) {
|
|
2857
|
+
Companion_getInstance_1().q2u(_this__u8e3s4, 0);
|
|
2857
2858
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2858
|
-
var tmp_0 = IOPrimitiveUtils_getInstance().
|
|
2859
|
-
return tmp.
|
|
2859
|
+
var tmp_0 = IOPrimitiveUtils_getInstance().k51(_this__u8e3s4);
|
|
2860
|
+
return tmp.u51(_this__u8e3s4, tmp_0, isInterface(first, Integer) ? first : THROW_CCE());
|
|
2860
2861
|
};
|
|
2861
|
-
protoOf(PutCode1).
|
|
2862
|
-
return this.
|
|
2862
|
+
protoOf(PutCode1).i2w = function (_this__u8e3s4, first) {
|
|
2863
|
+
return this.a33(_this__u8e3s4, first);
|
|
2863
2864
|
};
|
|
2864
2865
|
var PutCode1_instance;
|
|
2865
2866
|
function PutCode1_getInstance() {
|
|
@@ -2870,19 +2871,19 @@
|
|
|
2870
2871
|
function PutCode2() {
|
|
2871
2872
|
PutCode2_instance = this;
|
|
2872
2873
|
NonBacktrackable.call(this, 'put_code');
|
|
2873
|
-
this.
|
|
2874
|
+
this.f53_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```';
|
|
2874
2875
|
}
|
|
2875
|
-
protoOf(PutCode2).
|
|
2876
|
-
return this.
|
|
2876
|
+
protoOf(PutCode2).a23 = function () {
|
|
2877
|
+
return this.f53_1;
|
|
2877
2878
|
};
|
|
2878
|
-
protoOf(PutCode2).
|
|
2879
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2880
|
-
Companion_getInstance_1().
|
|
2879
|
+
protoOf(PutCode2).o33 = function (_this__u8e3s4, first, second) {
|
|
2880
|
+
var channel = IOPrimitiveUtils_getInstance().d50(_this__u8e3s4, 0);
|
|
2881
|
+
Companion_getInstance_1().q2u(_this__u8e3s4, 1);
|
|
2881
2882
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2882
|
-
return tmp.
|
|
2883
|
+
return tmp.u51(_this__u8e3s4, channel, isInterface(second, Integer) ? second : THROW_CCE());
|
|
2883
2884
|
};
|
|
2884
|
-
protoOf(PutCode2).
|
|
2885
|
-
return this.
|
|
2885
|
+
protoOf(PutCode2).t2s = function (_this__u8e3s4, first, second) {
|
|
2886
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
2886
2887
|
};
|
|
2887
2888
|
var PutCode2_instance;
|
|
2888
2889
|
function PutCode2_getInstance() {
|
|
@@ -2893,16 +2894,16 @@
|
|
|
2893
2894
|
function Read1() {
|
|
2894
2895
|
Read1_instance = this;
|
|
2895
2896
|
NonBacktrackable_0.call(this, 'read');
|
|
2896
|
-
this.
|
|
2897
|
+
this.h53_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```';
|
|
2897
2898
|
}
|
|
2898
|
-
protoOf(Read1).
|
|
2899
|
-
return this.
|
|
2899
|
+
protoOf(Read1).a23 = function () {
|
|
2900
|
+
return this.h53_1;
|
|
2900
2901
|
};
|
|
2901
|
-
protoOf(Read1).
|
|
2902
|
-
return IOPrimitiveUtils_getInstance().
|
|
2902
|
+
protoOf(Read1).a33 = function (_this__u8e3s4, first) {
|
|
2903
|
+
return IOPrimitiveUtils_getInstance().z51(_this__u8e3s4, IOPrimitiveUtils_getInstance().d4z(_this__u8e3s4), first);
|
|
2903
2904
|
};
|
|
2904
|
-
protoOf(Read1).
|
|
2905
|
-
return this.
|
|
2905
|
+
protoOf(Read1).i2w = function (_this__u8e3s4, first) {
|
|
2906
|
+
return this.a33(_this__u8e3s4, first);
|
|
2906
2907
|
};
|
|
2907
2908
|
var Read1_instance;
|
|
2908
2909
|
function Read1_getInstance() {
|
|
@@ -2913,17 +2914,17 @@
|
|
|
2913
2914
|
function Read2() {
|
|
2914
2915
|
Read2_instance = this;
|
|
2915
2916
|
NonBacktrackable.call(this, 'read');
|
|
2916
|
-
this.
|
|
2917
|
+
this.j53_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```';
|
|
2917
2918
|
}
|
|
2918
|
-
protoOf(Read2).
|
|
2919
|
-
return this.
|
|
2919
|
+
protoOf(Read2).a23 = function () {
|
|
2920
|
+
return this.j53_1;
|
|
2920
2921
|
};
|
|
2921
|
-
protoOf(Read2).
|
|
2922
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2923
|
-
return IOPrimitiveUtils_getInstance().
|
|
2922
|
+
protoOf(Read2).o33 = function (_this__u8e3s4, first, second) {
|
|
2923
|
+
var channel = IOPrimitiveUtils_getInstance().h4z(_this__u8e3s4, 0);
|
|
2924
|
+
return IOPrimitiveUtils_getInstance().z51(_this__u8e3s4, channel, second);
|
|
2924
2925
|
};
|
|
2925
|
-
protoOf(Read2).
|
|
2926
|
-
return this.
|
|
2926
|
+
protoOf(Read2).t2s = function (_this__u8e3s4, first, second) {
|
|
2927
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
2927
2928
|
};
|
|
2928
2929
|
var Read2_instance;
|
|
2929
2930
|
function Read2_getInstance() {
|
|
@@ -2934,16 +2935,16 @@
|
|
|
2934
2935
|
function ReadTerm2() {
|
|
2935
2936
|
ReadTerm2_instance = this;
|
|
2936
2937
|
NonBacktrackable.call(this, 'read_term');
|
|
2937
|
-
this.
|
|
2938
|
+
this.l53_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```";
|
|
2938
2939
|
}
|
|
2939
|
-
protoOf(ReadTerm2).
|
|
2940
|
-
return this.
|
|
2940
|
+
protoOf(ReadTerm2).a23 = function () {
|
|
2941
|
+
return this.l53_1;
|
|
2941
2942
|
};
|
|
2942
|
-
protoOf(ReadTerm2).
|
|
2943
|
-
return IOPrimitiveUtils_getInstance().
|
|
2943
|
+
protoOf(ReadTerm2).o33 = function (_this__u8e3s4, first, second) {
|
|
2944
|
+
return IOPrimitiveUtils_getInstance().y51(_this__u8e3s4, IOPrimitiveUtils_getInstance().d4z(_this__u8e3s4), first, true);
|
|
2944
2945
|
};
|
|
2945
|
-
protoOf(ReadTerm2).
|
|
2946
|
-
return this.
|
|
2946
|
+
protoOf(ReadTerm2).t2s = function (_this__u8e3s4, first, second) {
|
|
2947
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
2947
2948
|
};
|
|
2948
2949
|
var ReadTerm2_instance;
|
|
2949
2950
|
function ReadTerm2_getInstance() {
|
|
@@ -2954,17 +2955,17 @@
|
|
|
2954
2955
|
function ReadTerm3() {
|
|
2955
2956
|
ReadTerm3_instance = this;
|
|
2956
2957
|
NonBacktrackable_1.call(this, 'read_term');
|
|
2957
|
-
this.
|
|
2958
|
+
this.n53_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```";
|
|
2958
2959
|
}
|
|
2959
|
-
protoOf(ReadTerm3).
|
|
2960
|
-
return this.
|
|
2960
|
+
protoOf(ReadTerm3).a23 = function () {
|
|
2961
|
+
return this.n53_1;
|
|
2961
2962
|
};
|
|
2962
|
-
protoOf(ReadTerm3).
|
|
2963
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2964
|
-
return IOPrimitiveUtils_getInstance().
|
|
2963
|
+
protoOf(ReadTerm3).h38 = function (_this__u8e3s4, first, second, third) {
|
|
2964
|
+
var channel = IOPrimitiveUtils_getInstance().h4z(_this__u8e3s4, 0);
|
|
2965
|
+
return IOPrimitiveUtils_getInstance().y51(_this__u8e3s4, channel, second, true);
|
|
2965
2966
|
};
|
|
2966
|
-
protoOf(ReadTerm3).
|
|
2967
|
-
return this.
|
|
2967
|
+
protoOf(ReadTerm3).z2v = function (_this__u8e3s4, first, second, third) {
|
|
2968
|
+
return this.h38(_this__u8e3s4, first, second, third);
|
|
2968
2969
|
};
|
|
2969
2970
|
var ReadTerm3_instance;
|
|
2970
2971
|
function ReadTerm3_getInstance() {
|
|
@@ -2974,24 +2975,24 @@
|
|
|
2974
2975
|
}
|
|
2975
2976
|
function SetInput$computeOne$lambda($this_computeOne, $channel) {
|
|
2976
2977
|
return function ($this$replySuccess) {
|
|
2977
|
-
$this$replySuccess.
|
|
2978
|
+
$this$replySuccess.t2z($this_computeOne.context.p23().setCurrentChannel($channel));
|
|
2978
2979
|
return Unit_instance;
|
|
2979
2980
|
};
|
|
2980
2981
|
}
|
|
2981
2982
|
function SetInput() {
|
|
2982
2983
|
SetInput_instance = this;
|
|
2983
2984
|
NonBacktrackable_0.call(this, 'set_input');
|
|
2984
|
-
this.
|
|
2985
|
+
this.p53_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```';
|
|
2985
2986
|
}
|
|
2986
|
-
protoOf(SetInput).
|
|
2987
|
-
return this.
|
|
2987
|
+
protoOf(SetInput).a23 = function () {
|
|
2988
|
+
return this.p53_1;
|
|
2988
2989
|
};
|
|
2989
|
-
protoOf(SetInput).
|
|
2990
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2990
|
+
protoOf(SetInput).a33 = function (_this__u8e3s4, first) {
|
|
2991
|
+
var channel = IOPrimitiveUtils_getInstance().h4z(_this__u8e3s4, 0);
|
|
2991
2992
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetInput$computeOne$lambda(_this__u8e3s4, channel));
|
|
2992
2993
|
};
|
|
2993
|
-
protoOf(SetInput).
|
|
2994
|
-
return this.
|
|
2994
|
+
protoOf(SetInput).i2w = function (_this__u8e3s4, first) {
|
|
2995
|
+
return this.a33(_this__u8e3s4, first);
|
|
2995
2996
|
};
|
|
2996
2997
|
var SetInput_instance;
|
|
2997
2998
|
function SetInput_getInstance() {
|
|
@@ -3001,24 +3002,24 @@
|
|
|
3001
3002
|
}
|
|
3002
3003
|
function SetOutput$computeOne$lambda($this_computeOne, $channel) {
|
|
3003
3004
|
return function ($this$replySuccess) {
|
|
3004
|
-
$this$replySuccess.
|
|
3005
|
+
$this$replySuccess.w2z($this_computeOne.context.q23().setCurrentChannel($channel));
|
|
3005
3006
|
return Unit_instance;
|
|
3006
3007
|
};
|
|
3007
3008
|
}
|
|
3008
3009
|
function SetOutput() {
|
|
3009
3010
|
SetOutput_instance = this;
|
|
3010
3011
|
NonBacktrackable_0.call(this, 'set_output');
|
|
3011
|
-
this.
|
|
3012
|
+
this.r53_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```';
|
|
3012
3013
|
}
|
|
3013
|
-
protoOf(SetOutput).
|
|
3014
|
-
return this.
|
|
3014
|
+
protoOf(SetOutput).a23 = function () {
|
|
3015
|
+
return this.r53_1;
|
|
3015
3016
|
};
|
|
3016
|
-
protoOf(SetOutput).
|
|
3017
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3017
|
+
protoOf(SetOutput).a33 = function (_this__u8e3s4, first) {
|
|
3018
|
+
var channel = IOPrimitiveUtils_getInstance().d50(_this__u8e3s4, 0);
|
|
3018
3019
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetOutput$computeOne$lambda(_this__u8e3s4, channel));
|
|
3019
3020
|
};
|
|
3020
|
-
protoOf(SetOutput).
|
|
3021
|
-
return this.
|
|
3021
|
+
protoOf(SetOutput).i2w = function (_this__u8e3s4, first) {
|
|
3022
|
+
return this.a33(_this__u8e3s4, first);
|
|
3022
3023
|
};
|
|
3023
3024
|
var SetOutput_instance;
|
|
3024
3025
|
function SetOutput_getInstance() {
|
|
@@ -3029,36 +3030,36 @@
|
|
|
3029
3030
|
function SetTheory$setTheory$lambda($append, $solver) {
|
|
3030
3031
|
return function ($this$replySuccess) {
|
|
3031
3032
|
if ($append) {
|
|
3032
|
-
$this$replySuccess.
|
|
3033
|
-
$this$replySuccess.
|
|
3033
|
+
$this$replySuccess.g2z($solver.n23());
|
|
3034
|
+
$this$replySuccess.m2z($solver.o23());
|
|
3034
3035
|
} else {
|
|
3035
|
-
$this$replySuccess.
|
|
3036
|
-
$this$replySuccess.
|
|
3036
|
+
$this$replySuccess.e2z($solver.n23());
|
|
3037
|
+
$this$replySuccess.k2z($solver.o23());
|
|
3037
3038
|
}
|
|
3038
|
-
$this$replySuccess.
|
|
3039
|
-
$this$replySuccess.
|
|
3039
|
+
$this$replySuccess.r2z($solver.u23());
|
|
3040
|
+
$this$replySuccess.q2z($solver.m23());
|
|
3040
3041
|
return Unit_instance;
|
|
3041
3042
|
};
|
|
3042
3043
|
}
|
|
3043
3044
|
function SetTheory() {
|
|
3044
3045
|
SetTheory_instance = this;
|
|
3045
3046
|
NonBacktrackable_0.call(this, 'set_theory');
|
|
3046
|
-
this.
|
|
3047
|
+
this.s4z_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```";
|
|
3047
3048
|
}
|
|
3048
|
-
protoOf(SetTheory).
|
|
3049
|
-
return this.
|
|
3049
|
+
protoOf(SetTheory).a23 = function () {
|
|
3050
|
+
return this.s4z_1;
|
|
3050
3051
|
};
|
|
3051
|
-
protoOf(SetTheory).
|
|
3052
|
-
Companion_getInstance_1().
|
|
3053
|
-
return this.
|
|
3052
|
+
protoOf(SetTheory).a33 = function (_this__u8e3s4, first) {
|
|
3053
|
+
Companion_getInstance_1().f2u(_this__u8e3s4, 0);
|
|
3054
|
+
return this.s53(_this__u8e3s4, first.r14().f1(), false);
|
|
3054
3055
|
};
|
|
3055
|
-
protoOf(SetTheory).
|
|
3056
|
-
return this.
|
|
3056
|
+
protoOf(SetTheory).i2w = function (_this__u8e3s4, first) {
|
|
3057
|
+
return this.a33(_this__u8e3s4, first);
|
|
3057
3058
|
};
|
|
3058
|
-
protoOf(SetTheory).
|
|
3059
|
+
protoOf(SetTheory).s53 = function (_this__u8e3s4, text, append) {
|
|
3059
3060
|
try {
|
|
3060
|
-
var theory = Companion_instance_11.withOperatorSet(_this__u8e3s4.context.
|
|
3061
|
-
var solver = _this__u8e3s4.context.createMutableSolver(VOID, VOID, VOID, Companion_instance_12.empty(_this__u8e3s4.context.
|
|
3061
|
+
var theory = Companion_instance_11.withOperatorSet(_this__u8e3s4.context.u23()).parseTheoryWithDefaultUnificator(text);
|
|
3062
|
+
var solver = _this__u8e3s4.context.createMutableSolver(VOID, VOID, VOID, Companion_instance_12.empty(_this__u8e3s4.context.z1u()), Companion_instance_13.empty(_this__u8e3s4.context.z1u()));
|
|
3062
3063
|
solver.loadStaticKb(theory);
|
|
3063
3064
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetTheory$setTheory$lambda(append, solver));
|
|
3064
3065
|
} catch ($p) {
|
|
@@ -3092,9 +3093,9 @@
|
|
|
3092
3093
|
}
|
|
3093
3094
|
}
|
|
3094
3095
|
};
|
|
3095
|
-
protoOf(SetTheory).
|
|
3096
|
+
protoOf(SetTheory).t4z = function (_this__u8e3s4, text, append, $super) {
|
|
3096
3097
|
append = append === VOID ? true : append;
|
|
3097
|
-
return $super === VOID ? this.
|
|
3098
|
+
return $super === VOID ? this.s53(_this__u8e3s4, text, append) : $super.s53.call(this, _this__u8e3s4, text, append);
|
|
3098
3099
|
};
|
|
3099
3100
|
var SetTheory_instance;
|
|
3100
3101
|
function SetTheory_getInstance() {
|
|
@@ -3107,12 +3108,12 @@
|
|
|
3107
3108
|
}
|
|
3108
3109
|
function StreamProperty$computeAll$lambda_0($this_computeAll) {
|
|
3109
3110
|
return function (it) {
|
|
3110
|
-
return to(it.
|
|
3111
|
+
return to(it.n28(), IOPrimitiveUtils_getInstance().j51($this_computeAll, it));
|
|
3111
3112
|
};
|
|
3112
3113
|
}
|
|
3113
3114
|
function StreamProperty$computeAll$lambda_1(_destruct__k2r9zo) {
|
|
3114
|
-
var streamTerm = _destruct__k2r9zo.
|
|
3115
|
-
var properties = _destruct__k2r9zo.
|
|
3115
|
+
var streamTerm = _destruct__k2r9zo.cf();
|
|
3116
|
+
var properties = _destruct__k2r9zo.df();
|
|
3116
3117
|
return map(properties, StreamProperty$computeAll$lambda$lambda(streamTerm));
|
|
3117
3118
|
}
|
|
3118
3119
|
function StreamProperty$computeAll$lambda$lambda($streamTerm) {
|
|
@@ -3122,13 +3123,13 @@
|
|
|
3122
3123
|
}
|
|
3123
3124
|
function StreamProperty$computeAll$lambda_2($this_computeAll, $first, $second) {
|
|
3124
3125
|
return function (_destruct__k2r9zo) {
|
|
3125
|
-
var streamTerm = _destruct__k2r9zo.
|
|
3126
|
-
var property = _destruct__k2r9zo.
|
|
3127
|
-
return Companion_getInstance_1().
|
|
3126
|
+
var streamTerm = _destruct__k2r9zo.cf();
|
|
3127
|
+
var property = _destruct__k2r9zo.df();
|
|
3128
|
+
return Companion_getInstance_1().q2t($this_computeAll, Companion_getInstance_1().p2t($this_computeAll, $first, streamTerm), Companion_getInstance_1().p2t($this_computeAll, $second, property));
|
|
3128
3129
|
};
|
|
3129
3130
|
}
|
|
3130
3131
|
function StreamProperty$computeAll$lambda_3(it) {
|
|
3131
|
-
return it.
|
|
3132
|
+
return it.s19();
|
|
3132
3133
|
}
|
|
3133
3134
|
function StreamProperty$computeAll$lambda_4($this_computeAll) {
|
|
3134
3135
|
return function (it) {
|
|
@@ -3138,15 +3139,18 @@
|
|
|
3138
3139
|
function StreamProperty() {
|
|
3139
3140
|
StreamProperty_instance = this;
|
|
3140
3141
|
BinaryRelation.call(this, 'stream_property');
|
|
3141
|
-
this.
|
|
3142
|
+
this.u53_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```';
|
|
3142
3143
|
}
|
|
3143
|
-
protoOf(StreamProperty).
|
|
3144
|
-
return
|
|
3144
|
+
protoOf(StreamProperty).v2s = function () {
|
|
3145
|
+
return Alternatives_LOOKAHEAD_SAFE_getInstance();
|
|
3145
3146
|
};
|
|
3146
|
-
protoOf(StreamProperty).
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3147
|
+
protoOf(StreamProperty).a23 = function () {
|
|
3148
|
+
return this.u53_1;
|
|
3149
|
+
};
|
|
3150
|
+
protoOf(StreamProperty).k33 = function (_this__u8e3s4, first, second) {
|
|
3151
|
+
IOPrimitiveUtils_getInstance().y4z(_this__u8e3s4, 0);
|
|
3152
|
+
IOPrimitiveUtils_getInstance().q51(_this__u8e3s4, 1);
|
|
3153
|
+
var tmp = sequenceOf([_this__u8e3s4.context.p23(), _this__u8e3s4.context.q23()]);
|
|
3150
3154
|
var tmp_0 = distinct(flatMap(tmp, StreamProperty$computeAll$lambda));
|
|
3151
3155
|
var tmp_1 = map(tmp_0, StreamProperty$computeAll$lambda_0(_this__u8e3s4));
|
|
3152
3156
|
var tmp_2 = flatMap(tmp_1, StreamProperty$computeAll$lambda_1);
|
|
@@ -3154,8 +3158,8 @@
|
|
|
3154
3158
|
var tmp_4 = filter(tmp_3, StreamProperty$computeAll$lambda_3);
|
|
3155
3159
|
return map(tmp_4, StreamProperty$computeAll$lambda_4(_this__u8e3s4));
|
|
3156
3160
|
};
|
|
3157
|
-
protoOf(StreamProperty).
|
|
3158
|
-
return this.
|
|
3161
|
+
protoOf(StreamProperty).w2s = function (_this__u8e3s4, first, second) {
|
|
3162
|
+
return this.k33(_this__u8e3s4, first, second);
|
|
3159
3163
|
};
|
|
3160
3164
|
var StreamProperty_instance;
|
|
3161
3165
|
function StreamProperty_getInstance() {
|
|
@@ -3166,17 +3170,17 @@
|
|
|
3166
3170
|
function Write2() {
|
|
3167
3171
|
Write2_instance = this;
|
|
3168
3172
|
NonBacktrackable.call(this, 'write');
|
|
3169
|
-
this.
|
|
3173
|
+
this.w53_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```";
|
|
3170
3174
|
}
|
|
3171
|
-
protoOf(Write2).
|
|
3172
|
-
return this.
|
|
3175
|
+
protoOf(Write2).a23 = function () {
|
|
3176
|
+
return this.w53_1;
|
|
3173
3177
|
};
|
|
3174
|
-
protoOf(Write2).
|
|
3175
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3176
|
-
return IOPrimitiveUtils_getInstance().
|
|
3178
|
+
protoOf(Write2).o33 = function (_this__u8e3s4, first, second) {
|
|
3179
|
+
var channel = IOPrimitiveUtils_getInstance().d50(_this__u8e3s4, 0);
|
|
3180
|
+
return IOPrimitiveUtils_getInstance().t51(_this__u8e3s4, channel, second, Companion_instance_8.default(_this__u8e3s4.context.u23()));
|
|
3177
3181
|
};
|
|
3178
|
-
protoOf(Write2).
|
|
3179
|
-
return this.
|
|
3182
|
+
protoOf(Write2).t2s = function (_this__u8e3s4, first, second) {
|
|
3183
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
3180
3184
|
};
|
|
3181
3185
|
var Write2_instance;
|
|
3182
3186
|
function Write2_getInstance() {
|
|
@@ -3187,16 +3191,16 @@
|
|
|
3187
3191
|
function WriteCanonical1() {
|
|
3188
3192
|
WriteCanonical1_instance = this;
|
|
3189
3193
|
NonBacktrackable_0.call(this, 'write_canonical');
|
|
3190
|
-
this.
|
|
3194
|
+
this.y53_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```";
|
|
3191
3195
|
}
|
|
3192
|
-
protoOf(WriteCanonical1).
|
|
3193
|
-
return this.
|
|
3196
|
+
protoOf(WriteCanonical1).a23 = function () {
|
|
3197
|
+
return this.y53_1;
|
|
3194
3198
|
};
|
|
3195
|
-
protoOf(WriteCanonical1).
|
|
3196
|
-
return IOPrimitiveUtils_getInstance().
|
|
3199
|
+
protoOf(WriteCanonical1).a33 = function (_this__u8e3s4, first) {
|
|
3200
|
+
return IOPrimitiveUtils_getInstance().t51(_this__u8e3s4, IOPrimitiveUtils_getInstance().k51(_this__u8e3s4), first, Companion_instance_8.canonical());
|
|
3197
3201
|
};
|
|
3198
|
-
protoOf(WriteCanonical1).
|
|
3199
|
-
return this.
|
|
3202
|
+
protoOf(WriteCanonical1).i2w = function (_this__u8e3s4, first) {
|
|
3203
|
+
return this.a33(_this__u8e3s4, first);
|
|
3200
3204
|
};
|
|
3201
3205
|
var WriteCanonical1_instance;
|
|
3202
3206
|
function WriteCanonical1_getInstance() {
|
|
@@ -3207,17 +3211,17 @@
|
|
|
3207
3211
|
function WriteCanonical2() {
|
|
3208
3212
|
WriteCanonical2_instance = this;
|
|
3209
3213
|
NonBacktrackable.call(this, 'write_canonical');
|
|
3210
|
-
this.
|
|
3214
|
+
this.a54_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```";
|
|
3211
3215
|
}
|
|
3212
|
-
protoOf(WriteCanonical2).
|
|
3213
|
-
return this.
|
|
3216
|
+
protoOf(WriteCanonical2).a23 = function () {
|
|
3217
|
+
return this.a54_1;
|
|
3214
3218
|
};
|
|
3215
|
-
protoOf(WriteCanonical2).
|
|
3216
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3217
|
-
return IOPrimitiveUtils_getInstance().
|
|
3219
|
+
protoOf(WriteCanonical2).o33 = function (_this__u8e3s4, first, second) {
|
|
3220
|
+
var channel = IOPrimitiveUtils_getInstance().d50(_this__u8e3s4, 0);
|
|
3221
|
+
return IOPrimitiveUtils_getInstance().t51(_this__u8e3s4, channel, second, Companion_instance_8.canonical());
|
|
3218
3222
|
};
|
|
3219
|
-
protoOf(WriteCanonical2).
|
|
3220
|
-
return this.
|
|
3223
|
+
protoOf(WriteCanonical2).t2s = function (_this__u8e3s4, first, second) {
|
|
3224
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
3221
3225
|
};
|
|
3222
3226
|
var WriteCanonical2_instance;
|
|
3223
3227
|
function WriteCanonical2_getInstance() {
|
|
@@ -3228,16 +3232,16 @@
|
|
|
3228
3232
|
function WriteEq1() {
|
|
3229
3233
|
WriteEq1_instance = this;
|
|
3230
3234
|
NonBacktrackable_0.call(this, 'writeq');
|
|
3231
|
-
this.
|
|
3235
|
+
this.c54_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 (including those defined at runtime) are written in operator notation, and `'$VAR'(N)` terms are written as variable letters. It succeeds deterministically. 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```";
|
|
3232
3236
|
}
|
|
3233
|
-
protoOf(WriteEq1).
|
|
3234
|
-
return this.
|
|
3237
|
+
protoOf(WriteEq1).a23 = function () {
|
|
3238
|
+
return this.c54_1;
|
|
3235
3239
|
};
|
|
3236
|
-
protoOf(WriteEq1).
|
|
3237
|
-
return IOPrimitiveUtils_getInstance().
|
|
3240
|
+
protoOf(WriteEq1).a33 = function (_this__u8e3s4, first) {
|
|
3241
|
+
return IOPrimitiveUtils_getInstance().t51(_this__u8e3s4, IOPrimitiveUtils_getInstance().k51(_this__u8e3s4), first, Companion_instance_8.readable(_this__u8e3s4.context.u23()));
|
|
3238
3242
|
};
|
|
3239
|
-
protoOf(WriteEq1).
|
|
3240
|
-
return this.
|
|
3243
|
+
protoOf(WriteEq1).i2w = function (_this__u8e3s4, first) {
|
|
3244
|
+
return this.a33(_this__u8e3s4, first);
|
|
3241
3245
|
};
|
|
3242
3246
|
var WriteEq1_instance;
|
|
3243
3247
|
function WriteEq1_getInstance() {
|
|
@@ -3248,17 +3252,17 @@
|
|
|
3248
3252
|
function WriteEq2() {
|
|
3249
3253
|
WriteEq2_instance = this;
|
|
3250
3254
|
NonBacktrackable.call(this, 'writeq');
|
|
3251
|
-
this.
|
|
3255
|
+
this.e54_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, writing operators (including those defined at runtime) in operator notation, 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?- 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```";
|
|
3252
3256
|
}
|
|
3253
|
-
protoOf(WriteEq2).
|
|
3254
|
-
return this.
|
|
3257
|
+
protoOf(WriteEq2).a23 = function () {
|
|
3258
|
+
return this.e54_1;
|
|
3255
3259
|
};
|
|
3256
|
-
protoOf(WriteEq2).
|
|
3257
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3258
|
-
return IOPrimitiveUtils_getInstance().
|
|
3260
|
+
protoOf(WriteEq2).o33 = function (_this__u8e3s4, first, second) {
|
|
3261
|
+
var channel = IOPrimitiveUtils_getInstance().d50(_this__u8e3s4, 0);
|
|
3262
|
+
return IOPrimitiveUtils_getInstance().t51(_this__u8e3s4, channel, second, Companion_instance_8.readable(_this__u8e3s4.context.u23()));
|
|
3259
3263
|
};
|
|
3260
|
-
protoOf(WriteEq2).
|
|
3261
|
-
return this.
|
|
3264
|
+
protoOf(WriteEq2).t2s = function (_this__u8e3s4, first, second) {
|
|
3265
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
3262
3266
|
};
|
|
3263
3267
|
var WriteEq2_instance;
|
|
3264
3268
|
function WriteEq2_getInstance() {
|
|
@@ -3269,17 +3273,17 @@
|
|
|
3269
3273
|
function WriteTerm2() {
|
|
3270
3274
|
WriteTerm2_instance = this;
|
|
3271
3275
|
NonBacktrackable.call(this, 'write_term');
|
|
3272
|
-
this.
|
|
3276
|
+
this.g54_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```";
|
|
3273
3277
|
}
|
|
3274
|
-
protoOf(WriteTerm2).
|
|
3275
|
-
return this.
|
|
3278
|
+
protoOf(WriteTerm2).a23 = function () {
|
|
3279
|
+
return this.g54_1;
|
|
3276
3280
|
};
|
|
3277
|
-
protoOf(WriteTerm2).
|
|
3278
|
-
var formatter = IOPrimitiveUtils_getInstance().
|
|
3279
|
-
return IOPrimitiveUtils_getInstance().
|
|
3281
|
+
protoOf(WriteTerm2).o33 = function (_this__u8e3s4, first, second) {
|
|
3282
|
+
var formatter = IOPrimitiveUtils_getInstance().p51(_this__u8e3s4, 1);
|
|
3283
|
+
return IOPrimitiveUtils_getInstance().t51(_this__u8e3s4, IOPrimitiveUtils_getInstance().k51(_this__u8e3s4), first, formatter);
|
|
3280
3284
|
};
|
|
3281
|
-
protoOf(WriteTerm2).
|
|
3282
|
-
return this.
|
|
3285
|
+
protoOf(WriteTerm2).t2s = function (_this__u8e3s4, first, second) {
|
|
3286
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
3283
3287
|
};
|
|
3284
3288
|
var WriteTerm2_instance;
|
|
3285
3289
|
function WriteTerm2_getInstance() {
|
|
@@ -3290,18 +3294,18 @@
|
|
|
3290
3294
|
function WriteTerm3() {
|
|
3291
3295
|
WriteTerm3_instance = this;
|
|
3292
3296
|
NonBacktrackable_1.call(this, 'write_term');
|
|
3293
|
-
this.
|
|
3297
|
+
this.i54_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```";
|
|
3294
3298
|
}
|
|
3295
|
-
protoOf(WriteTerm3).
|
|
3296
|
-
return this.
|
|
3299
|
+
protoOf(WriteTerm3).a23 = function () {
|
|
3300
|
+
return this.i54_1;
|
|
3297
3301
|
};
|
|
3298
|
-
protoOf(WriteTerm3).
|
|
3299
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3300
|
-
var formatter = IOPrimitiveUtils_getInstance().
|
|
3301
|
-
return IOPrimitiveUtils_getInstance().
|
|
3302
|
+
protoOf(WriteTerm3).h38 = function (_this__u8e3s4, first, second, third) {
|
|
3303
|
+
var channel = IOPrimitiveUtils_getInstance().d50(_this__u8e3s4, 0);
|
|
3304
|
+
var formatter = IOPrimitiveUtils_getInstance().p51(_this__u8e3s4, 2);
|
|
3305
|
+
return IOPrimitiveUtils_getInstance().t51(_this__u8e3s4, channel, second, formatter);
|
|
3302
3306
|
};
|
|
3303
|
-
protoOf(WriteTerm3).
|
|
3304
|
-
return this.
|
|
3307
|
+
protoOf(WriteTerm3).z2v = function (_this__u8e3s4, first, second, third) {
|
|
3308
|
+
return this.h38(_this__u8e3s4, first, second, third);
|
|
3305
3309
|
};
|
|
3306
3310
|
var WriteTerm3_instance;
|
|
3307
3311
|
function WriteTerm3_getInstance() {
|
|
@@ -3327,10 +3331,10 @@
|
|
|
3327
3331
|
if (removeSuffix(parsed.protocol, ':').length === 1) {
|
|
3328
3332
|
throw InvalidUrlException_init_$Create$('Invalid URL: ' + url);
|
|
3329
3333
|
}
|
|
3330
|
-
$this.
|
|
3331
|
-
$this.
|
|
3332
|
-
$this.
|
|
3333
|
-
$this.
|
|
3334
|
+
$this.k54_1 = removeSuffix(parsed.protocol, ':');
|
|
3335
|
+
$this.l54_1 = parsed.hostname;
|
|
3336
|
+
$this.m54_1 = parsed.pathname;
|
|
3337
|
+
$this.n54_1 = toIntOrNull(parsed.port);
|
|
3334
3338
|
var tmp_1 = $this;
|
|
3335
3339
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
3336
3340
|
var this_0 = removePrefix(parsed.search, '?');
|
|
@@ -3341,8 +3345,8 @@
|
|
|
3341
3345
|
} else {
|
|
3342
3346
|
tmp_2 = this_0;
|
|
3343
3347
|
}
|
|
3344
|
-
tmp_1.
|
|
3345
|
-
$this.
|
|
3348
|
+
tmp_1.o54_1 = tmp_2;
|
|
3349
|
+
$this.j54_1 = url;
|
|
3346
3350
|
return $this;
|
|
3347
3351
|
}
|
|
3348
3352
|
function JsUrl_init_$Create$(url) {
|
|
@@ -3354,12 +3358,12 @@
|
|
|
3354
3358
|
path = path === VOID ? '' : path;
|
|
3355
3359
|
query = query === VOID ? null : query;
|
|
3356
3360
|
JsUrl.call($this);
|
|
3357
|
-
$this.
|
|
3358
|
-
$this.
|
|
3359
|
-
$this.
|
|
3360
|
-
$this.
|
|
3361
|
-
$this.
|
|
3362
|
-
$this.
|
|
3361
|
+
$this.k54_1 = protocol;
|
|
3362
|
+
$this.l54_1 = host;
|
|
3363
|
+
$this.n54_1 = port;
|
|
3364
|
+
$this.m54_1 = path;
|
|
3365
|
+
$this.o54_1 = query;
|
|
3366
|
+
$this.j54_1 = Companion_getInstance_9().p4x(protocol, host, port, path, query);
|
|
3363
3367
|
return $this;
|
|
3364
3368
|
}
|
|
3365
3369
|
function JsUrl_init_$Create$_0(protocol, host, port, path, query) {
|
|
@@ -3369,7 +3373,7 @@
|
|
|
3369
3373
|
var tmp;
|
|
3370
3374
|
try {
|
|
3371
3375
|
// Inline function 'okio.use' call
|
|
3372
|
-
var this_0 = buffer(LocalFileSystem_getInstance().
|
|
3376
|
+
var this_0 = buffer(LocalFileSystem_getInstance().v4t(toLocalPath($this)));
|
|
3373
3377
|
var thrown = null;
|
|
3374
3378
|
var tmp_0;
|
|
3375
3379
|
try {
|
|
@@ -3421,53 +3425,53 @@
|
|
|
3421
3425
|
return tmp;
|
|
3422
3426
|
}
|
|
3423
3427
|
function JsUrl$readAsText$lambda(it) {
|
|
3424
|
-
return it.
|
|
3428
|
+
return it.n4u();
|
|
3425
3429
|
}
|
|
3426
3430
|
function JsUrl$readAsByteArray$lambda(it) {
|
|
3427
|
-
return it.
|
|
3431
|
+
return it.q4u();
|
|
3428
3432
|
}
|
|
3429
|
-
protoOf(JsUrl).
|
|
3430
|
-
return this.
|
|
3433
|
+
protoOf(JsUrl).q4x = function () {
|
|
3434
|
+
return this.k54_1;
|
|
3431
3435
|
};
|
|
3432
|
-
protoOf(JsUrl).
|
|
3433
|
-
return this.
|
|
3436
|
+
protoOf(JsUrl).r4x = function () {
|
|
3437
|
+
return this.l54_1;
|
|
3434
3438
|
};
|
|
3435
|
-
protoOf(JsUrl).
|
|
3436
|
-
return this.
|
|
3439
|
+
protoOf(JsUrl).y3e = function () {
|
|
3440
|
+
return this.m54_1;
|
|
3437
3441
|
};
|
|
3438
|
-
protoOf(JsUrl).
|
|
3439
|
-
return this.
|
|
3442
|
+
protoOf(JsUrl).r3g = function () {
|
|
3443
|
+
return this.n54_1;
|
|
3440
3444
|
};
|
|
3441
|
-
protoOf(JsUrl).
|
|
3442
|
-
return this.
|
|
3445
|
+
protoOf(JsUrl).j25 = function () {
|
|
3446
|
+
return this.o54_1;
|
|
3443
3447
|
};
|
|
3444
|
-
protoOf(JsUrl).
|
|
3448
|
+
protoOf(JsUrl).p54 = function () {
|
|
3445
3449
|
var tmp;
|
|
3446
|
-
if (this.
|
|
3450
|
+
if (this.s4x() && get_isNode()) {
|
|
3447
3451
|
tmp = readLocalFile(this, JsUrl$readAsText$lambda);
|
|
3448
|
-
} else if (this.
|
|
3449
|
-
tmp = readText(this.
|
|
3452
|
+
} else if (this.s4x()) {
|
|
3453
|
+
tmp = readText(this.m54_1);
|
|
3450
3454
|
} else {
|
|
3451
|
-
tmp = fetch(this.
|
|
3455
|
+
tmp = fetch(this.j54_1, 'UTF-8');
|
|
3452
3456
|
}
|
|
3453
3457
|
return tmp;
|
|
3454
3458
|
};
|
|
3455
3459
|
protoOf(JsUrl).readAsText = function () {
|
|
3456
|
-
return this.
|
|
3460
|
+
return this.p54();
|
|
3457
3461
|
};
|
|
3458
|
-
protoOf(JsUrl).
|
|
3462
|
+
protoOf(JsUrl).q54 = function () {
|
|
3459
3463
|
var tmp;
|
|
3460
|
-
if (this.
|
|
3464
|
+
if (this.s4x() && get_isNode()) {
|
|
3461
3465
|
tmp = readLocalFile(this, JsUrl$readAsByteArray$lambda);
|
|
3462
|
-
} else if (this.
|
|
3463
|
-
tmp = readBin(this.
|
|
3466
|
+
} else if (this.s4x()) {
|
|
3467
|
+
tmp = readBin(this.m54_1);
|
|
3464
3468
|
} else {
|
|
3465
|
-
tmp = toByteArray(fetch(this.
|
|
3469
|
+
tmp = toByteArray(fetch(this.j54_1));
|
|
3466
3470
|
}
|
|
3467
3471
|
return tmp;
|
|
3468
3472
|
};
|
|
3469
3473
|
protoOf(JsUrl).readAsByteArray = function () {
|
|
3470
|
-
return this.
|
|
3474
|
+
return this.q54();
|
|
3471
3475
|
};
|
|
3472
3476
|
protoOf(JsUrl).equals = function (other) {
|
|
3473
3477
|
if (this === other)
|
|
@@ -3476,15 +3480,15 @@
|
|
|
3476
3480
|
return false;
|
|
3477
3481
|
if (!(other instanceof JsUrl))
|
|
3478
3482
|
THROW_CCE();
|
|
3479
|
-
if (!(this.
|
|
3483
|
+
if (!(this.j54_1 === other.j54_1))
|
|
3480
3484
|
return false;
|
|
3481
3485
|
return true;
|
|
3482
3486
|
};
|
|
3483
3487
|
protoOf(JsUrl).hashCode = function () {
|
|
3484
|
-
return getStringHashCode(this.
|
|
3488
|
+
return getStringHashCode(this.j54_1);
|
|
3485
3489
|
};
|
|
3486
3490
|
protoOf(JsUrl).toString = function () {
|
|
3487
|
-
return this.
|
|
3491
|
+
return this.j54_1;
|
|
3488
3492
|
};
|
|
3489
3493
|
function JsUrl() {
|
|
3490
3494
|
}
|
|
@@ -3499,7 +3503,7 @@
|
|
|
3499
3503
|
var REQUEST$delegate;
|
|
3500
3504
|
function get_isNode() {
|
|
3501
3505
|
_init_properties_RemoteAndBrowserIO_kt__6j78jn();
|
|
3502
|
-
return !Info_getInstance().
|
|
3506
|
+
return !Info_getInstance().h12().equals(Platform_BROWSER_getInstance());
|
|
3503
3507
|
}
|
|
3504
3508
|
function readText(path) {
|
|
3505
3509
|
_init_properties_RemoteAndBrowserIO_kt__6j78jn();
|
|
@@ -3571,7 +3575,7 @@
|
|
|
3571
3575
|
function _get_REQUEST_$ref_g5y4c1() {
|
|
3572
3576
|
return constructCallableReference(function () {
|
|
3573
3577
|
return get_REQUEST();
|
|
3574
|
-
}, 0, 0,
|
|
3578
|
+
}, 0, 0, 80);
|
|
3575
3579
|
}
|
|
3576
3580
|
var properties_initialized_RemoteAndBrowserIO_kt_w2uybl;
|
|
3577
3581
|
function _init_properties_RemoteAndBrowserIO_kt__6j78jn() {
|
|
@@ -3597,7 +3601,7 @@
|
|
|
3597
3601
|
function openInputChannel(_this__u8e3s4) {
|
|
3598
3602
|
_init_properties_UrlUtilsJs_kt__dw3tit();
|
|
3599
3603
|
var tmp;
|
|
3600
|
-
if (_this__u8e3s4.
|
|
3604
|
+
if (_this__u8e3s4.s4x() && get_isNode()) {
|
|
3601
3605
|
tmp = wrappingIOException(openInputChannel$lambda(_this__u8e3s4));
|
|
3602
3606
|
} else {
|
|
3603
3607
|
tmp = Companion_instance.ofString(_this__u8e3s4.readAsText());
|
|
@@ -3607,7 +3611,7 @@
|
|
|
3607
3611
|
function openOutputChannel(_this__u8e3s4, append) {
|
|
3608
3612
|
append = append === VOID ? false : append;
|
|
3609
3613
|
_init_properties_UrlUtilsJs_kt__dw3tit();
|
|
3610
|
-
if (!_this__u8e3s4.
|
|
3614
|
+
if (!_this__u8e3s4.s4x() || !get_isNode()) {
|
|
3611
3615
|
throw IOException_init_$Create$('Writing not supported for ' + toString(_this__u8e3s4));
|
|
3612
3616
|
}
|
|
3613
3617
|
var path = toLocalPath(_this__u8e3s4);
|
|
@@ -3651,12 +3655,12 @@
|
|
|
3651
3655
|
try {
|
|
3652
3656
|
var tmp_0 = Companion_getInstance_7();
|
|
3653
3657
|
var tmp_1 = get_FILE_URL_TO_PATH()(toString(_this__u8e3s4));
|
|
3654
|
-
tmp = tmp_0.
|
|
3658
|
+
tmp = tmp_0.t4t((!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : THROW_CCE());
|
|
3655
3659
|
} catch ($p) {
|
|
3656
3660
|
var tmp_2;
|
|
3657
3661
|
if ($p instanceof Error) {
|
|
3658
3662
|
var _unused_var__etf5q3 = $p;
|
|
3659
|
-
tmp_2 = Companion_getInstance_7().
|
|
3663
|
+
tmp_2 = Companion_getInstance_7().t4t(_this__u8e3s4.y3e());
|
|
3660
3664
|
} else {
|
|
3661
3665
|
throw $p;
|
|
3662
3666
|
}
|
|
@@ -3671,16 +3675,16 @@
|
|
|
3671
3675
|
function _get_FILE_URL_TO_PATH_$ref_kwvzgc() {
|
|
3672
3676
|
return constructCallableReference(function () {
|
|
3673
3677
|
return get_FILE_URL_TO_PATH();
|
|
3674
|
-
}, 0, 0,
|
|
3678
|
+
}, 0, 0, 81);
|
|
3675
3679
|
}
|
|
3676
3680
|
function openInputChannel$lambda($this_openInputChannel) {
|
|
3677
3681
|
return function () {
|
|
3678
|
-
return new SourceInputChannel(buffer(LocalFileSystem_getInstance().
|
|
3682
|
+
return new SourceInputChannel(buffer(LocalFileSystem_getInstance().v4t(toLocalPath($this_openInputChannel))));
|
|
3679
3683
|
};
|
|
3680
3684
|
}
|
|
3681
3685
|
function openOutputChannel$lambda($append, $path) {
|
|
3682
3686
|
return function () {
|
|
3683
|
-
var sink = $append ? LocalFileSystem_getInstance().
|
|
3687
|
+
var sink = $append ? LocalFileSystem_getInstance().j4x($path) : LocalFileSystem_getInstance().i4x($path);
|
|
3684
3688
|
return new SinkOutputChannel(buffer_0(sink));
|
|
3685
3689
|
};
|
|
3686
3690
|
}
|
|
@@ -3695,8 +3699,8 @@
|
|
|
3695
3699
|
//region block: post-declaration
|
|
3696
3700
|
protoOf(JsUrl).resolve = resolve;
|
|
3697
3701
|
protoOf(JsUrl).div = div;
|
|
3698
|
-
protoOf(JsUrl).
|
|
3699
|
-
protoOf(JsUrl).
|
|
3702
|
+
protoOf(JsUrl).s4x = get_isFile;
|
|
3703
|
+
protoOf(JsUrl).t4x = get_isHttp;
|
|
3700
3704
|
//endregion
|
|
3701
3705
|
//region block: exports
|
|
3702
3706
|
_.$_$ = _.$_$ || {};
|