@flock/wirespec 0.9.18 → 0.9.20
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/clikt-clikt.js +1122 -1122
- package/colormath-root-colormath.js +331 -331
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-rgxgen.js +1760 -1760
- package/markdown.js +1785 -1785
- package/mordant-mordant.js +1486 -1486
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +27 -17
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +215 -215
- package/wirespec-src-converter-openapi.js +163 -163
- package/wirespec-src-plugin-arguments.js +72 -72
- package/wirespec-src-plugin-cli.js +103 -103
- package/wirespec-src-plugin-npm.js +2 -2
- package/wirespec-src-tools-generator.js +9 -9
package/package.json
CHANGED
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
}
|
|
402
402
|
function WirespecSpec() {
|
|
403
403
|
WirespecSpec_instance = this;
|
|
404
|
-
this.v20_1 = listOf([to(Regex_init_$Create$('^type'), WsTypeDef_instance), to(Regex_init_$Create$('^enum'), WsEnumTypeDef_instance), to(Regex_init_$Create$('^endpoint'), WsEndpointDef_instance), to(Regex_init_$Create$('^[^\\S\\r\\n]+'), WhiteSpaceExceptNewLine_instance), to(Regex_init_$Create$('^[\\r\\n]'), NewLine_instance), to(Regex_init_$Create$('^\\{'), LeftCurly_instance), to(Regex_init_$Create$('^\\}'), RightCurly_instance), to(Regex_init_$Create$('^->'), Arrow_instance), to(Regex_init_$Create$('^='), Equals_instance), to(Regex_init_$Create$('^\\|'), Pipe_instance), to(Regex_init_$Create$('^:'), Colon_instance), to(Regex_init_$Create$('^,'), Comma_instance), to(Regex_init_$Create$('^\\?'), QuestionMark_instance), to(Regex_init_$Create$('^#'), Hash_instance), to(Regex_init_$Create$('^\\[\\]'), Brackets_instance), to(Regex_init_$Create$('^String'), WsString_instance), to(Regex_init_$Create$('^Integer'), WsInteger_instance), to(Regex_init_$Create$('^Number'), WsNumber_instance), to(Regex_init_$Create$('^Boolean'), WsBoolean_instance), to(Regex_init_$Create$('^Unit'), WsUnit_instance), to(Regex_init_$Create$('^GET|^POST|^PUT|^DELETE|^OPTIONS|^HEAD|^PATCH|^TRACE'), Method_instance), to(Regex_init_$Create$('^/.*/g'), CustomRegex_instance), to(Regex_init_$Create$('^[1-5][0-9][0-9]'), StatusCode_instance), to(Regex_init_$Create$('^[a-z`][a-zA-Z0-9`]*'), CustomValue_instance), to(Regex_init_$Create$('^[A-Z][a-zA-
|
|
404
|
+
this.v20_1 = listOf([to(Regex_init_$Create$('^type'), WsTypeDef_instance), to(Regex_init_$Create$('^enum'), WsEnumTypeDef_instance), to(Regex_init_$Create$('^endpoint'), WsEndpointDef_instance), to(Regex_init_$Create$('^[^\\S\\r\\n]+'), WhiteSpaceExceptNewLine_instance), to(Regex_init_$Create$('^[\\r\\n]'), NewLine_instance), to(Regex_init_$Create$('^\\{'), LeftCurly_instance), to(Regex_init_$Create$('^\\}'), RightCurly_instance), to(Regex_init_$Create$('^->'), Arrow_instance), to(Regex_init_$Create$('^='), Equals_instance), to(Regex_init_$Create$('^\\|'), Pipe_instance), to(Regex_init_$Create$('^:'), Colon_instance), to(Regex_init_$Create$('^,'), Comma_instance), to(Regex_init_$Create$('^\\?'), QuestionMark_instance), to(Regex_init_$Create$('^#'), Hash_instance), to(Regex_init_$Create$('^\\[\\]'), Brackets_instance), to(Regex_init_$Create$('^String'), WsString_instance), to(Regex_init_$Create$('^Integer'), WsInteger_instance), to(Regex_init_$Create$('^Number'), WsNumber_instance), to(Regex_init_$Create$('^Boolean'), WsBoolean_instance), to(Regex_init_$Create$('^Unit'), WsUnit_instance), to(Regex_init_$Create$('^GET|^POST|^PUT|^DELETE|^OPTIONS|^HEAD|^PATCH|^TRACE'), Method_instance), to(Regex_init_$Create$('^/.*/g'), CustomRegex_instance), to(Regex_init_$Create$('^[1-5][0-9][0-9]'), StatusCode_instance), to(Regex_init_$Create$('^[a-z`][a-zA-Z0-9`]*'), CustomValue_instance), to(Regex_init_$Create$('^[A-Z][a-zA-Z0-9_]*'), CustomType_instance), to(Regex_init_$Create$('^/[a-zA-Z-_]+'), Path_instance), to(Regex_init_$Create$('^\\/\\*(\\*(?!\\/)|[^*])*\\*\\/'), WsComment_instance), to(Regex_init_$Create$('^/'), ForwardSlash_instance), to(Regex_init_$Create$('^.'), Invalid_instance)]);
|
|
405
405
|
}
|
|
406
406
|
protoOf(WirespecSpec).w20 = function () {
|
|
407
407
|
return this.v20_1;
|
|
@@ -5949,7 +5949,7 @@
|
|
|
5949
5949
|
}
|
|
5950
5950
|
var tmp3_elvis_lhs = tmp_0;
|
|
5951
5951
|
var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
5952
|
-
$this.q29_1.
|
|
5952
|
+
$this.q29_1.z2a(prev + curr + next);
|
|
5953
5953
|
}
|
|
5954
5954
|
function printTokens$default($this, previousToken, $super) {
|
|
5955
5955
|
previousToken = previousToken === VOID ? null : previousToken;
|
|
@@ -6580,15 +6580,15 @@
|
|
|
6580
6580
|
function IdxAndLength(idx, length) {
|
|
6581
6581
|
idx = idx === VOID ? 0 : idx;
|
|
6582
6582
|
length = length === VOID ? 0 : length;
|
|
6583
|
-
this.
|
|
6584
|
-
this.
|
|
6583
|
+
this.a2b_1 = idx;
|
|
6584
|
+
this.b2b_1 = length;
|
|
6585
6585
|
}
|
|
6586
6586
|
protoOf(IdxAndLength).toString = function () {
|
|
6587
|
-
return 'IdxAndLength(idx=' + this.
|
|
6587
|
+
return 'IdxAndLength(idx=' + this.a2b_1 + ', length=' + this.b2b_1 + ')';
|
|
6588
6588
|
};
|
|
6589
6589
|
protoOf(IdxAndLength).hashCode = function () {
|
|
6590
|
-
var result = this.
|
|
6591
|
-
result = imul(result, 31) + this.
|
|
6590
|
+
var result = this.a2b_1;
|
|
6591
|
+
result = imul(result, 31) + this.b2b_1 | 0;
|
|
6592
6592
|
return result;
|
|
6593
6593
|
};
|
|
6594
6594
|
protoOf(IdxAndLength).equals = function (other) {
|
|
@@ -6597,10 +6597,10 @@
|
|
|
6597
6597
|
if (!(other instanceof IdxAndLength))
|
|
6598
6598
|
return false;
|
|
6599
6599
|
var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
|
|
6600
|
-
if (!(this.z2a_1 === tmp0_other_with_cast.z2a_1))
|
|
6601
|
-
return false;
|
|
6602
6600
|
if (!(this.a2b_1 === tmp0_other_with_cast.a2b_1))
|
|
6603
6601
|
return false;
|
|
6602
|
+
if (!(this.b2b_1 === tmp0_other_with_cast.b2b_1))
|
|
6603
|
+
return false;
|
|
6604
6604
|
return true;
|
|
6605
6605
|
};
|
|
6606
6606
|
function Coordinates(line, position, idxAndLength) {
|
|
@@ -6611,14 +6611,14 @@
|
|
|
6611
6611
|
this.m29_1 = position;
|
|
6612
6612
|
this.n29_1 = idxAndLength;
|
|
6613
6613
|
}
|
|
6614
|
-
protoOf(Coordinates).
|
|
6614
|
+
protoOf(Coordinates).c2b = function (line, position, idxAndLength) {
|
|
6615
6615
|
return new Coordinates(line, position, idxAndLength);
|
|
6616
6616
|
};
|
|
6617
|
-
protoOf(Coordinates).
|
|
6617
|
+
protoOf(Coordinates).d2b = function (line, position, idxAndLength, $super) {
|
|
6618
6618
|
line = line === VOID ? this.l29_1 : line;
|
|
6619
6619
|
position = position === VOID ? this.m29_1 : position;
|
|
6620
6620
|
idxAndLength = idxAndLength === VOID ? this.n29_1 : idxAndLength;
|
|
6621
|
-
return $super === VOID ? this.
|
|
6621
|
+
return $super === VOID ? this.c2b(line, position, idxAndLength) : $super.c2b.call(this, line, position, idxAndLength);
|
|
6622
6622
|
};
|
|
6623
6623
|
protoOf(Coordinates).toString = function () {
|
|
6624
6624
|
return 'Coordinates(line=' + this.l29_1 + ', position=' + this.m29_1 + ', idxAndLength=' + this.n29_1 + ')';
|
|
@@ -6651,14 +6651,14 @@
|
|
|
6651
6651
|
protoOf(Token).p2 = function () {
|
|
6652
6652
|
return this.h29_1;
|
|
6653
6653
|
};
|
|
6654
|
-
protoOf(Token).
|
|
6654
|
+
protoOf(Token).e2b = function (value, type, coordinates) {
|
|
6655
6655
|
return new Token(value, type, coordinates);
|
|
6656
6656
|
};
|
|
6657
6657
|
protoOf(Token).p29 = function (value, type, coordinates, $super) {
|
|
6658
6658
|
value = value === VOID ? this.h29_1 : value;
|
|
6659
6659
|
type = type === VOID ? this.i29_1 : type;
|
|
6660
6660
|
coordinates = coordinates === VOID ? this.j29_1 : coordinates;
|
|
6661
|
-
return $super === VOID ? this.
|
|
6661
|
+
return $super === VOID ? this.e2b(value, type, coordinates) : $super.e2b.call(this, value, type, coordinates);
|
|
6662
6662
|
};
|
|
6663
6663
|
protoOf(Token).toString = function () {
|
|
6664
6664
|
return 'Token(value=' + this.h29_1 + ', type=' + this.i29_1 + ', coordinates=' + this.j29_1 + ')';
|
|
@@ -6684,10 +6684,10 @@
|
|
|
6684
6684
|
return true;
|
|
6685
6685
|
};
|
|
6686
6686
|
function plus_1(_this__u8e3s4, length) {
|
|
6687
|
-
return new IdxAndLength(_this__u8e3s4.
|
|
6687
|
+
return new IdxAndLength(_this__u8e3s4.a2b_1 + length | 0, length);
|
|
6688
6688
|
}
|
|
6689
6689
|
function plus_2(_this__u8e3s4, length) {
|
|
6690
|
-
return _this__u8e3s4.
|
|
6690
|
+
return _this__u8e3s4.d2b(VOID, _this__u8e3s4.m29_1 + length | 0, plus_1(_this__u8e3s4.n29_1, length));
|
|
6691
6691
|
}
|
|
6692
6692
|
function tokenize(_this__u8e3s4, source) {
|
|
6693
6693
|
var tmp1_coordinates = new Coordinates();
|
|
@@ -7396,7 +7396,7 @@
|
|
|
7396
7396
|
return StartOfProgram_instance;
|
|
7397
7397
|
}
|
|
7398
7398
|
function EndOfProgram() {
|
|
7399
|
-
this.
|
|
7399
|
+
this.f2b_1 = 'EOP';
|
|
7400
7400
|
}
|
|
7401
7401
|
protoOf(EndOfProgram).toString = function () {
|
|
7402
7402
|
return 'EndOfProgram';
|
|
@@ -7434,6 +7434,16 @@
|
|
|
7434
7434
|
enableLogging = enableLogging === VOID ? false : enableLogging;
|
|
7435
7435
|
this.i20_1 = enableLogging;
|
|
7436
7436
|
}
|
|
7437
|
+
protoOf(Logger).z2a = function (s) {
|
|
7438
|
+
var tmp;
|
|
7439
|
+
if (this.i20_1) {
|
|
7440
|
+
println(s);
|
|
7441
|
+
tmp = Unit_instance;
|
|
7442
|
+
} else {
|
|
7443
|
+
tmp = Unit_instance;
|
|
7444
|
+
}
|
|
7445
|
+
return tmp;
|
|
7446
|
+
};
|
|
7437
7447
|
protoOf(Logger).j20 = function (s) {
|
|
7438
7448
|
var tmp;
|
|
7439
7449
|
if (this.i20_1) {
|