astn 0.110.19 → 0.110.21
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/dist/bin/convert_to_json.js +10 -20
- package/dist/bin/validate_astn.js +9 -19
- package/dist/generated/{generic → implementation/generic}/resolve.d.ts +17 -26
- package/dist/generated/implementation/generic/resolve.js +251 -0
- package/dist/generated/implementation/generic/unmarshall.d.ts +37 -0
- package/dist/generated/implementation/generic/unmarshall.js +168 -0
- package/dist/generated/implementation/schemas/ast/marshall.d.ts +7 -0
- package/dist/generated/implementation/schemas/ast/marshall.js +227 -0
- package/dist/generated/implementation/schemas/ast/unmarshall.d.ts +7 -0
- package/dist/generated/implementation/schemas/ast/unmarshall.js +239 -0
- package/dist/generated/implementation/schemas/ide/marshall.d.ts +4 -0
- package/dist/generated/implementation/schemas/ide/marshall.js +81 -0
- package/dist/generated/implementation/schemas/ide/{migration_boilerplate.d.ts → unmarshall.d.ts} +2 -1
- package/dist/generated/implementation/schemas/ide/unmarshall.js +79 -0
- package/dist/generated/implementation/schemas/parse_result/marshall.d.ts +3 -0
- package/dist/generated/implementation/schemas/parse_result/marshall.js +184 -0
- package/dist/generated/implementation/schemas/parse_result/unmarshall.d.ts +3 -0
- package/dist/generated/implementation/schemas/parse_result/unmarshall.js +103 -0
- package/dist/generated/implementation/schemas/target/marshall.d.ts +3 -0
- package/dist/generated/implementation/schemas/target/marshall.js +122 -0
- package/dist/generated/implementation/schemas/target/{migration_boilerplate.d.ts → unmarshall.d.ts} +1 -1
- package/dist/generated/implementation/schemas/target/unmarshall.js +81 -0
- package/dist/generated/implementation/schemas/token/marshall.d.ts +11 -0
- package/dist/generated/implementation/schemas/token/marshall.js +230 -0
- package/dist/generated/implementation/schemas/token/unmarshall.d.ts +11 -0
- package/dist/generated/implementation/schemas/token/unmarshall.js +180 -0
- package/dist/generated/interface/core/astn_source.d.ts +116 -0
- package/dist/generated/interface/core/astn_source.js +3 -0
- package/dist/generated/interface/core/astn_target.d.ts +186 -0
- package/dist/generated/interface/core/astn_target.js +3 -0
- package/dist/generated/interface/core/resolve.d.ts +11 -0
- package/dist/generated/interface/core/resolve.js +3 -0
- package/dist/generated/interface/core/unconstrained.d.ts +19 -0
- package/dist/generated/interface/core/unconstrained.js +3 -0
- package/dist/generated/interface/core/unresolved.d.ts +162 -13
- package/dist/generated/interface/schemas/ast/marshall.d.ts +226 -0
- package/dist/generated/interface/schemas/ast/marshall.js +3 -0
- package/dist/generated/interface/schemas/ast/migrate_boilerplate.d.ts +134 -0
- package/dist/generated/interface/schemas/ast/migrate_boilerplate.js +3 -0
- package/dist/generated/interface/schemas/ast/unconstrained.d.ts +20 -210
- package/dist/generated/interface/schemas/ast/unmarshall.d.ts +134 -0
- package/dist/generated/interface/schemas/ast/unmarshall.js +3 -0
- package/dist/generated/interface/schemas/ide/marshall.d.ts +136 -0
- package/dist/generated/interface/schemas/ide/marshall.js +3 -0
- package/dist/generated/interface/schemas/ide/{migration_boilerplate.d.ts → migrate_boilerplate.d.ts} +22 -0
- package/dist/generated/interface/schemas/ide/migrate_boilerplate.js +3 -0
- package/dist/generated/interface/schemas/ide/unconstrained.d.ts +50 -29
- package/dist/generated/interface/schemas/ide/unmarshall.d.ts +68 -0
- package/dist/generated/interface/schemas/ide/unmarshall.js +3 -0
- package/dist/generated/interface/schemas/parse_result/marshall.d.ts +106 -0
- package/dist/generated/interface/schemas/parse_result/marshall.js +3 -0
- package/dist/generated/interface/schemas/parse_result/migrate_boilerplate.d.ts +46 -0
- package/dist/generated/interface/schemas/parse_result/migrate_boilerplate.js +3 -0
- package/dist/generated/interface/schemas/parse_result/unconstrained.d.ts +20 -168
- package/dist/generated/interface/schemas/parse_result/unmarshall.d.ts +46 -0
- package/dist/generated/interface/schemas/parse_result/unmarshall.js +3 -0
- package/dist/generated/interface/schemas/target/marshall.d.ts +126 -0
- package/dist/generated/interface/schemas/target/marshall.js +3 -0
- package/dist/generated/interface/schemas/target/migrate_boilerplate.js +3 -0
- package/dist/generated/interface/schemas/target/unconstrained.d.ts +1 -1
- package/dist/generated/interface/schemas/{target_json/migration_boilerplate.d.ts → target/unmarshall.d.ts} +4 -4
- package/dist/generated/interface/schemas/target/unmarshall.js +3 -0
- package/dist/generated/interface/schemas/token/marshall.d.ts +346 -0
- package/dist/generated/interface/schemas/token/marshall.js +3 -0
- package/dist/generated/interface/schemas/{ast/migration_boilerplate.d.ts → token/migrate_boilerplate.d.ts} +38 -104
- package/dist/generated/interface/schemas/token/migrate_boilerplate.js +3 -0
- package/dist/generated/interface/schemas/token/unconstrained.d.ts +326 -0
- package/dist/generated/interface/schemas/{target_json → token}/unconstrained.js +1 -1
- package/dist/generated/interface/schemas/token/unmarshall.d.ts +222 -0
- package/dist/generated/interface/schemas/token/unmarshall.js +3 -0
- package/dist/parse/ast.d.ts +10 -0
- package/dist/parse/ast.js +227 -0
- package/dist/parse/astn_parse_generic.d.ts +8 -0
- package/dist/parse/astn_parse_generic.js +65 -0
- package/dist/parse/parse.d.ts +3 -10
- package/dist/parse/parse.js +19 -226
- package/dist/parse/string_iterator.d.ts +47 -0
- package/dist/parse/string_iterator.js +139 -0
- package/dist/parse/token.d.ts +9 -0
- package/dist/parse/token.js +506 -0
- package/dist/serializers/parse_result.js +8 -18
- package/dist/transformations/ast/ide.d.ts +3 -2
- package/dist/transformations/ast/ide.js +8 -18
- package/dist/transformations/ast/json_target.d.ts +1 -1
- package/dist/transformations/ast/json_target.js +8 -18
- package/dist/transformations/target/fountain_pen_block.js +10 -20
- package/package.json +5 -7
- package/dist/generated/generic/resolve.js +0 -259
- package/dist/generated/implementation/schemas/ast/migration_boilerplate.d.ts +0 -14
- package/dist/generated/implementation/schemas/ast/migration_boilerplate.js +0 -179
- package/dist/generated/implementation/schemas/ide/migration_boilerplate.js +0 -58
- package/dist/generated/implementation/schemas/parse_result/migration_boilerplate.d.ts +0 -6
- package/dist/generated/implementation/schemas/parse_result/migration_boilerplate.js +0 -136
- package/dist/generated/implementation/schemas/target/migration_boilerplate.js +0 -73
- package/dist/generated/implementation/schemas/target_json/migration_boilerplate.d.ts +0 -3
- package/dist/generated/implementation/schemas/target_json/migration_boilerplate.js +0 -67
- package/dist/generated/interface/core/poormans_parser.d.ts +0 -184
- package/dist/generated/interface/core/poormans_parser.js +0 -3
- package/dist/generated/interface/schemas/ast/migration_boilerplate.js +0 -3
- package/dist/generated/interface/schemas/ide/migration_boilerplate.js +0 -3
- package/dist/generated/interface/schemas/parse_result/migration_boilerplate.d.ts +0 -112
- package/dist/generated/interface/schemas/parse_result/migration_boilerplate.js +0 -3
- package/dist/generated/interface/schemas/target/migration_boilerplate.js +0 -3
- package/dist/generated/interface/schemas/target_json/migration_boilerplate.js +0 -3
- package/dist/generated/interface/schemas/target_json/unconstrained.d.ts +0 -169
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -43
- package/dist/parse/parse_generic.d.ts +0 -43
- package/dist/parse/parse_generic.js +0 -656
- package/dist/serializers/json.d.ts +0 -5
- package/dist/serializers/json.js +0 -46
- package/dist/transformations/target_json/fountain_pen_block.d.ts +0 -4
- package/dist/transformations/target_json/fountain_pen_block.js +0 -101
- /package/dist/generated/interface/schemas/target/{migration_boilerplate.d.ts → migrate_boilerplate.d.ts} +0 -0
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import * as _pt from 'exupery-core-types';
|
|
2
|
-
export type _T_Derived_Reference<G_Source, T_Type> = null;
|
|
3
|
-
export type _T_Dictionary<G_Source, T_D> = {
|
|
4
|
-
readonly 'dictionary': _pt.Dictionary<{
|
|
5
|
-
readonly 'entry': T_D;
|
|
6
|
-
readonly 'location': G_Source;
|
|
7
|
-
}>;
|
|
8
|
-
readonly 'location': G_Source;
|
|
9
|
-
};
|
|
10
|
-
export type _T_List<G_Source, T_L> = {
|
|
11
|
-
readonly 'list': _pt.Array<{
|
|
12
|
-
readonly 'element': T_L;
|
|
13
|
-
readonly 'location': G_Source;
|
|
14
|
-
}>;
|
|
15
|
-
readonly 'location': G_Source;
|
|
16
|
-
};
|
|
17
|
-
export type _T_Ordered_Dictionary<G_Source, T_D> = {
|
|
18
|
-
readonly 'dictionary': _pt.Dictionary<{
|
|
19
|
-
readonly 'entry': T_D;
|
|
20
|
-
readonly 'location': G_Source;
|
|
21
|
-
}>;
|
|
22
|
-
readonly 'location': G_Source;
|
|
23
|
-
};
|
|
24
|
-
export type _T_Reference_To_Circular_Dependent_Sibling<G_Source, T_Dictionary_Entry> = {
|
|
25
|
-
readonly 'key': string;
|
|
26
|
-
readonly 'location': G_Source;
|
|
27
|
-
};
|
|
28
|
-
export type _T_Reference_To_Normal_Dictionary_Entry<G_Source, T_Dictionary_Entry> = {
|
|
29
|
-
readonly 'key': string;
|
|
30
|
-
readonly 'location': G_Source;
|
|
31
|
-
};
|
|
32
|
-
export type _T_Reference_To_Stacked_Dictionary_Entry<G_Source, T_Dictionary_Entry> = {
|
|
33
|
-
readonly 'key': string;
|
|
34
|
-
readonly 'location': G_Source;
|
|
35
|
-
readonly 'up steps': number;
|
|
36
|
-
};
|
|
37
|
-
export type _T_State_Group<G_Source, T_SG> = {
|
|
38
|
-
readonly 'location': G_Source;
|
|
39
|
-
readonly 'state group': T_SG;
|
|
40
|
-
};
|
|
41
|
-
export type Derived_Reference<G_Source, T_Type> = _T_Derived_Reference<G_Source, T_Type>;
|
|
42
|
-
export type Dictionary<G_Source, T_D> = _T_Dictionary<G_Source, T_D>;
|
|
43
|
-
export type List<G_Source, T_L> = _T_List<G_Source, T_L>;
|
|
44
|
-
export type Ordered_Dictionary<G_Source, T_D> = _T_Ordered_Dictionary<G_Source, T_D>;
|
|
45
|
-
export type Reference_To_Circular_Dependent_Sibling<G_Source, T_Dictionary_Entry> = _T_Reference_To_Circular_Dependent_Sibling<G_Source, T_Dictionary_Entry>;
|
|
46
|
-
export type Reference_To_Normal_Dictionary_Entry<G_Source, T_Dictionary_Entry> = _T_Reference_To_Normal_Dictionary_Entry<G_Source, T_Dictionary_Entry>;
|
|
47
|
-
export type Reference_To_Stacked_Dictionary_Entry<G_Source, T_Dictionary_Entry> = _T_Reference_To_Stacked_Dictionary_Entry<G_Source, T_Dictionary_Entry>;
|
|
48
|
-
export type State_Group<G_Source, T_SG> = _T_State_Group<G_Source, T_SG>;
|
|
49
|
-
export declare namespace _T_Dictionary {
|
|
50
|
-
namespace dictionary {
|
|
51
|
-
namespace D {
|
|
52
|
-
type entry<G_Source, T_D> = T_D;
|
|
53
|
-
type location<G_Source, T_D> = G_Source;
|
|
54
|
-
}
|
|
55
|
-
type D<G_Source, T_D> = {
|
|
56
|
-
readonly 'entry': T_D;
|
|
57
|
-
readonly 'location': G_Source;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
type dictionary<G_Source, T_D> = _pt.Dictionary<{
|
|
61
|
-
readonly 'entry': T_D;
|
|
62
|
-
readonly 'location': G_Source;
|
|
63
|
-
}>;
|
|
64
|
-
type location<G_Source, T_D> = G_Source;
|
|
65
|
-
}
|
|
66
|
-
export declare namespace _T_List {
|
|
67
|
-
namespace list {
|
|
68
|
-
namespace L {
|
|
69
|
-
type element<G_Source, T_L> = T_L;
|
|
70
|
-
type location<G_Source, T_L> = G_Source;
|
|
71
|
-
}
|
|
72
|
-
type L<G_Source, T_L> = {
|
|
73
|
-
readonly 'element': T_L;
|
|
74
|
-
readonly 'location': G_Source;
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
type list<G_Source, T_L> = _pt.Array<{
|
|
78
|
-
readonly 'element': T_L;
|
|
79
|
-
readonly 'location': G_Source;
|
|
80
|
-
}>;
|
|
81
|
-
type location<G_Source, T_L> = G_Source;
|
|
82
|
-
}
|
|
83
|
-
export declare namespace _T_Ordered_Dictionary {
|
|
84
|
-
namespace dictionary {
|
|
85
|
-
namespace D {
|
|
86
|
-
type entry<G_Source, T_D> = T_D;
|
|
87
|
-
type location<G_Source, T_D> = G_Source;
|
|
88
|
-
}
|
|
89
|
-
type D<G_Source, T_D> = {
|
|
90
|
-
readonly 'entry': T_D;
|
|
91
|
-
readonly 'location': G_Source;
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
type dictionary<G_Source, T_D> = _pt.Dictionary<{
|
|
95
|
-
readonly 'entry': T_D;
|
|
96
|
-
readonly 'location': G_Source;
|
|
97
|
-
}>;
|
|
98
|
-
type location<G_Source, T_D> = G_Source;
|
|
99
|
-
}
|
|
100
|
-
export declare namespace _T_Reference_To_Circular_Dependent_Sibling {
|
|
101
|
-
type key<G_Source, T_Dictionary_Entry> = string;
|
|
102
|
-
type location<G_Source, T_Dictionary_Entry> = G_Source;
|
|
103
|
-
}
|
|
104
|
-
export declare namespace _T_Reference_To_Normal_Dictionary_Entry {
|
|
105
|
-
type key<G_Source, T_Dictionary_Entry> = string;
|
|
106
|
-
type location<G_Source, T_Dictionary_Entry> = G_Source;
|
|
107
|
-
}
|
|
108
|
-
export declare namespace _T_Reference_To_Stacked_Dictionary_Entry {
|
|
109
|
-
type key<G_Source, T_Dictionary_Entry> = string;
|
|
110
|
-
type location<G_Source, T_Dictionary_Entry> = G_Source;
|
|
111
|
-
type up_steps<G_Source, T_Dictionary_Entry> = number;
|
|
112
|
-
}
|
|
113
|
-
export declare namespace _T_State_Group {
|
|
114
|
-
type location<G_Source, T_SG> = G_Source;
|
|
115
|
-
type state_group<G_Source, T_SG> = T_SG;
|
|
116
|
-
}
|
|
117
|
-
export declare namespace Dictionary {
|
|
118
|
-
namespace dictionary {
|
|
119
|
-
namespace D {
|
|
120
|
-
type entry<G_Source, T_D> = T_D;
|
|
121
|
-
type location<G_Source, T_D> = G_Source;
|
|
122
|
-
}
|
|
123
|
-
type D<G_Source, T_D> = {
|
|
124
|
-
readonly 'entry': T_D;
|
|
125
|
-
readonly 'location': G_Source;
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
type dictionary<G_Source, T_D> = _pt.Dictionary<{
|
|
129
|
-
readonly 'entry': T_D;
|
|
130
|
-
readonly 'location': G_Source;
|
|
131
|
-
}>;
|
|
132
|
-
type location<G_Source, T_D> = G_Source;
|
|
133
|
-
}
|
|
134
|
-
export declare namespace List {
|
|
135
|
-
namespace list {
|
|
136
|
-
namespace L {
|
|
137
|
-
type element<G_Source, T_L> = T_L;
|
|
138
|
-
type location<G_Source, T_L> = G_Source;
|
|
139
|
-
}
|
|
140
|
-
type L<G_Source, T_L> = {
|
|
141
|
-
readonly 'element': T_L;
|
|
142
|
-
readonly 'location': G_Source;
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
type list<G_Source, T_L> = _pt.Array<{
|
|
146
|
-
readonly 'element': T_L;
|
|
147
|
-
readonly 'location': G_Source;
|
|
148
|
-
}>;
|
|
149
|
-
type location<G_Source, T_L> = G_Source;
|
|
150
|
-
}
|
|
151
|
-
export declare namespace Ordered_Dictionary {
|
|
152
|
-
namespace dictionary {
|
|
153
|
-
namespace D {
|
|
154
|
-
type entry<G_Source, T_D> = T_D;
|
|
155
|
-
type location<G_Source, T_D> = G_Source;
|
|
156
|
-
}
|
|
157
|
-
type D<G_Source, T_D> = {
|
|
158
|
-
readonly 'entry': T_D;
|
|
159
|
-
readonly 'location': G_Source;
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
type dictionary<G_Source, T_D> = _pt.Dictionary<{
|
|
163
|
-
readonly 'entry': T_D;
|
|
164
|
-
readonly 'location': G_Source;
|
|
165
|
-
}>;
|
|
166
|
-
type location<G_Source, T_D> = G_Source;
|
|
167
|
-
}
|
|
168
|
-
export declare namespace Reference_To_Circular_Dependent_Sibling {
|
|
169
|
-
type key<G_Source, T_Dictionary_Entry> = string;
|
|
170
|
-
type location<G_Source, T_Dictionary_Entry> = G_Source;
|
|
171
|
-
}
|
|
172
|
-
export declare namespace Reference_To_Normal_Dictionary_Entry {
|
|
173
|
-
type key<G_Source, T_Dictionary_Entry> = string;
|
|
174
|
-
type location<G_Source, T_Dictionary_Entry> = G_Source;
|
|
175
|
-
}
|
|
176
|
-
export declare namespace Reference_To_Stacked_Dictionary_Entry {
|
|
177
|
-
type key<G_Source, T_Dictionary_Entry> = string;
|
|
178
|
-
type location<G_Source, T_Dictionary_Entry> = G_Source;
|
|
179
|
-
type up_steps<G_Source, T_Dictionary_Entry> = number;
|
|
180
|
-
}
|
|
181
|
-
export declare namespace State_Group {
|
|
182
|
-
type location<G_Source, T_SG> = G_Source;
|
|
183
|
-
type state_group<G_Source, T_SG> = T_SG;
|
|
184
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9vcm1hbnNfcGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2dlbmVyYXRlZC9pbnRlcmZhY2UvY29yZS9wb29ybWFuc19wYXJzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlncmF0aW9uX2JvaWxlcnBsYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2dlbmVyYXRlZC9pbnRlcmZhY2Uvc2NoZW1hcy9hc3QvbWlncmF0aW9uX2JvaWxlcnBsYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlncmF0aW9uX2JvaWxlcnBsYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2dlbmVyYXRlZC9pbnRlcmZhY2Uvc2NoZW1hcy9pZGUvbWlncmF0aW9uX2JvaWxlcnBsYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import * as _i_in from "./unconstrained";
|
|
2
|
-
import * as _i_out from "./unconstrained";
|
|
3
|
-
export type _T_Annotated_Token = ($$_: _i_in._T_Annotated_Token, $$_p: null) => _i_out._T_Annotated_Token;
|
|
4
|
-
export type _T_Parse_Error = ($$_: _i_in._T_Parse_Error, $$_p: null) => _i_out._T_Parse_Error;
|
|
5
|
-
export type _T_Parse_Result = ($$_: _i_in._T_Parse_Result, $$_p: null) => _i_out._T_Parse_Result;
|
|
6
|
-
export type _T_Token_Type = ($$_: _i_in._T_Token_Type, $$_p: null) => _i_out._T_Token_Type;
|
|
7
|
-
export type _T_Tokenizer_Result = ($$_: _i_in._T_Tokenizer_Result, $$_p: null) => _i_out._T_Tokenizer_Result;
|
|
8
|
-
export type Annotated_Token = _T_Annotated_Token;
|
|
9
|
-
export type Parse_Error = _T_Parse_Error;
|
|
10
|
-
export type Parse_Result = _T_Parse_Result;
|
|
11
|
-
export type Token_Type = _T_Token_Type;
|
|
12
|
-
export type Tokenizer_Result = _T_Tokenizer_Result;
|
|
13
|
-
export declare namespace _T_Annotated_Token {
|
|
14
|
-
namespace CONTEXT {
|
|
15
|
-
}
|
|
16
|
-
type CONTEXT = _i_in._T_Annotated_Token;
|
|
17
|
-
namespace PARAMS {
|
|
18
|
-
}
|
|
19
|
-
namespace RESULT {
|
|
20
|
-
}
|
|
21
|
-
type RESULT = _i_out._T_Annotated_Token;
|
|
22
|
-
}
|
|
23
|
-
export declare namespace _T_Parse_Error {
|
|
24
|
-
namespace CONTEXT {
|
|
25
|
-
}
|
|
26
|
-
type CONTEXT = _i_in._T_Parse_Error;
|
|
27
|
-
namespace PARAMS {
|
|
28
|
-
}
|
|
29
|
-
namespace RESULT {
|
|
30
|
-
}
|
|
31
|
-
type RESULT = _i_out._T_Parse_Error;
|
|
32
|
-
}
|
|
33
|
-
export declare namespace _T_Parse_Result {
|
|
34
|
-
namespace CONTEXT {
|
|
35
|
-
}
|
|
36
|
-
type CONTEXT = _i_in._T_Parse_Result;
|
|
37
|
-
namespace PARAMS {
|
|
38
|
-
}
|
|
39
|
-
namespace RESULT {
|
|
40
|
-
}
|
|
41
|
-
type RESULT = _i_out._T_Parse_Result;
|
|
42
|
-
}
|
|
43
|
-
export declare namespace _T_Token_Type {
|
|
44
|
-
namespace CONTEXT {
|
|
45
|
-
}
|
|
46
|
-
type CONTEXT = _i_in._T_Token_Type;
|
|
47
|
-
namespace PARAMS {
|
|
48
|
-
}
|
|
49
|
-
namespace RESULT {
|
|
50
|
-
}
|
|
51
|
-
type RESULT = _i_out._T_Token_Type;
|
|
52
|
-
}
|
|
53
|
-
export declare namespace _T_Tokenizer_Result {
|
|
54
|
-
namespace CONTEXT {
|
|
55
|
-
}
|
|
56
|
-
type CONTEXT = _i_in._T_Tokenizer_Result;
|
|
57
|
-
namespace PARAMS {
|
|
58
|
-
}
|
|
59
|
-
namespace RESULT {
|
|
60
|
-
}
|
|
61
|
-
type RESULT = _i_out._T_Tokenizer_Result;
|
|
62
|
-
}
|
|
63
|
-
export declare namespace Annotated_Token {
|
|
64
|
-
namespace CONTEXT {
|
|
65
|
-
}
|
|
66
|
-
type CONTEXT = _i_in._T_Annotated_Token;
|
|
67
|
-
namespace PARAMS {
|
|
68
|
-
}
|
|
69
|
-
namespace RESULT {
|
|
70
|
-
}
|
|
71
|
-
type RESULT = _i_out._T_Annotated_Token;
|
|
72
|
-
}
|
|
73
|
-
export declare namespace Parse_Error {
|
|
74
|
-
namespace CONTEXT {
|
|
75
|
-
}
|
|
76
|
-
type CONTEXT = _i_in._T_Parse_Error;
|
|
77
|
-
namespace PARAMS {
|
|
78
|
-
}
|
|
79
|
-
namespace RESULT {
|
|
80
|
-
}
|
|
81
|
-
type RESULT = _i_out._T_Parse_Error;
|
|
82
|
-
}
|
|
83
|
-
export declare namespace Parse_Result {
|
|
84
|
-
namespace CONTEXT {
|
|
85
|
-
}
|
|
86
|
-
type CONTEXT = _i_in._T_Parse_Result;
|
|
87
|
-
namespace PARAMS {
|
|
88
|
-
}
|
|
89
|
-
namespace RESULT {
|
|
90
|
-
}
|
|
91
|
-
type RESULT = _i_out._T_Parse_Result;
|
|
92
|
-
}
|
|
93
|
-
export declare namespace Token_Type {
|
|
94
|
-
namespace CONTEXT {
|
|
95
|
-
}
|
|
96
|
-
type CONTEXT = _i_in._T_Token_Type;
|
|
97
|
-
namespace PARAMS {
|
|
98
|
-
}
|
|
99
|
-
namespace RESULT {
|
|
100
|
-
}
|
|
101
|
-
type RESULT = _i_out._T_Token_Type;
|
|
102
|
-
}
|
|
103
|
-
export declare namespace Tokenizer_Result {
|
|
104
|
-
namespace CONTEXT {
|
|
105
|
-
}
|
|
106
|
-
type CONTEXT = _i_in._T_Tokenizer_Result;
|
|
107
|
-
namespace PARAMS {
|
|
108
|
-
}
|
|
109
|
-
namespace RESULT {
|
|
110
|
-
}
|
|
111
|
-
type RESULT = _i_out._T_Tokenizer_Result;
|
|
112
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlncmF0aW9uX2JvaWxlcnBsYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2dlbmVyYXRlZC9pbnRlcmZhY2Uvc2NoZW1hcy9wYXJzZV9yZXN1bHQvbWlncmF0aW9uX2JvaWxlcnBsYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlncmF0aW9uX2JvaWxlcnBsYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2dlbmVyYXRlZC9pbnRlcmZhY2Uvc2NoZW1hcy90YXJnZXQvbWlncmF0aW9uX2JvaWxlcnBsYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlncmF0aW9uX2JvaWxlcnBsYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2dlbmVyYXRlZC9pbnRlcmZhY2Uvc2NoZW1hcy90YXJnZXRfanNvbi9taWdyYXRpb25fYm9pbGVycGxhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import * as _i_core from "../../core/resolved";
|
|
2
|
-
export type _T_Document = _T_Value;
|
|
3
|
-
export type _T_Value = _i_core._T_State_Group<null, readonly ['array', _i_core._T_List<null, _T_Value>] | readonly ['boolean', boolean] | readonly ['null', null] | readonly [
|
|
4
|
-
'number',
|
|
5
|
-
_i_core._T_State_Group<null, readonly ['float', number] | readonly ['integer', number]>
|
|
6
|
-
] | readonly [
|
|
7
|
-
'object',
|
|
8
|
-
_i_core._T_State_Group<null, readonly ['dictionary', _i_core._T_Dictionary<null, _T_Value>] | readonly [
|
|
9
|
-
'key value array',
|
|
10
|
-
_i_core._T_List<null, {
|
|
11
|
-
readonly 'key': string;
|
|
12
|
-
readonly 'value': _T_Value;
|
|
13
|
-
}>
|
|
14
|
-
]>
|
|
15
|
-
] | readonly ['string', string]>;
|
|
16
|
-
export type Document = _T_Document;
|
|
17
|
-
export type Value = _T_Value;
|
|
18
|
-
export declare namespace _T_Document {
|
|
19
|
-
}
|
|
20
|
-
export declare namespace _T_Value {
|
|
21
|
-
namespace SG {
|
|
22
|
-
namespace array {
|
|
23
|
-
namespace L {
|
|
24
|
-
}
|
|
25
|
-
type L = _T_Value;
|
|
26
|
-
}
|
|
27
|
-
type array = _i_core._T_List<null, _T_Value>;
|
|
28
|
-
type _boolean = boolean;
|
|
29
|
-
type _null = null;
|
|
30
|
-
namespace _number {
|
|
31
|
-
namespace SG {
|
|
32
|
-
type float = number;
|
|
33
|
-
type integer = number;
|
|
34
|
-
}
|
|
35
|
-
type SG = readonly ['float', number] | readonly ['integer', number];
|
|
36
|
-
}
|
|
37
|
-
type _number = _i_core._T_State_Group<null, readonly ['float', number] | readonly ['integer', number]>;
|
|
38
|
-
namespace _object {
|
|
39
|
-
namespace SG {
|
|
40
|
-
namespace dictionary {
|
|
41
|
-
namespace D {
|
|
42
|
-
}
|
|
43
|
-
type D = _T_Value;
|
|
44
|
-
}
|
|
45
|
-
type dictionary = _i_core._T_Dictionary<null, _T_Value>;
|
|
46
|
-
namespace key_value_array {
|
|
47
|
-
namespace L {
|
|
48
|
-
type key = string;
|
|
49
|
-
namespace value {
|
|
50
|
-
}
|
|
51
|
-
type value = _T_Value;
|
|
52
|
-
}
|
|
53
|
-
type L = {
|
|
54
|
-
readonly 'key': string;
|
|
55
|
-
readonly 'value': _T_Value;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
type key_value_array = _i_core._T_List<null, {
|
|
59
|
-
readonly 'key': string;
|
|
60
|
-
readonly 'value': _T_Value;
|
|
61
|
-
}>;
|
|
62
|
-
}
|
|
63
|
-
type SG = readonly ['dictionary', _i_core._T_Dictionary<null, _T_Value>] | readonly [
|
|
64
|
-
'key value array',
|
|
65
|
-
_i_core._T_List<null, {
|
|
66
|
-
readonly 'key': string;
|
|
67
|
-
readonly 'value': _T_Value;
|
|
68
|
-
}>
|
|
69
|
-
];
|
|
70
|
-
}
|
|
71
|
-
type _object = _i_core._T_State_Group<null, readonly ['dictionary', _i_core._T_Dictionary<null, _T_Value>] | readonly [
|
|
72
|
-
'key value array',
|
|
73
|
-
_i_core._T_List<null, {
|
|
74
|
-
readonly 'key': string;
|
|
75
|
-
readonly 'value': _T_Value;
|
|
76
|
-
}>
|
|
77
|
-
]>;
|
|
78
|
-
type _string = string;
|
|
79
|
-
}
|
|
80
|
-
type SG = readonly ['array', _i_core._T_List<null, _T_Value>] | readonly ['boolean', boolean] | readonly ['null', null] | readonly [
|
|
81
|
-
'number',
|
|
82
|
-
_i_core._T_State_Group<null, readonly ['float', number] | readonly ['integer', number]>
|
|
83
|
-
] | readonly [
|
|
84
|
-
'object',
|
|
85
|
-
_i_core._T_State_Group<null, readonly ['dictionary', _i_core._T_Dictionary<null, _T_Value>] | readonly [
|
|
86
|
-
'key value array',
|
|
87
|
-
_i_core._T_List<null, {
|
|
88
|
-
readonly 'key': string;
|
|
89
|
-
readonly 'value': _T_Value;
|
|
90
|
-
}>
|
|
91
|
-
]>
|
|
92
|
-
] | readonly ['string', string];
|
|
93
|
-
}
|
|
94
|
-
export declare namespace Document {
|
|
95
|
-
}
|
|
96
|
-
export declare namespace Value {
|
|
97
|
-
namespace SG {
|
|
98
|
-
namespace array {
|
|
99
|
-
namespace L {
|
|
100
|
-
}
|
|
101
|
-
type L = _T_Value;
|
|
102
|
-
}
|
|
103
|
-
type array = _i_core._T_List<null, _T_Value>;
|
|
104
|
-
type _boolean = boolean;
|
|
105
|
-
type _null = null;
|
|
106
|
-
namespace _number {
|
|
107
|
-
namespace SG {
|
|
108
|
-
type float = number;
|
|
109
|
-
type integer = number;
|
|
110
|
-
}
|
|
111
|
-
type SG = readonly ['float', number] | readonly ['integer', number];
|
|
112
|
-
}
|
|
113
|
-
type _number = _i_core._T_State_Group<null, readonly ['float', number] | readonly ['integer', number]>;
|
|
114
|
-
namespace _object {
|
|
115
|
-
namespace SG {
|
|
116
|
-
namespace dictionary {
|
|
117
|
-
namespace D {
|
|
118
|
-
}
|
|
119
|
-
type D = _T_Value;
|
|
120
|
-
}
|
|
121
|
-
type dictionary = _i_core._T_Dictionary<null, _T_Value>;
|
|
122
|
-
namespace key_value_array {
|
|
123
|
-
namespace L {
|
|
124
|
-
type key = string;
|
|
125
|
-
namespace value {
|
|
126
|
-
}
|
|
127
|
-
type value = _T_Value;
|
|
128
|
-
}
|
|
129
|
-
type L = {
|
|
130
|
-
readonly 'key': string;
|
|
131
|
-
readonly 'value': _T_Value;
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
type key_value_array = _i_core._T_List<null, {
|
|
135
|
-
readonly 'key': string;
|
|
136
|
-
readonly 'value': _T_Value;
|
|
137
|
-
}>;
|
|
138
|
-
}
|
|
139
|
-
type SG = readonly ['dictionary', _i_core._T_Dictionary<null, _T_Value>] | readonly [
|
|
140
|
-
'key value array',
|
|
141
|
-
_i_core._T_List<null, {
|
|
142
|
-
readonly 'key': string;
|
|
143
|
-
readonly 'value': _T_Value;
|
|
144
|
-
}>
|
|
145
|
-
];
|
|
146
|
-
}
|
|
147
|
-
type _object = _i_core._T_State_Group<null, readonly ['dictionary', _i_core._T_Dictionary<null, _T_Value>] | readonly [
|
|
148
|
-
'key value array',
|
|
149
|
-
_i_core._T_List<null, {
|
|
150
|
-
readonly 'key': string;
|
|
151
|
-
readonly 'value': _T_Value;
|
|
152
|
-
}>
|
|
153
|
-
]>;
|
|
154
|
-
type _string = string;
|
|
155
|
-
}
|
|
156
|
-
type SG = readonly ['array', _i_core._T_List<null, _T_Value>] | readonly ['boolean', boolean] | readonly ['null', null] | readonly [
|
|
157
|
-
'number',
|
|
158
|
-
_i_core._T_State_Group<null, readonly ['float', number] | readonly ['integer', number]>
|
|
159
|
-
] | readonly [
|
|
160
|
-
'object',
|
|
161
|
-
_i_core._T_State_Group<null, readonly ['dictionary', _i_core._T_Dictionary<null, _T_Value>] | readonly [
|
|
162
|
-
'key value array',
|
|
163
|
-
_i_core._T_List<null, {
|
|
164
|
-
readonly 'key': string;
|
|
165
|
-
readonly 'value': _T_Value;
|
|
166
|
-
}>
|
|
167
|
-
]>
|
|
168
|
-
] | readonly ['string', string];
|
|
169
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * as d_ast from "./generated/interface/schemas/ast/unconstrained";
|
|
2
|
-
export * as d_ide from "./generated/interface/schemas/ide/unconstrained";
|
|
3
|
-
export * as d_parse_result from "./generated/interface/schemas/parse_result/unconstrained";
|
|
4
|
-
export * as t_parse from "./parse/parse";
|
|
5
|
-
export * as t_format from "./transformations/ast/ide";
|
|
6
|
-
export * as t_create_error_message from "./serializers/parse_result";
|
package/dist/index.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.t_create_error_message = exports.t_format = exports.t_parse = exports.d_parse_result = exports.d_ide = exports.d_ast = void 0;
|
|
37
|
-
exports.d_ast = __importStar(require("./generated/interface/schemas/ast/unconstrained"));
|
|
38
|
-
exports.d_ide = __importStar(require("./generated/interface/schemas/ide/unconstrained"));
|
|
39
|
-
exports.d_parse_result = __importStar(require("./generated/interface/schemas/parse_result/unconstrained"));
|
|
40
|
-
exports.t_parse = __importStar(require("./parse/parse"));
|
|
41
|
-
exports.t_format = __importStar(require("./transformations/ast/ide"));
|
|
42
|
-
exports.t_create_error_message = __importStar(require("./serializers/parse_result"));
|
|
43
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEseUZBQXdFO0FBQ3hFLHlGQUF3RTtBQUN4RSwyR0FBMEY7QUFFMUYseURBQXdDO0FBQ3hDLHNFQUFxRDtBQUNyRCxxRkFBb0UifQ==
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as _et from 'exupery-core-types';
|
|
2
|
-
import * as ast from "../generated/interface/schemas/ast/unconstrained";
|
|
3
|
-
import * as parse_result from "../generated/interface/schemas/parse_result/unconstrained";
|
|
4
|
-
export declare const throw_parse_error: (type: parse_result.Parse_Error._type, range: ast.Range) => never;
|
|
5
|
-
export declare const throw_unexpected_token: (found: parse_result.Annotated_Token, expected: _et.Array<parse_result.Parse_Error._type.SG.parser.expected.L>) => never;
|
|
6
|
-
type String_Iterator = {
|
|
7
|
-
'consume character': () => void;
|
|
8
|
-
'consume string': ($: string) => void;
|
|
9
|
-
/**
|
|
10
|
-
* returns the current character, or null if the end of the string has been reached.
|
|
11
|
-
* equivalent to `look ahead(0)`
|
|
12
|
-
*/
|
|
13
|
-
'get current character': () => number | null;
|
|
14
|
-
'look ahead': ($: number) => number | null;
|
|
15
|
-
'create offset location info': (subtract: number) => ast.Location;
|
|
16
|
-
'create location info': () => ast.Location;
|
|
17
|
-
'create location info string': () => string;
|
|
18
|
-
/**
|
|
19
|
-
* if no non-whitespace character has been found yet on the current line,
|
|
20
|
-
* this will return the current column,
|
|
21
|
-
* otherwise it will return the offset of that first non-whitespace character
|
|
22
|
-
* (which is the indentation of the line)
|
|
23
|
-
*/
|
|
24
|
-
'get line indentation': () => number;
|
|
25
|
-
'starts with': ($: string) => boolean;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Creates a string iterator that allows iterating over characters in a string,
|
|
29
|
-
* while keeping track of line numbers, columns, and line indentation.
|
|
30
|
-
*/
|
|
31
|
-
export declare const create_string_iterator: ($: string, $p: {
|
|
32
|
-
"tab size": number;
|
|
33
|
-
}) => String_Iterator;
|
|
34
|
-
export declare const Annotated_Token: (st: String_Iterator) => parse_result.Annotated_Token;
|
|
35
|
-
export declare const Tokenizer_Result: ($: null, $p: {
|
|
36
|
-
"string iterator": String_Iterator;
|
|
37
|
-
}) => parse_result.Tokenizer_Result;
|
|
38
|
-
export type Token_Iterator = {
|
|
39
|
-
'get required token': (expected: _et.Array<parse_result.Parse_Error._type.SG.parser.expected.L>) => parse_result.Annotated_Token;
|
|
40
|
-
'consume token': () => void;
|
|
41
|
-
};
|
|
42
|
-
export declare const create_token_iterator: ($: parse_result.Tokenizer_Result) => Token_Iterator;
|
|
43
|
-
export {};
|