astn 0.110.15 → 1.20.5

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.
Files changed (185) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +20 -0
  3. package/.vscode/extensions.json +9 -0
  4. package/.vscode/launch.json +39 -0
  5. package/.vscode/settings.json +8 -0
  6. package/.vscode/tasks.json +33 -0
  7. package/.vscodeignore +15 -0
  8. package/LICENSE.md +204 -0
  9. package/README.md +3 -410
  10. package/backend/package-lock.json +123 -0
  11. package/backend/package.json +6 -0
  12. package/backend/src/index.ts +133 -0
  13. package/backend/tsconfig.json +16 -0
  14. package/client/package-lock.json +581 -0
  15. package/client/package.json +23 -0
  16. package/client/src/extension.ts +249 -0
  17. package/client/src/test/completion.test.ts +43 -0
  18. package/client/src/test/diagnostics.test.ts +41 -0
  19. package/client/src/test/helper.ts +47 -0
  20. package/client/src/test/index.ts +43 -0
  21. package/client/src/test/runTest.ts +27 -0
  22. package/client/testFixture/diagnostics.txt +1 -0
  23. package/client/tsconfig.json +12 -0
  24. package/client/tsconfig.tsbuildinfo +1 -0
  25. package/development.md +12 -0
  26. package/images/icon.png +0 -0
  27. package/language-configuration.json +36 -0
  28. package/package.json +102 -58
  29. package/scripts/e2e.sh +6 -0
  30. package/server/package-lock.json +127 -0
  31. package/server/package.json +22 -0
  32. package/server/src/backend.ts +53 -0
  33. package/server/src/backendapi.ts +66 -0
  34. package/server/src/server.ts +296 -0
  35. package/server/tsconfig.json +14 -0
  36. package/server/tsconfig.tsbuildinfo +1 -0
  37. package/syntaxes/astn.tmLanguage.json +320 -0
  38. package/tsconfig.json +21 -0
  39. package/LICENSE +0 -17
  40. package/dist/bin/convert_to_json.d.ts +0 -2
  41. package/dist/bin/convert_to_json.js +0 -63
  42. package/dist/bin/validate_astn.d.ts +0 -2
  43. package/dist/bin/validate_astn.js +0 -58
  44. package/dist/generated/generic/resolve.d.ts +0 -90
  45. package/dist/generated/generic/resolve.js +0 -259
  46. package/dist/generated/implementation/schemas/ast/migration_boilerplate.d.ts +0 -13
  47. package/dist/generated/implementation/schemas/ast/migration_boilerplate.js +0 -174
  48. package/dist/generated/implementation/schemas/ide/migration_boilerplate.d.ts +0 -2
  49. package/dist/generated/implementation/schemas/ide/migration_boilerplate.js +0 -56
  50. package/dist/generated/implementation/schemas/parse_result/migration_boilerplate.d.ts +0 -6
  51. package/dist/generated/implementation/schemas/parse_result/migration_boilerplate.js +0 -136
  52. package/dist/generated/implementation/schemas/target/migration_boilerplate.d.ts +0 -3
  53. package/dist/generated/implementation/schemas/target/migration_boilerplate.js +0 -73
  54. package/dist/generated/implementation/schemas/target_json/migration_boilerplate.d.ts +0 -3
  55. package/dist/generated/implementation/schemas/target_json/migration_boilerplate.js +0 -67
  56. package/dist/generated/interface/core/poormans_parser.d.ts +0 -184
  57. package/dist/generated/interface/core/poormans_parser.js +0 -3
  58. package/dist/generated/interface/core/resolved.d.ts +0 -100
  59. package/dist/generated/interface/core/resolved.js +0 -3
  60. package/dist/generated/interface/core/unresolved.d.ts +0 -35
  61. package/dist/generated/interface/core/unresolved.js +0 -3
  62. package/dist/generated/interface/schemas/ast/migration_boilerplate.d.ts +0 -266
  63. package/dist/generated/interface/schemas/ast/migration_boilerplate.js +0 -3
  64. package/dist/generated/interface/schemas/ast/poormans_parser.d.ts +0 -1087
  65. package/dist/generated/interface/schemas/ast/poormans_parser.js +0 -3
  66. package/dist/generated/interface/schemas/ast/resolved.d.ts +0 -1087
  67. package/dist/generated/interface/schemas/ast/resolved.js +0 -3
  68. package/dist/generated/interface/schemas/ast/unresolved.d.ts +0 -1087
  69. package/dist/generated/interface/schemas/ast/unresolved.js +0 -3
  70. package/dist/generated/interface/schemas/ide/migration_boilerplate.d.ts +0 -24
  71. package/dist/generated/interface/schemas/ide/migration_boilerplate.js +0 -3
  72. package/dist/generated/interface/schemas/ide/poormans_parser.d.ts +0 -161
  73. package/dist/generated/interface/schemas/ide/poormans_parser.js +0 -3
  74. package/dist/generated/interface/schemas/ide/resolved.d.ts +0 -161
  75. package/dist/generated/interface/schemas/ide/resolved.js +0 -3
  76. package/dist/generated/interface/schemas/ide/unresolved.d.ts +0 -161
  77. package/dist/generated/interface/schemas/ide/unresolved.js +0 -3
  78. package/dist/generated/interface/schemas/parse_result/migration_boilerplate.d.ts +0 -112
  79. package/dist/generated/interface/schemas/parse_result/migration_boilerplate.js +0 -3
  80. package/dist/generated/interface/schemas/parse_result/poormans_parser.d.ts +0 -416
  81. package/dist/generated/interface/schemas/parse_result/poormans_parser.js +0 -3
  82. package/dist/generated/interface/schemas/parse_result/resolved.d.ts +0 -416
  83. package/dist/generated/interface/schemas/parse_result/resolved.js +0 -3
  84. package/dist/generated/interface/schemas/parse_result/unresolved.d.ts +0 -416
  85. package/dist/generated/interface/schemas/parse_result/unresolved.js +0 -3
  86. package/dist/generated/interface/schemas/target/migration_boilerplate.d.ts +0 -46
  87. package/dist/generated/interface/schemas/target/migration_boilerplate.js +0 -3
  88. package/dist/generated/interface/schemas/target/poormans_parser.d.ts +0 -186
  89. package/dist/generated/interface/schemas/target/poormans_parser.js +0 -3
  90. package/dist/generated/interface/schemas/target/resolved.d.ts +0 -186
  91. package/dist/generated/interface/schemas/target/resolved.js +0 -3
  92. package/dist/generated/interface/schemas/target/unresolved.d.ts +0 -186
  93. package/dist/generated/interface/schemas/target/unresolved.js +0 -3
  94. package/dist/generated/interface/schemas/target_json/migration_boilerplate.d.ts +0 -46
  95. package/dist/generated/interface/schemas/target_json/migration_boilerplate.js +0 -3
  96. package/dist/generated/interface/schemas/target_json/poormans_parser.d.ts +0 -169
  97. package/dist/generated/interface/schemas/target_json/poormans_parser.js +0 -3
  98. package/dist/generated/interface/schemas/target_json/resolved.d.ts +0 -169
  99. package/dist/generated/interface/schemas/target_json/resolved.js +0 -3
  100. package/dist/generated/interface/schemas/target_json/unresolved.d.ts +0 -169
  101. package/dist/generated/interface/schemas/target_json/unresolved.js +0 -3
  102. package/dist/globals.d.ts +0 -24
  103. package/dist/globals.js +0 -2
  104. package/dist/index.d.ts +0 -6
  105. package/dist/index.js +0 -43
  106. package/dist/lib/globals.d.ts +0 -24
  107. package/dist/lib/globals.js +0 -2
  108. package/dist/lib/transformations/create_error_message.d.ts +0 -5
  109. package/dist/lib/transformations/create_error_message.js +0 -89
  110. package/dist/lib/transformations/format.d.ts +0 -42
  111. package/dist/lib/transformations/format.js +0 -166
  112. package/dist/lib/transformations/fountain_pen/astn.d.ts +0 -11
  113. package/dist/lib/transformations/fountain_pen/astn.js +0 -156
  114. package/dist/lib/transformations/fountain_pen/json.d.ts +0 -4
  115. package/dist/lib/transformations/fountain_pen/json.js +0 -113
  116. package/dist/lib/transformations/parse.d.ts +0 -11
  117. package/dist/lib/transformations/parse.js +0 -257
  118. package/dist/lib/transformations/parse_generic.d.ts +0 -43
  119. package/dist/lib/transformations/parse_generic.js +0 -644
  120. package/dist/parse/parse.d.ts +0 -11
  121. package/dist/parse/parse.js +0 -267
  122. package/dist/parse/parse_generic.d.ts +0 -43
  123. package/dist/parse/parse_generic.js +0 -656
  124. package/dist/serializers/astn.js +0 -28
  125. package/dist/serializers/json.d.ts +0 -5
  126. package/dist/serializers/json.js +0 -46
  127. package/dist/serializers/parse_result.d.ts +0 -5
  128. package/dist/serializers/parse_result.js +0 -99
  129. package/dist/transformations/ast/ide.d.ts +0 -42
  130. package/dist/transformations/ast/ide.js +0 -176
  131. package/dist/transformations/ast/json_target.d.ts +0 -6
  132. package/dist/transformations/ast/json_target.js +0 -88
  133. package/dist/transformations/create_error_message.d.ts +0 -5
  134. package/dist/transformations/create_error_message.js +0 -89
  135. package/dist/transformations/format.d.ts +0 -42
  136. package/dist/transformations/format.js +0 -166
  137. package/dist/transformations/fountain_pen/astn.d.ts +0 -11
  138. package/dist/transformations/fountain_pen/astn.js +0 -166
  139. package/dist/transformations/fountain_pen/json.d.ts +0 -4
  140. package/dist/transformations/fountain_pen/json.js +0 -123
  141. package/dist/transformations/parse.d.ts +0 -11
  142. package/dist/transformations/parse.js +0 -257
  143. package/dist/transformations/parse_generic.d.ts +0 -43
  144. package/dist/transformations/parse_generic.js +0 -644
  145. package/dist/transformations/target/fountain_pen/astn.d.ts +0 -11
  146. package/dist/transformations/target/fountain_pen/astn.js +0 -156
  147. package/dist/transformations/target/fountain_pen/json.d.ts +0 -4
  148. package/dist/transformations/target/fountain_pen/json.js +0 -113
  149. package/dist/transformations/target/fountain_pen_block.d.ts +0 -11
  150. package/dist/transformations/target/fountain_pen_block.js +0 -166
  151. package/dist/transformations/target_json/fountain_pen_block.d.ts +0 -4
  152. package/dist/transformations/target_json/fountain_pen_block.js +0 -101
  153. package/documentation/railroad_diagram/diagram/apostrophed_string.png +0 -0
  154. package/documentation/railroad_diagram/diagram/astn_document.png +0 -0
  155. package/documentation/railroad_diagram/diagram/backticked_string.png +0 -0
  156. package/documentation/railroad_diagram/diagram/comment.png +0 -0
  157. package/documentation/railroad_diagram/diagram/concise_group.png +0 -0
  158. package/documentation/railroad_diagram/diagram/content.png +0 -0
  159. package/documentation/railroad_diagram/diagram/dictionary.png +0 -0
  160. package/documentation/railroad_diagram/diagram/elements.png +0 -0
  161. package/documentation/railroad_diagram/diagram/escaped_character.png +0 -0
  162. package/documentation/railroad_diagram/diagram/four_hexadecimal_digits.png +0 -0
  163. package/documentation/railroad_diagram/diagram/header.png +0 -0
  164. package/documentation/railroad_diagram/diagram/hexadecimal_digit.png +0 -0
  165. package/documentation/railroad_diagram/diagram/ignorable.png +0 -0
  166. package/documentation/railroad_diagram/diagram/include.png +0 -0
  167. package/documentation/railroad_diagram/diagram/key_value_pairs.png +0 -0
  168. package/documentation/railroad_diagram/diagram/line_comment.png +0 -0
  169. package/documentation/railroad_diagram/diagram/list.png +0 -0
  170. package/documentation/railroad_diagram/diagram/newline_character.png +0 -0
  171. package/documentation/railroad_diagram/diagram/normal_character.png +0 -0
  172. package/documentation/railroad_diagram/diagram/normal_or_newline_character.png +0 -0
  173. package/documentation/railroad_diagram/diagram/quoted_string.png +0 -0
  174. package/documentation/railroad_diagram/diagram/rr-2.5.png +0 -0
  175. package/documentation/railroad_diagram/diagram/set_optional_value.png +0 -0
  176. package/documentation/railroad_diagram/diagram/string.png +0 -0
  177. package/documentation/railroad_diagram/diagram/string_content_character.png +0 -0
  178. package/documentation/railroad_diagram/diagram/tagged_value.png +0 -0
  179. package/documentation/railroad_diagram/diagram/traditional_comment.png +0 -0
  180. package/documentation/railroad_diagram/diagram/undelimited_string.png +0 -0
  181. package/documentation/railroad_diagram/diagram/value.png +0 -0
  182. package/documentation/railroad_diagram/diagram/verbose_group.png +0 -0
  183. package/documentation/railroad_diagram/diagram/whitespace.png +0 -0
  184. package/documentation/railroad_diagram/index.md +0 -425
  185. /package/{dist/serializers/astn.d.ts → client/testFixture/completion.txt} +0 -0
@@ -1,1087 +0,0 @@
1
- import * as _pt from 'exupery-core-types';
2
- import * as _i_core from "../../core/unresolved";
3
- export type _T_Document = {
4
- readonly 'content': _T_Value;
5
- readonly 'header': _pt.Optional_Value<{
6
- readonly '!': _T_Structural_Token;
7
- readonly 'value': _T_Value;
8
- }>;
9
- };
10
- export type _T_Elements = _i_core._T_List<null, {
11
- readonly ',': _pt.Optional_Value<_T_Structural_Token>;
12
- readonly 'value': _T_Value;
13
- }>;
14
- export type _T_Key_Value_Pairs = _i_core._T_List<null, {
15
- readonly ',': _pt.Optional_Value<_T_Structural_Token>;
16
- readonly 'key': _T_String;
17
- readonly 'value': _pt.Optional_Value<{
18
- readonly ':': _T_Structural_Token;
19
- readonly 'value': _T_Value;
20
- }>;
21
- }>;
22
- export type _T_Location = {
23
- readonly 'absolute': number;
24
- readonly 'relative': _T_Relative_Location;
25
- };
26
- export type _T_Range = {
27
- readonly 'end': _T_Location;
28
- readonly 'start': _T_Location;
29
- };
30
- export type _T_Relative_Location = {
31
- readonly 'column': number;
32
- readonly 'line': number;
33
- };
34
- export type _T_String = {
35
- readonly 'range': _T_Range;
36
- readonly 'trailing trivia': _T_Trivia;
37
- readonly 'type': _T_String_Type;
38
- readonly 'value': string;
39
- };
40
- export type _T_String_Type = _i_core._T_State_Group<null, readonly ['apostrophed', null] | readonly ['backticked', null] | readonly ['quoted', null] | readonly ['undelimited', null]>;
41
- export type _T_Structural_Token = {
42
- readonly 'range': _T_Range;
43
- readonly 'trailing trivia': _T_Trivia;
44
- };
45
- export type _T_Trivia = {
46
- readonly 'comments': _i_core._T_List<null, {
47
- readonly 'content': string;
48
- readonly 'range': _T_Range;
49
- readonly 'trailing whitespace': _T_Whitespace;
50
- readonly 'type': _i_core._T_State_Group<null, readonly ['block', null] | readonly ['line', null]>;
51
- }>;
52
- readonly 'leading whitespace': _T_Whitespace;
53
- };
54
- export type _T_Value = {
55
- readonly 'range': _T_Range;
56
- readonly 'type': _i_core._T_State_Group<null, readonly [
57
- 'include',
58
- {
59
- readonly '@': _T_Structural_Token;
60
- readonly 'path': _T_String;
61
- }
62
- ] | readonly [
63
- 'indexed collection',
64
- _i_core._T_State_Group<null, readonly [
65
- 'dictionary',
66
- {
67
- readonly 'entries': _T_Key_Value_Pairs;
68
- readonly '{': _T_Structural_Token;
69
- readonly '}': _T_Structural_Token;
70
- }
71
- ] | readonly [
72
- 'verbose group',
73
- {
74
- readonly '(': _T_Structural_Token;
75
- readonly ')': _T_Structural_Token;
76
- readonly 'entries': _T_Key_Value_Pairs;
77
- }
78
- ]>
79
- ] | readonly [
80
- 'not set',
81
- {
82
- readonly '~': _T_Structural_Token;
83
- }
84
- ] | readonly [
85
- 'ordered collection',
86
- _i_core._T_State_Group<null, readonly [
87
- 'concise group',
88
- {
89
- readonly '<': _T_Structural_Token;
90
- readonly '>': _T_Structural_Token;
91
- readonly 'elements': _T_Elements;
92
- }
93
- ] | readonly [
94
- 'list',
95
- {
96
- readonly '[': _T_Structural_Token;
97
- readonly ']': _T_Structural_Token;
98
- readonly 'elements': _T_Elements;
99
- }
100
- ]>
101
- ] | readonly [
102
- 'set optional value',
103
- {
104
- readonly '*': _T_Structural_Token;
105
- readonly 'value': _T_Value;
106
- }
107
- ] | readonly ['string', _T_String] | readonly [
108
- 'tagged value',
109
- {
110
- readonly 'state': _T_String;
111
- readonly 'value': _T_Value;
112
- readonly '|': _T_Structural_Token;
113
- }
114
- ]>;
115
- };
116
- export type _T_Whitespace = {
117
- readonly 'range': _T_Range;
118
- readonly 'value': string;
119
- };
120
- export type Document = _T_Document;
121
- export type Elements = _T_Elements;
122
- export type Key_Value_Pairs = _T_Key_Value_Pairs;
123
- export type Location = _T_Location;
124
- export type Range = _T_Range;
125
- export type Relative_Location = _T_Relative_Location;
126
- export type String = _T_String;
127
- export type String_Type = _T_String_Type;
128
- export type Structural_Token = _T_Structural_Token;
129
- export type Trivia = _T_Trivia;
130
- export type Value = _T_Value;
131
- export type Whitespace = _T_Whitespace;
132
- export declare namespace _T_Document {
133
- namespace content {
134
- }
135
- type content = _T_Value;
136
- namespace header {
137
- namespace O {
138
- namespace $ex_ {
139
- }
140
- type $ex_ = _T_Structural_Token;
141
- namespace value {
142
- }
143
- type value = _T_Value;
144
- }
145
- type O = {
146
- readonly '!': _T_Structural_Token;
147
- readonly 'value': _T_Value;
148
- };
149
- }
150
- type header = _pt.Optional_Value<{
151
- readonly '!': _T_Structural_Token;
152
- readonly 'value': _T_Value;
153
- }>;
154
- }
155
- export declare namespace _T_Elements {
156
- namespace L {
157
- namespace $cm_ {
158
- namespace O {
159
- }
160
- type O = _T_Structural_Token;
161
- }
162
- type $cm_ = _pt.Optional_Value<_T_Structural_Token>;
163
- namespace value {
164
- }
165
- type value = _T_Value;
166
- }
167
- type L = {
168
- readonly ',': _pt.Optional_Value<_T_Structural_Token>;
169
- readonly 'value': _T_Value;
170
- };
171
- }
172
- export declare namespace _T_Key_Value_Pairs {
173
- namespace L {
174
- namespace $cm_ {
175
- namespace O {
176
- }
177
- type O = _T_Structural_Token;
178
- }
179
- type $cm_ = _pt.Optional_Value<_T_Structural_Token>;
180
- namespace key {
181
- }
182
- type key = _T_String;
183
- namespace value {
184
- namespace O {
185
- namespace $cl_ {
186
- }
187
- type $cl_ = _T_Structural_Token;
188
- namespace value {
189
- }
190
- type value = _T_Value;
191
- }
192
- type O = {
193
- readonly ':': _T_Structural_Token;
194
- readonly 'value': _T_Value;
195
- };
196
- }
197
- type value = _pt.Optional_Value<{
198
- readonly ':': _T_Structural_Token;
199
- readonly 'value': _T_Value;
200
- }>;
201
- }
202
- type L = {
203
- readonly ',': _pt.Optional_Value<_T_Structural_Token>;
204
- readonly 'key': _T_String;
205
- readonly 'value': _pt.Optional_Value<{
206
- readonly ':': _T_Structural_Token;
207
- readonly 'value': _T_Value;
208
- }>;
209
- };
210
- }
211
- export declare namespace _T_Location {
212
- type absolute = number;
213
- namespace relative {
214
- }
215
- type relative = _T_Relative_Location;
216
- }
217
- export declare namespace _T_Range {
218
- namespace end {
219
- }
220
- type end = _T_Location;
221
- namespace start {
222
- }
223
- type start = _T_Location;
224
- }
225
- export declare namespace _T_Relative_Location {
226
- type column = number;
227
- type line = number;
228
- }
229
- export declare namespace _T_String {
230
- namespace range {
231
- }
232
- type range = _T_Range;
233
- namespace trailing_trivia {
234
- }
235
- type trailing_trivia = _T_Trivia;
236
- namespace _type {
237
- }
238
- type _type = _T_String_Type;
239
- type value = string;
240
- }
241
- export declare namespace _T_String_Type {
242
- namespace SG {
243
- type apostrophed = null;
244
- type backticked = null;
245
- type quoted = null;
246
- type undelimited = null;
247
- }
248
- type SG = readonly ['apostrophed', null] | readonly ['backticked', null] | readonly ['quoted', null] | readonly ['undelimited', null];
249
- }
250
- export declare namespace _T_Structural_Token {
251
- namespace range {
252
- }
253
- type range = _T_Range;
254
- namespace trailing_trivia {
255
- }
256
- type trailing_trivia = _T_Trivia;
257
- }
258
- export declare namespace _T_Trivia {
259
- namespace comments {
260
- namespace L {
261
- type content = string;
262
- namespace range {
263
- }
264
- type range = _T_Range;
265
- namespace trailing_whitespace {
266
- }
267
- type trailing_whitespace = _T_Whitespace;
268
- namespace _type {
269
- namespace SG {
270
- type block = null;
271
- type line = null;
272
- }
273
- type SG = readonly ['block', null] | readonly ['line', null];
274
- }
275
- type _type = _i_core._T_State_Group<null, readonly ['block', null] | readonly ['line', null]>;
276
- }
277
- type L = {
278
- readonly 'content': string;
279
- readonly 'range': _T_Range;
280
- readonly 'trailing whitespace': _T_Whitespace;
281
- readonly 'type': _i_core._T_State_Group<null, readonly ['block', null] | readonly ['line', null]>;
282
- };
283
- }
284
- type comments = _i_core._T_List<null, {
285
- readonly 'content': string;
286
- readonly 'range': _T_Range;
287
- readonly 'trailing whitespace': _T_Whitespace;
288
- readonly 'type': _i_core._T_State_Group<null, readonly ['block', null] | readonly ['line', null]>;
289
- }>;
290
- namespace leading_whitespace {
291
- }
292
- type leading_whitespace = _T_Whitespace;
293
- }
294
- export declare namespace _T_Value {
295
- namespace range {
296
- }
297
- type range = _T_Range;
298
- namespace _type {
299
- namespace SG {
300
- namespace include {
301
- namespace $at_ {
302
- }
303
- type $at_ = _T_Structural_Token;
304
- namespace path {
305
- }
306
- type path = _T_String;
307
- }
308
- type include = {
309
- readonly '@': _T_Structural_Token;
310
- readonly 'path': _T_String;
311
- };
312
- namespace indexed_collection {
313
- namespace SG {
314
- namespace dictionary {
315
- namespace entries {
316
- }
317
- type entries = _T_Key_Value_Pairs;
318
- namespace $co_ {
319
- }
320
- type $co_ = _T_Structural_Token;
321
- namespace $cc_ {
322
- }
323
- type $cc_ = _T_Structural_Token;
324
- }
325
- type dictionary = {
326
- readonly 'entries': _T_Key_Value_Pairs;
327
- readonly '{': _T_Structural_Token;
328
- readonly '}': _T_Structural_Token;
329
- };
330
- namespace verbose_group {
331
- namespace $po_ {
332
- }
333
- type $po_ = _T_Structural_Token;
334
- namespace $pc_ {
335
- }
336
- type $pc_ = _T_Structural_Token;
337
- namespace entries {
338
- }
339
- type entries = _T_Key_Value_Pairs;
340
- }
341
- type verbose_group = {
342
- readonly '(': _T_Structural_Token;
343
- readonly ')': _T_Structural_Token;
344
- readonly 'entries': _T_Key_Value_Pairs;
345
- };
346
- }
347
- type SG = readonly [
348
- 'dictionary',
349
- {
350
- readonly 'entries': _T_Key_Value_Pairs;
351
- readonly '{': _T_Structural_Token;
352
- readonly '}': _T_Structural_Token;
353
- }
354
- ] | readonly [
355
- 'verbose group',
356
- {
357
- readonly '(': _T_Structural_Token;
358
- readonly ')': _T_Structural_Token;
359
- readonly 'entries': _T_Key_Value_Pairs;
360
- }
361
- ];
362
- }
363
- type indexed_collection = _i_core._T_State_Group<null, readonly [
364
- 'dictionary',
365
- {
366
- readonly 'entries': _T_Key_Value_Pairs;
367
- readonly '{': _T_Structural_Token;
368
- readonly '}': _T_Structural_Token;
369
- }
370
- ] | readonly [
371
- 'verbose group',
372
- {
373
- readonly '(': _T_Structural_Token;
374
- readonly ')': _T_Structural_Token;
375
- readonly 'entries': _T_Key_Value_Pairs;
376
- }
377
- ]>;
378
- namespace not_set {
379
- namespace $ti_ {
380
- }
381
- type $ti_ = _T_Structural_Token;
382
- }
383
- type not_set = {
384
- readonly '~': _T_Structural_Token;
385
- };
386
- namespace ordered_collection {
387
- namespace SG {
388
- namespace concise_group {
389
- namespace $st_ {
390
- }
391
- type $st_ = _T_Structural_Token;
392
- namespace $gt_ {
393
- }
394
- type $gt_ = _T_Structural_Token;
395
- namespace elements {
396
- }
397
- type elements = _T_Elements;
398
- }
399
- type concise_group = {
400
- readonly '<': _T_Structural_Token;
401
- readonly '>': _T_Structural_Token;
402
- readonly 'elements': _T_Elements;
403
- };
404
- namespace list {
405
- namespace $bo_ {
406
- }
407
- type $bo_ = _T_Structural_Token;
408
- namespace $bc_ {
409
- }
410
- type $bc_ = _T_Structural_Token;
411
- namespace elements {
412
- }
413
- type elements = _T_Elements;
414
- }
415
- type list = {
416
- readonly '[': _T_Structural_Token;
417
- readonly ']': _T_Structural_Token;
418
- readonly 'elements': _T_Elements;
419
- };
420
- }
421
- type SG = readonly [
422
- 'concise group',
423
- {
424
- readonly '<': _T_Structural_Token;
425
- readonly '>': _T_Structural_Token;
426
- readonly 'elements': _T_Elements;
427
- }
428
- ] | readonly [
429
- 'list',
430
- {
431
- readonly '[': _T_Structural_Token;
432
- readonly ']': _T_Structural_Token;
433
- readonly 'elements': _T_Elements;
434
- }
435
- ];
436
- }
437
- type ordered_collection = _i_core._T_State_Group<null, readonly [
438
- 'concise group',
439
- {
440
- readonly '<': _T_Structural_Token;
441
- readonly '>': _T_Structural_Token;
442
- readonly 'elements': _T_Elements;
443
- }
444
- ] | readonly [
445
- 'list',
446
- {
447
- readonly '[': _T_Structural_Token;
448
- readonly ']': _T_Structural_Token;
449
- readonly 'elements': _T_Elements;
450
- }
451
- ]>;
452
- namespace set_optional_value {
453
- namespace $sr_ {
454
- }
455
- type $sr_ = _T_Structural_Token;
456
- namespace value {
457
- }
458
- type value = _T_Value;
459
- }
460
- type set_optional_value = {
461
- readonly '*': _T_Structural_Token;
462
- readonly 'value': _T_Value;
463
- };
464
- namespace _string {
465
- }
466
- type _string = _T_String;
467
- namespace tagged_value {
468
- namespace state {
469
- }
470
- type state = _T_String;
471
- namespace value {
472
- }
473
- type value = _T_Value;
474
- namespace $vb_ {
475
- }
476
- type $vb_ = _T_Structural_Token;
477
- }
478
- type tagged_value = {
479
- readonly 'state': _T_String;
480
- readonly 'value': _T_Value;
481
- readonly '|': _T_Structural_Token;
482
- };
483
- }
484
- type SG = readonly [
485
- 'include',
486
- {
487
- readonly '@': _T_Structural_Token;
488
- readonly 'path': _T_String;
489
- }
490
- ] | readonly [
491
- 'indexed collection',
492
- _i_core._T_State_Group<null, readonly [
493
- 'dictionary',
494
- {
495
- readonly 'entries': _T_Key_Value_Pairs;
496
- readonly '{': _T_Structural_Token;
497
- readonly '}': _T_Structural_Token;
498
- }
499
- ] | readonly [
500
- 'verbose group',
501
- {
502
- readonly '(': _T_Structural_Token;
503
- readonly ')': _T_Structural_Token;
504
- readonly 'entries': _T_Key_Value_Pairs;
505
- }
506
- ]>
507
- ] | readonly [
508
- 'not set',
509
- {
510
- readonly '~': _T_Structural_Token;
511
- }
512
- ] | readonly [
513
- 'ordered collection',
514
- _i_core._T_State_Group<null, readonly [
515
- 'concise group',
516
- {
517
- readonly '<': _T_Structural_Token;
518
- readonly '>': _T_Structural_Token;
519
- readonly 'elements': _T_Elements;
520
- }
521
- ] | readonly [
522
- 'list',
523
- {
524
- readonly '[': _T_Structural_Token;
525
- readonly ']': _T_Structural_Token;
526
- readonly 'elements': _T_Elements;
527
- }
528
- ]>
529
- ] | readonly [
530
- 'set optional value',
531
- {
532
- readonly '*': _T_Structural_Token;
533
- readonly 'value': _T_Value;
534
- }
535
- ] | readonly ['string', _T_String] | readonly [
536
- 'tagged value',
537
- {
538
- readonly 'state': _T_String;
539
- readonly 'value': _T_Value;
540
- readonly '|': _T_Structural_Token;
541
- }
542
- ];
543
- }
544
- type _type = _i_core._T_State_Group<null, readonly [
545
- 'include',
546
- {
547
- readonly '@': _T_Structural_Token;
548
- readonly 'path': _T_String;
549
- }
550
- ] | readonly [
551
- 'indexed collection',
552
- _i_core._T_State_Group<null, readonly [
553
- 'dictionary',
554
- {
555
- readonly 'entries': _T_Key_Value_Pairs;
556
- readonly '{': _T_Structural_Token;
557
- readonly '}': _T_Structural_Token;
558
- }
559
- ] | readonly [
560
- 'verbose group',
561
- {
562
- readonly '(': _T_Structural_Token;
563
- readonly ')': _T_Structural_Token;
564
- readonly 'entries': _T_Key_Value_Pairs;
565
- }
566
- ]>
567
- ] | readonly [
568
- 'not set',
569
- {
570
- readonly '~': _T_Structural_Token;
571
- }
572
- ] | readonly [
573
- 'ordered collection',
574
- _i_core._T_State_Group<null, readonly [
575
- 'concise group',
576
- {
577
- readonly '<': _T_Structural_Token;
578
- readonly '>': _T_Structural_Token;
579
- readonly 'elements': _T_Elements;
580
- }
581
- ] | readonly [
582
- 'list',
583
- {
584
- readonly '[': _T_Structural_Token;
585
- readonly ']': _T_Structural_Token;
586
- readonly 'elements': _T_Elements;
587
- }
588
- ]>
589
- ] | readonly [
590
- 'set optional value',
591
- {
592
- readonly '*': _T_Structural_Token;
593
- readonly 'value': _T_Value;
594
- }
595
- ] | readonly ['string', _T_String] | readonly [
596
- 'tagged value',
597
- {
598
- readonly 'state': _T_String;
599
- readonly 'value': _T_Value;
600
- readonly '|': _T_Structural_Token;
601
- }
602
- ]>;
603
- }
604
- export declare namespace _T_Whitespace {
605
- namespace range {
606
- }
607
- type range = _T_Range;
608
- type value = string;
609
- }
610
- export declare namespace Document {
611
- namespace content {
612
- }
613
- type content = _T_Value;
614
- namespace header {
615
- namespace O {
616
- namespace $ex_ {
617
- }
618
- type $ex_ = _T_Structural_Token;
619
- namespace value {
620
- }
621
- type value = _T_Value;
622
- }
623
- type O = {
624
- readonly '!': _T_Structural_Token;
625
- readonly 'value': _T_Value;
626
- };
627
- }
628
- type header = _pt.Optional_Value<{
629
- readonly '!': _T_Structural_Token;
630
- readonly 'value': _T_Value;
631
- }>;
632
- }
633
- export declare namespace Elements {
634
- namespace L {
635
- namespace $cm_ {
636
- namespace O {
637
- }
638
- type O = _T_Structural_Token;
639
- }
640
- type $cm_ = _pt.Optional_Value<_T_Structural_Token>;
641
- namespace value {
642
- }
643
- type value = _T_Value;
644
- }
645
- type L = {
646
- readonly ',': _pt.Optional_Value<_T_Structural_Token>;
647
- readonly 'value': _T_Value;
648
- };
649
- }
650
- export declare namespace Key_Value_Pairs {
651
- namespace L {
652
- namespace $cm_ {
653
- namespace O {
654
- }
655
- type O = _T_Structural_Token;
656
- }
657
- type $cm_ = _pt.Optional_Value<_T_Structural_Token>;
658
- namespace key {
659
- }
660
- type key = _T_String;
661
- namespace value {
662
- namespace O {
663
- namespace $cl_ {
664
- }
665
- type $cl_ = _T_Structural_Token;
666
- namespace value {
667
- }
668
- type value = _T_Value;
669
- }
670
- type O = {
671
- readonly ':': _T_Structural_Token;
672
- readonly 'value': _T_Value;
673
- };
674
- }
675
- type value = _pt.Optional_Value<{
676
- readonly ':': _T_Structural_Token;
677
- readonly 'value': _T_Value;
678
- }>;
679
- }
680
- type L = {
681
- readonly ',': _pt.Optional_Value<_T_Structural_Token>;
682
- readonly 'key': _T_String;
683
- readonly 'value': _pt.Optional_Value<{
684
- readonly ':': _T_Structural_Token;
685
- readonly 'value': _T_Value;
686
- }>;
687
- };
688
- }
689
- export declare namespace Location {
690
- type absolute = number;
691
- namespace relative {
692
- }
693
- type relative = _T_Relative_Location;
694
- }
695
- export declare namespace Range {
696
- namespace end {
697
- }
698
- type end = _T_Location;
699
- namespace start {
700
- }
701
- type start = _T_Location;
702
- }
703
- export declare namespace Relative_Location {
704
- type column = number;
705
- type line = number;
706
- }
707
- export declare namespace String {
708
- namespace range {
709
- }
710
- type range = _T_Range;
711
- namespace trailing_trivia {
712
- }
713
- type trailing_trivia = _T_Trivia;
714
- namespace _type {
715
- }
716
- type _type = _T_String_Type;
717
- type value = string;
718
- }
719
- export declare namespace String_Type {
720
- namespace SG {
721
- type apostrophed = null;
722
- type backticked = null;
723
- type quoted = null;
724
- type undelimited = null;
725
- }
726
- type SG = readonly ['apostrophed', null] | readonly ['backticked', null] | readonly ['quoted', null] | readonly ['undelimited', null];
727
- }
728
- export declare namespace Structural_Token {
729
- namespace range {
730
- }
731
- type range = _T_Range;
732
- namespace trailing_trivia {
733
- }
734
- type trailing_trivia = _T_Trivia;
735
- }
736
- export declare namespace Trivia {
737
- namespace comments {
738
- namespace L {
739
- type content = string;
740
- namespace range {
741
- }
742
- type range = _T_Range;
743
- namespace trailing_whitespace {
744
- }
745
- type trailing_whitespace = _T_Whitespace;
746
- namespace _type {
747
- namespace SG {
748
- type block = null;
749
- type line = null;
750
- }
751
- type SG = readonly ['block', null] | readonly ['line', null];
752
- }
753
- type _type = _i_core._T_State_Group<null, readonly ['block', null] | readonly ['line', null]>;
754
- }
755
- type L = {
756
- readonly 'content': string;
757
- readonly 'range': _T_Range;
758
- readonly 'trailing whitespace': _T_Whitespace;
759
- readonly 'type': _i_core._T_State_Group<null, readonly ['block', null] | readonly ['line', null]>;
760
- };
761
- }
762
- type comments = _i_core._T_List<null, {
763
- readonly 'content': string;
764
- readonly 'range': _T_Range;
765
- readonly 'trailing whitespace': _T_Whitespace;
766
- readonly 'type': _i_core._T_State_Group<null, readonly ['block', null] | readonly ['line', null]>;
767
- }>;
768
- namespace leading_whitespace {
769
- }
770
- type leading_whitespace = _T_Whitespace;
771
- }
772
- export declare namespace Value {
773
- namespace range {
774
- }
775
- type range = _T_Range;
776
- namespace _type {
777
- namespace SG {
778
- namespace include {
779
- namespace $at_ {
780
- }
781
- type $at_ = _T_Structural_Token;
782
- namespace path {
783
- }
784
- type path = _T_String;
785
- }
786
- type include = {
787
- readonly '@': _T_Structural_Token;
788
- readonly 'path': _T_String;
789
- };
790
- namespace indexed_collection {
791
- namespace SG {
792
- namespace dictionary {
793
- namespace entries {
794
- }
795
- type entries = _T_Key_Value_Pairs;
796
- namespace $co_ {
797
- }
798
- type $co_ = _T_Structural_Token;
799
- namespace $cc_ {
800
- }
801
- type $cc_ = _T_Structural_Token;
802
- }
803
- type dictionary = {
804
- readonly 'entries': _T_Key_Value_Pairs;
805
- readonly '{': _T_Structural_Token;
806
- readonly '}': _T_Structural_Token;
807
- };
808
- namespace verbose_group {
809
- namespace $po_ {
810
- }
811
- type $po_ = _T_Structural_Token;
812
- namespace $pc_ {
813
- }
814
- type $pc_ = _T_Structural_Token;
815
- namespace entries {
816
- }
817
- type entries = _T_Key_Value_Pairs;
818
- }
819
- type verbose_group = {
820
- readonly '(': _T_Structural_Token;
821
- readonly ')': _T_Structural_Token;
822
- readonly 'entries': _T_Key_Value_Pairs;
823
- };
824
- }
825
- type SG = readonly [
826
- 'dictionary',
827
- {
828
- readonly 'entries': _T_Key_Value_Pairs;
829
- readonly '{': _T_Structural_Token;
830
- readonly '}': _T_Structural_Token;
831
- }
832
- ] | readonly [
833
- 'verbose group',
834
- {
835
- readonly '(': _T_Structural_Token;
836
- readonly ')': _T_Structural_Token;
837
- readonly 'entries': _T_Key_Value_Pairs;
838
- }
839
- ];
840
- }
841
- type indexed_collection = _i_core._T_State_Group<null, readonly [
842
- 'dictionary',
843
- {
844
- readonly 'entries': _T_Key_Value_Pairs;
845
- readonly '{': _T_Structural_Token;
846
- readonly '}': _T_Structural_Token;
847
- }
848
- ] | readonly [
849
- 'verbose group',
850
- {
851
- readonly '(': _T_Structural_Token;
852
- readonly ')': _T_Structural_Token;
853
- readonly 'entries': _T_Key_Value_Pairs;
854
- }
855
- ]>;
856
- namespace not_set {
857
- namespace $ti_ {
858
- }
859
- type $ti_ = _T_Structural_Token;
860
- }
861
- type not_set = {
862
- readonly '~': _T_Structural_Token;
863
- };
864
- namespace ordered_collection {
865
- namespace SG {
866
- namespace concise_group {
867
- namespace $st_ {
868
- }
869
- type $st_ = _T_Structural_Token;
870
- namespace $gt_ {
871
- }
872
- type $gt_ = _T_Structural_Token;
873
- namespace elements {
874
- }
875
- type elements = _T_Elements;
876
- }
877
- type concise_group = {
878
- readonly '<': _T_Structural_Token;
879
- readonly '>': _T_Structural_Token;
880
- readonly 'elements': _T_Elements;
881
- };
882
- namespace list {
883
- namespace $bo_ {
884
- }
885
- type $bo_ = _T_Structural_Token;
886
- namespace $bc_ {
887
- }
888
- type $bc_ = _T_Structural_Token;
889
- namespace elements {
890
- }
891
- type elements = _T_Elements;
892
- }
893
- type list = {
894
- readonly '[': _T_Structural_Token;
895
- readonly ']': _T_Structural_Token;
896
- readonly 'elements': _T_Elements;
897
- };
898
- }
899
- type SG = readonly [
900
- 'concise group',
901
- {
902
- readonly '<': _T_Structural_Token;
903
- readonly '>': _T_Structural_Token;
904
- readonly 'elements': _T_Elements;
905
- }
906
- ] | readonly [
907
- 'list',
908
- {
909
- readonly '[': _T_Structural_Token;
910
- readonly ']': _T_Structural_Token;
911
- readonly 'elements': _T_Elements;
912
- }
913
- ];
914
- }
915
- type ordered_collection = _i_core._T_State_Group<null, readonly [
916
- 'concise group',
917
- {
918
- readonly '<': _T_Structural_Token;
919
- readonly '>': _T_Structural_Token;
920
- readonly 'elements': _T_Elements;
921
- }
922
- ] | readonly [
923
- 'list',
924
- {
925
- readonly '[': _T_Structural_Token;
926
- readonly ']': _T_Structural_Token;
927
- readonly 'elements': _T_Elements;
928
- }
929
- ]>;
930
- namespace set_optional_value {
931
- namespace $sr_ {
932
- }
933
- type $sr_ = _T_Structural_Token;
934
- namespace value {
935
- }
936
- type value = _T_Value;
937
- }
938
- type set_optional_value = {
939
- readonly '*': _T_Structural_Token;
940
- readonly 'value': _T_Value;
941
- };
942
- namespace _string {
943
- }
944
- type _string = _T_String;
945
- namespace tagged_value {
946
- namespace state {
947
- }
948
- type state = _T_String;
949
- namespace value {
950
- }
951
- type value = _T_Value;
952
- namespace $vb_ {
953
- }
954
- type $vb_ = _T_Structural_Token;
955
- }
956
- type tagged_value = {
957
- readonly 'state': _T_String;
958
- readonly 'value': _T_Value;
959
- readonly '|': _T_Structural_Token;
960
- };
961
- }
962
- type SG = readonly [
963
- 'include',
964
- {
965
- readonly '@': _T_Structural_Token;
966
- readonly 'path': _T_String;
967
- }
968
- ] | readonly [
969
- 'indexed collection',
970
- _i_core._T_State_Group<null, readonly [
971
- 'dictionary',
972
- {
973
- readonly 'entries': _T_Key_Value_Pairs;
974
- readonly '{': _T_Structural_Token;
975
- readonly '}': _T_Structural_Token;
976
- }
977
- ] | readonly [
978
- 'verbose group',
979
- {
980
- readonly '(': _T_Structural_Token;
981
- readonly ')': _T_Structural_Token;
982
- readonly 'entries': _T_Key_Value_Pairs;
983
- }
984
- ]>
985
- ] | readonly [
986
- 'not set',
987
- {
988
- readonly '~': _T_Structural_Token;
989
- }
990
- ] | readonly [
991
- 'ordered collection',
992
- _i_core._T_State_Group<null, readonly [
993
- 'concise group',
994
- {
995
- readonly '<': _T_Structural_Token;
996
- readonly '>': _T_Structural_Token;
997
- readonly 'elements': _T_Elements;
998
- }
999
- ] | readonly [
1000
- 'list',
1001
- {
1002
- readonly '[': _T_Structural_Token;
1003
- readonly ']': _T_Structural_Token;
1004
- readonly 'elements': _T_Elements;
1005
- }
1006
- ]>
1007
- ] | readonly [
1008
- 'set optional value',
1009
- {
1010
- readonly '*': _T_Structural_Token;
1011
- readonly 'value': _T_Value;
1012
- }
1013
- ] | readonly ['string', _T_String] | readonly [
1014
- 'tagged value',
1015
- {
1016
- readonly 'state': _T_String;
1017
- readonly 'value': _T_Value;
1018
- readonly '|': _T_Structural_Token;
1019
- }
1020
- ];
1021
- }
1022
- type _type = _i_core._T_State_Group<null, readonly [
1023
- 'include',
1024
- {
1025
- readonly '@': _T_Structural_Token;
1026
- readonly 'path': _T_String;
1027
- }
1028
- ] | readonly [
1029
- 'indexed collection',
1030
- _i_core._T_State_Group<null, readonly [
1031
- 'dictionary',
1032
- {
1033
- readonly 'entries': _T_Key_Value_Pairs;
1034
- readonly '{': _T_Structural_Token;
1035
- readonly '}': _T_Structural_Token;
1036
- }
1037
- ] | readonly [
1038
- 'verbose group',
1039
- {
1040
- readonly '(': _T_Structural_Token;
1041
- readonly ')': _T_Structural_Token;
1042
- readonly 'entries': _T_Key_Value_Pairs;
1043
- }
1044
- ]>
1045
- ] | readonly [
1046
- 'not set',
1047
- {
1048
- readonly '~': _T_Structural_Token;
1049
- }
1050
- ] | readonly [
1051
- 'ordered collection',
1052
- _i_core._T_State_Group<null, readonly [
1053
- 'concise group',
1054
- {
1055
- readonly '<': _T_Structural_Token;
1056
- readonly '>': _T_Structural_Token;
1057
- readonly 'elements': _T_Elements;
1058
- }
1059
- ] | readonly [
1060
- 'list',
1061
- {
1062
- readonly '[': _T_Structural_Token;
1063
- readonly ']': _T_Structural_Token;
1064
- readonly 'elements': _T_Elements;
1065
- }
1066
- ]>
1067
- ] | readonly [
1068
- 'set optional value',
1069
- {
1070
- readonly '*': _T_Structural_Token;
1071
- readonly 'value': _T_Value;
1072
- }
1073
- ] | readonly ['string', _T_String] | readonly [
1074
- 'tagged value',
1075
- {
1076
- readonly 'state': _T_String;
1077
- readonly 'value': _T_Value;
1078
- readonly '|': _T_Structural_Token;
1079
- }
1080
- ]>;
1081
- }
1082
- export declare namespace Whitespace {
1083
- namespace range {
1084
- }
1085
- type range = _T_Range;
1086
- type value = string;
1087
- }