@cr_docs_t/dts 0.26.0 → 0.27.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/dist/dts/FugueTree/FugueTree.d.ts +1 -1
- package/dist/dts/FugueTree/FugueTree.js +1 -1
- package/dist/treesitter/index.d.ts +3 -0
- package/dist/treesitter/index.d.ts.map +1 -0
- package/dist/treesitter/index.js +2 -0
- package/dist/treesitter/parser.d.ts +6 -0
- package/dist/treesitter/parser.d.ts.map +1 -0
- package/dist/treesitter/parser.js +32 -0
- package/dist/treesitter/types/AST.d.ts +1048 -0
- package/dist/treesitter/types/AST.d.ts.map +1 -0
- package/dist/treesitter/types/AST.js +2262 -0
- package/dist/treesitter/types/index.d.ts +2 -0
- package/dist/treesitter/types/index.d.ts.map +1 -0
- package/dist/treesitter/types/index.js +1 -0
- package/dist/treesitter.d.ts +2 -0
- package/dist/treesitter.d.ts.map +1 -0
- package/dist/treesitter.js +1 -0
- package/dist/type-gen.d.ts +2 -0
- package/dist/type-gen.d.ts.map +1 -0
- package/dist/type-gen.js +184 -0
- package/dist/types/index.js +1 -1
- package/package.json +13 -2
|
@@ -0,0 +1,1048 @@
|
|
|
1
|
+
import { Node } from "web-tree-sitter";
|
|
2
|
+
export type NodeId = string;
|
|
3
|
+
export interface ParserContext {
|
|
4
|
+
nodes: Map<NodeId, AstNode>;
|
|
5
|
+
}
|
|
6
|
+
export interface AcronymDefinitionNode {
|
|
7
|
+
id: NodeId;
|
|
8
|
+
parentId: NodeId | null;
|
|
9
|
+
type: "acronym_definition";
|
|
10
|
+
text: string;
|
|
11
|
+
command: NodeId;
|
|
12
|
+
long: NodeId;
|
|
13
|
+
name: NodeId;
|
|
14
|
+
options?: NodeId;
|
|
15
|
+
short: NodeId;
|
|
16
|
+
childrenIds: NodeId[];
|
|
17
|
+
}
|
|
18
|
+
export interface AcronymReferenceNode {
|
|
19
|
+
id: NodeId;
|
|
20
|
+
parentId: NodeId | null;
|
|
21
|
+
type: "acronym_reference";
|
|
22
|
+
text: string;
|
|
23
|
+
command: NodeId;
|
|
24
|
+
name: NodeId;
|
|
25
|
+
options?: NodeId;
|
|
26
|
+
childrenIds: NodeId[];
|
|
27
|
+
}
|
|
28
|
+
export interface AsyEnvironmentNode {
|
|
29
|
+
id: NodeId;
|
|
30
|
+
parentId: NodeId | null;
|
|
31
|
+
type: "asy_environment";
|
|
32
|
+
text: string;
|
|
33
|
+
begin: NodeId;
|
|
34
|
+
code: NodeId;
|
|
35
|
+
end: NodeId;
|
|
36
|
+
childrenIds: NodeId[];
|
|
37
|
+
}
|
|
38
|
+
export interface AsydefEnvironmentNode {
|
|
39
|
+
id: NodeId;
|
|
40
|
+
parentId: NodeId | null;
|
|
41
|
+
type: "asydef_environment";
|
|
42
|
+
text: string;
|
|
43
|
+
begin: NodeId;
|
|
44
|
+
code: NodeId;
|
|
45
|
+
end: NodeId;
|
|
46
|
+
childrenIds: NodeId[];
|
|
47
|
+
}
|
|
48
|
+
export interface AuthorNode {
|
|
49
|
+
id: NodeId;
|
|
50
|
+
parentId: NodeId | null;
|
|
51
|
+
type: "author";
|
|
52
|
+
text: string;
|
|
53
|
+
childrenIds: NodeId[];
|
|
54
|
+
}
|
|
55
|
+
export interface AuthorDeclarationNode {
|
|
56
|
+
id: NodeId;
|
|
57
|
+
parentId: NodeId | null;
|
|
58
|
+
type: "author_declaration";
|
|
59
|
+
text: string;
|
|
60
|
+
authors: NodeId;
|
|
61
|
+
command: NodeId;
|
|
62
|
+
options?: NodeId;
|
|
63
|
+
childrenIds: NodeId[];
|
|
64
|
+
}
|
|
65
|
+
export interface BeginNode {
|
|
66
|
+
id: NodeId;
|
|
67
|
+
parentId: NodeId | null;
|
|
68
|
+
type: "begin";
|
|
69
|
+
text: string;
|
|
70
|
+
command: NodeId;
|
|
71
|
+
language?: NodeId;
|
|
72
|
+
name: NodeId;
|
|
73
|
+
options?: NodeId;
|
|
74
|
+
childrenIds: NodeId[];
|
|
75
|
+
}
|
|
76
|
+
export interface BiblatexIncludeNode {
|
|
77
|
+
id: NodeId;
|
|
78
|
+
parentId: NodeId | null;
|
|
79
|
+
type: "biblatex_include";
|
|
80
|
+
text: string;
|
|
81
|
+
glob: NodeId;
|
|
82
|
+
options?: NodeId;
|
|
83
|
+
childrenIds: NodeId[];
|
|
84
|
+
}
|
|
85
|
+
export interface BibstyleIncludeNode {
|
|
86
|
+
id: NodeId;
|
|
87
|
+
parentId: NodeId | null;
|
|
88
|
+
type: "bibstyle_include";
|
|
89
|
+
text: string;
|
|
90
|
+
command: NodeId;
|
|
91
|
+
path: NodeId;
|
|
92
|
+
childrenIds: NodeId[];
|
|
93
|
+
}
|
|
94
|
+
export interface BibtexIncludeNode {
|
|
95
|
+
id: NodeId;
|
|
96
|
+
parentId: NodeId | null;
|
|
97
|
+
type: "bibtex_include";
|
|
98
|
+
text: string;
|
|
99
|
+
command: NodeId;
|
|
100
|
+
paths: NodeId;
|
|
101
|
+
childrenIds: NodeId[];
|
|
102
|
+
}
|
|
103
|
+
export interface BlockCommentNode {
|
|
104
|
+
id: NodeId;
|
|
105
|
+
parentId: NodeId | null;
|
|
106
|
+
type: "block_comment";
|
|
107
|
+
text: string;
|
|
108
|
+
begin: NodeId;
|
|
109
|
+
comment?: NodeId;
|
|
110
|
+
end?: NodeId;
|
|
111
|
+
childrenIds: NodeId[];
|
|
112
|
+
}
|
|
113
|
+
export interface BrackGroupNode {
|
|
114
|
+
id: NodeId;
|
|
115
|
+
parentId: NodeId | null;
|
|
116
|
+
type: "brack_group";
|
|
117
|
+
text: string;
|
|
118
|
+
childrenIds: NodeId[];
|
|
119
|
+
}
|
|
120
|
+
export interface BrackGroupArgcNode {
|
|
121
|
+
id: NodeId;
|
|
122
|
+
parentId: NodeId | null;
|
|
123
|
+
type: "brack_group_argc";
|
|
124
|
+
text: string;
|
|
125
|
+
value: NodeId;
|
|
126
|
+
childrenIds: NodeId[];
|
|
127
|
+
}
|
|
128
|
+
export interface BrackGroupKeyValueNode {
|
|
129
|
+
id: NodeId;
|
|
130
|
+
parentId: NodeId | null;
|
|
131
|
+
type: "brack_group_key_value";
|
|
132
|
+
text: string;
|
|
133
|
+
pair?: NodeId[];
|
|
134
|
+
childrenIds: NodeId[];
|
|
135
|
+
}
|
|
136
|
+
export interface BrackGroupTextNode {
|
|
137
|
+
id: NodeId;
|
|
138
|
+
parentId: NodeId | null;
|
|
139
|
+
type: "brack_group_text";
|
|
140
|
+
text: string | NodeId;
|
|
141
|
+
childrenIds: NodeId[];
|
|
142
|
+
}
|
|
143
|
+
export interface BrackGroupWordNode {
|
|
144
|
+
id: NodeId;
|
|
145
|
+
parentId: NodeId | null;
|
|
146
|
+
type: "brack_group_word";
|
|
147
|
+
text: string;
|
|
148
|
+
word: NodeId;
|
|
149
|
+
childrenIds: NodeId[];
|
|
150
|
+
}
|
|
151
|
+
export interface CaptionNode {
|
|
152
|
+
id: NodeId;
|
|
153
|
+
parentId: NodeId | null;
|
|
154
|
+
type: "caption";
|
|
155
|
+
text: string;
|
|
156
|
+
command: NodeId;
|
|
157
|
+
long: NodeId;
|
|
158
|
+
short?: NodeId;
|
|
159
|
+
childrenIds: NodeId[];
|
|
160
|
+
}
|
|
161
|
+
export interface ChangesReplacedNode {
|
|
162
|
+
id: NodeId;
|
|
163
|
+
parentId: NodeId | null;
|
|
164
|
+
type: "changes_replaced";
|
|
165
|
+
text: string;
|
|
166
|
+
command: NodeId;
|
|
167
|
+
text_added: NodeId;
|
|
168
|
+
text_deleted: NodeId;
|
|
169
|
+
childrenIds: NodeId[];
|
|
170
|
+
}
|
|
171
|
+
export interface ChapterNode {
|
|
172
|
+
id: NodeId;
|
|
173
|
+
parentId: NodeId | null;
|
|
174
|
+
type: "chapter";
|
|
175
|
+
text: string | NodeId;
|
|
176
|
+
command: NodeId;
|
|
177
|
+
toc?: NodeId;
|
|
178
|
+
childrenIds: NodeId[];
|
|
179
|
+
}
|
|
180
|
+
export interface CitationNode {
|
|
181
|
+
id: NodeId;
|
|
182
|
+
parentId: NodeId | null;
|
|
183
|
+
type: "citation";
|
|
184
|
+
text: string;
|
|
185
|
+
command: NodeId;
|
|
186
|
+
keys: NodeId;
|
|
187
|
+
postnote?: NodeId;
|
|
188
|
+
prenote?: NodeId;
|
|
189
|
+
childrenIds: NodeId[];
|
|
190
|
+
}
|
|
191
|
+
export interface ClassIncludeNode {
|
|
192
|
+
id: NodeId;
|
|
193
|
+
parentId: NodeId | null;
|
|
194
|
+
type: "class_include";
|
|
195
|
+
text: string;
|
|
196
|
+
command: NodeId;
|
|
197
|
+
options?: NodeId;
|
|
198
|
+
path: NodeId;
|
|
199
|
+
childrenIds: NodeId[];
|
|
200
|
+
}
|
|
201
|
+
export interface ColorDefinitionNode {
|
|
202
|
+
id: NodeId;
|
|
203
|
+
parentId: NodeId | null;
|
|
204
|
+
type: "color_definition";
|
|
205
|
+
text: string;
|
|
206
|
+
command: NodeId;
|
|
207
|
+
model: NodeId;
|
|
208
|
+
name: NodeId;
|
|
209
|
+
spec: NodeId;
|
|
210
|
+
childrenIds: NodeId[];
|
|
211
|
+
}
|
|
212
|
+
export interface ColorReferenceNode {
|
|
213
|
+
id: NodeId;
|
|
214
|
+
parentId: NodeId | null;
|
|
215
|
+
type: "color_reference";
|
|
216
|
+
text: string | NodeId;
|
|
217
|
+
command: NodeId;
|
|
218
|
+
model?: NodeId;
|
|
219
|
+
name?: NodeId;
|
|
220
|
+
spec?: NodeId;
|
|
221
|
+
childrenIds: NodeId[];
|
|
222
|
+
}
|
|
223
|
+
export interface ColorSetDefinitionNode {
|
|
224
|
+
id: NodeId;
|
|
225
|
+
parentId: NodeId | null;
|
|
226
|
+
type: "color_set_definition";
|
|
227
|
+
text: string;
|
|
228
|
+
command: NodeId;
|
|
229
|
+
head: NodeId;
|
|
230
|
+
model: NodeId;
|
|
231
|
+
spec: NodeId;
|
|
232
|
+
tail: NodeId;
|
|
233
|
+
ty?: NodeId;
|
|
234
|
+
childrenIds: NodeId[];
|
|
235
|
+
}
|
|
236
|
+
export interface CommentEnvironmentNode {
|
|
237
|
+
id: NodeId;
|
|
238
|
+
parentId: NodeId | null;
|
|
239
|
+
type: "comment_environment";
|
|
240
|
+
text: string;
|
|
241
|
+
begin: NodeId;
|
|
242
|
+
comment: NodeId;
|
|
243
|
+
end: NodeId;
|
|
244
|
+
childrenIds: NodeId[];
|
|
245
|
+
}
|
|
246
|
+
export interface CounterAdditionNode {
|
|
247
|
+
id: NodeId;
|
|
248
|
+
parentId: NodeId | null;
|
|
249
|
+
type: "counter_addition";
|
|
250
|
+
text: string;
|
|
251
|
+
command: NodeId;
|
|
252
|
+
counter: NodeId;
|
|
253
|
+
value: NodeId[];
|
|
254
|
+
childrenIds: NodeId[];
|
|
255
|
+
}
|
|
256
|
+
export interface CounterDeclarationNode {
|
|
257
|
+
id: NodeId;
|
|
258
|
+
parentId: NodeId | null;
|
|
259
|
+
type: "counter_declaration";
|
|
260
|
+
text: string;
|
|
261
|
+
command: NodeId;
|
|
262
|
+
counter: NodeId;
|
|
263
|
+
supercounter?: NodeId;
|
|
264
|
+
childrenIds: NodeId[];
|
|
265
|
+
}
|
|
266
|
+
export interface CounterDefinitionNode {
|
|
267
|
+
id: NodeId;
|
|
268
|
+
parentId: NodeId | null;
|
|
269
|
+
type: "counter_definition";
|
|
270
|
+
text: string;
|
|
271
|
+
command: NodeId;
|
|
272
|
+
counter: NodeId;
|
|
273
|
+
value: NodeId[];
|
|
274
|
+
childrenIds: NodeId[];
|
|
275
|
+
}
|
|
276
|
+
export interface CounterIncrementNode {
|
|
277
|
+
id: NodeId;
|
|
278
|
+
parentId: NodeId | null;
|
|
279
|
+
type: "counter_increment";
|
|
280
|
+
text: string;
|
|
281
|
+
command: NodeId;
|
|
282
|
+
counter: NodeId;
|
|
283
|
+
childrenIds: NodeId[];
|
|
284
|
+
}
|
|
285
|
+
export interface CounterTypesettingNode {
|
|
286
|
+
id: NodeId;
|
|
287
|
+
parentId: NodeId | null;
|
|
288
|
+
type: "counter_typesetting";
|
|
289
|
+
text: string;
|
|
290
|
+
command: NodeId;
|
|
291
|
+
counter: NodeId;
|
|
292
|
+
childrenIds: NodeId[];
|
|
293
|
+
}
|
|
294
|
+
export interface CounterValueNode {
|
|
295
|
+
id: NodeId;
|
|
296
|
+
parentId: NodeId | null;
|
|
297
|
+
type: "counter_value";
|
|
298
|
+
text: string;
|
|
299
|
+
command: NodeId;
|
|
300
|
+
counter: NodeId;
|
|
301
|
+
childrenIds: NodeId[];
|
|
302
|
+
}
|
|
303
|
+
export interface CounterWithinDeclarationNode {
|
|
304
|
+
id: NodeId;
|
|
305
|
+
parentId: NodeId | null;
|
|
306
|
+
type: "counter_within_declaration";
|
|
307
|
+
text: string;
|
|
308
|
+
command: NodeId;
|
|
309
|
+
counter: NodeId;
|
|
310
|
+
supercounter: NodeId;
|
|
311
|
+
childrenIds: NodeId[];
|
|
312
|
+
}
|
|
313
|
+
export interface CounterWithoutDeclarationNode {
|
|
314
|
+
id: NodeId;
|
|
315
|
+
parentId: NodeId | null;
|
|
316
|
+
type: "counter_without_declaration";
|
|
317
|
+
text: string;
|
|
318
|
+
command: NodeId;
|
|
319
|
+
counter: NodeId;
|
|
320
|
+
supercounter: NodeId;
|
|
321
|
+
childrenIds: NodeId[];
|
|
322
|
+
}
|
|
323
|
+
export interface CurlyGroupNode {
|
|
324
|
+
id: NodeId;
|
|
325
|
+
parentId: NodeId | null;
|
|
326
|
+
type: "curly_group";
|
|
327
|
+
text: string;
|
|
328
|
+
childrenIds: NodeId[];
|
|
329
|
+
}
|
|
330
|
+
export interface CurlyGroupAuthorListNode {
|
|
331
|
+
id: NodeId;
|
|
332
|
+
parentId: NodeId | null;
|
|
333
|
+
type: "curly_group_author_list";
|
|
334
|
+
text: string;
|
|
335
|
+
childrenIds: NodeId[];
|
|
336
|
+
}
|
|
337
|
+
export interface CurlyGroupCommandNameNode {
|
|
338
|
+
id: NodeId;
|
|
339
|
+
parentId: NodeId | null;
|
|
340
|
+
type: "curly_group_command_name";
|
|
341
|
+
text: string;
|
|
342
|
+
command: NodeId;
|
|
343
|
+
childrenIds: NodeId[];
|
|
344
|
+
}
|
|
345
|
+
export interface CurlyGroupGlobPatternNode {
|
|
346
|
+
id: NodeId;
|
|
347
|
+
parentId: NodeId | null;
|
|
348
|
+
type: "curly_group_glob_pattern";
|
|
349
|
+
text: string;
|
|
350
|
+
pattern: NodeId;
|
|
351
|
+
childrenIds: NodeId[];
|
|
352
|
+
}
|
|
353
|
+
export interface CurlyGroupImplNode {
|
|
354
|
+
id: NodeId;
|
|
355
|
+
parentId: NodeId | null;
|
|
356
|
+
type: "curly_group_impl";
|
|
357
|
+
text: string;
|
|
358
|
+
childrenIds: NodeId[];
|
|
359
|
+
}
|
|
360
|
+
export interface CurlyGroupKeyValueNode {
|
|
361
|
+
id: NodeId;
|
|
362
|
+
parentId: NodeId | null;
|
|
363
|
+
type: "curly_group_key_value";
|
|
364
|
+
text: string;
|
|
365
|
+
pair?: NodeId[];
|
|
366
|
+
childrenIds: NodeId[];
|
|
367
|
+
}
|
|
368
|
+
export interface CurlyGroupLabelNode {
|
|
369
|
+
id: NodeId;
|
|
370
|
+
parentId: NodeId | null;
|
|
371
|
+
type: "curly_group_label";
|
|
372
|
+
text: string;
|
|
373
|
+
label: NodeId;
|
|
374
|
+
childrenIds: NodeId[];
|
|
375
|
+
}
|
|
376
|
+
export interface CurlyGroupLabelListNode {
|
|
377
|
+
id: NodeId;
|
|
378
|
+
parentId: NodeId | null;
|
|
379
|
+
type: "curly_group_label_list";
|
|
380
|
+
text: string;
|
|
381
|
+
label?: NodeId[];
|
|
382
|
+
childrenIds: NodeId[];
|
|
383
|
+
}
|
|
384
|
+
export interface CurlyGroupPathNode {
|
|
385
|
+
id: NodeId;
|
|
386
|
+
parentId: NodeId | null;
|
|
387
|
+
type: "curly_group_path";
|
|
388
|
+
text: string;
|
|
389
|
+
path: NodeId;
|
|
390
|
+
childrenIds: NodeId[];
|
|
391
|
+
}
|
|
392
|
+
export interface CurlyGroupPathListNode {
|
|
393
|
+
id: NodeId;
|
|
394
|
+
parentId: NodeId | null;
|
|
395
|
+
type: "curly_group_path_list";
|
|
396
|
+
text: string;
|
|
397
|
+
path?: NodeId[];
|
|
398
|
+
childrenIds: NodeId[];
|
|
399
|
+
}
|
|
400
|
+
export interface CurlyGroupSpecNode {
|
|
401
|
+
id: NodeId;
|
|
402
|
+
parentId: NodeId | null;
|
|
403
|
+
type: "curly_group_spec";
|
|
404
|
+
text: string;
|
|
405
|
+
childrenIds: NodeId[];
|
|
406
|
+
}
|
|
407
|
+
export interface CurlyGroupTextNode {
|
|
408
|
+
id: NodeId;
|
|
409
|
+
parentId: NodeId | null;
|
|
410
|
+
type: "curly_group_text";
|
|
411
|
+
text: string | NodeId;
|
|
412
|
+
childrenIds: NodeId[];
|
|
413
|
+
}
|
|
414
|
+
export interface CurlyGroupTextListNode {
|
|
415
|
+
id: NodeId;
|
|
416
|
+
parentId: NodeId | null;
|
|
417
|
+
type: "curly_group_text_list";
|
|
418
|
+
text: string | NodeId[];
|
|
419
|
+
childrenIds: NodeId[];
|
|
420
|
+
}
|
|
421
|
+
export interface CurlyGroupUriNode {
|
|
422
|
+
id: NodeId;
|
|
423
|
+
parentId: NodeId | null;
|
|
424
|
+
type: "curly_group_uri";
|
|
425
|
+
text: string;
|
|
426
|
+
uri: NodeId;
|
|
427
|
+
childrenIds: NodeId[];
|
|
428
|
+
}
|
|
429
|
+
export interface CurlyGroupValueNode {
|
|
430
|
+
id: NodeId;
|
|
431
|
+
parentId: NodeId | null;
|
|
432
|
+
type: "curly_group_value";
|
|
433
|
+
text: string;
|
|
434
|
+
value: NodeId;
|
|
435
|
+
childrenIds: NodeId[];
|
|
436
|
+
}
|
|
437
|
+
export interface CurlyGroupWordNode {
|
|
438
|
+
id: NodeId;
|
|
439
|
+
parentId: NodeId | null;
|
|
440
|
+
type: "curly_group_word";
|
|
441
|
+
text: string;
|
|
442
|
+
word: NodeId;
|
|
443
|
+
childrenIds: NodeId[];
|
|
444
|
+
}
|
|
445
|
+
export interface DisplayedEquationNode {
|
|
446
|
+
id: NodeId;
|
|
447
|
+
parentId: NodeId | null;
|
|
448
|
+
type: "displayed_equation";
|
|
449
|
+
text: string;
|
|
450
|
+
childrenIds: NodeId[];
|
|
451
|
+
}
|
|
452
|
+
export interface EndNode {
|
|
453
|
+
id: NodeId;
|
|
454
|
+
parentId: NodeId | null;
|
|
455
|
+
type: "end";
|
|
456
|
+
text: string;
|
|
457
|
+
command: NodeId;
|
|
458
|
+
name: NodeId;
|
|
459
|
+
childrenIds: NodeId[];
|
|
460
|
+
}
|
|
461
|
+
export interface EnumItemNode {
|
|
462
|
+
id: NodeId;
|
|
463
|
+
parentId: NodeId | null;
|
|
464
|
+
type: "enum_item";
|
|
465
|
+
text: string;
|
|
466
|
+
command: NodeId;
|
|
467
|
+
label?: NodeId;
|
|
468
|
+
childrenIds: NodeId[];
|
|
469
|
+
}
|
|
470
|
+
export interface EnvironmentDefinitionNode {
|
|
471
|
+
id: NodeId;
|
|
472
|
+
parentId: NodeId | null;
|
|
473
|
+
type: "environment_definition";
|
|
474
|
+
text: string;
|
|
475
|
+
argc?: NodeId;
|
|
476
|
+
begin?: NodeId;
|
|
477
|
+
command: NodeId;
|
|
478
|
+
end?: NodeId;
|
|
479
|
+
name: NodeId[];
|
|
480
|
+
spec?: NodeId;
|
|
481
|
+
childrenIds: NodeId[];
|
|
482
|
+
}
|
|
483
|
+
export interface GenericCommandNode {
|
|
484
|
+
id: NodeId;
|
|
485
|
+
parentId: NodeId | null;
|
|
486
|
+
type: "generic_command";
|
|
487
|
+
text: string;
|
|
488
|
+
arg?: NodeId[];
|
|
489
|
+
command: NodeId;
|
|
490
|
+
childrenIds: NodeId[];
|
|
491
|
+
}
|
|
492
|
+
export interface GenericEnvironmentNode {
|
|
493
|
+
id: NodeId;
|
|
494
|
+
parentId: NodeId | null;
|
|
495
|
+
type: "generic_environment";
|
|
496
|
+
text: string;
|
|
497
|
+
begin: NodeId;
|
|
498
|
+
end: NodeId;
|
|
499
|
+
childrenIds: NodeId[];
|
|
500
|
+
}
|
|
501
|
+
export interface GlobPatternNode {
|
|
502
|
+
id: NodeId;
|
|
503
|
+
parentId: NodeId | null;
|
|
504
|
+
type: "glob_pattern";
|
|
505
|
+
text: string;
|
|
506
|
+
childrenIds: NodeId[];
|
|
507
|
+
}
|
|
508
|
+
export interface GlossaryEntryDefinitionNode {
|
|
509
|
+
id: NodeId;
|
|
510
|
+
parentId: NodeId | null;
|
|
511
|
+
type: "glossary_entry_definition";
|
|
512
|
+
text: string;
|
|
513
|
+
command: NodeId;
|
|
514
|
+
name: NodeId;
|
|
515
|
+
options: NodeId;
|
|
516
|
+
childrenIds: NodeId[];
|
|
517
|
+
}
|
|
518
|
+
export interface GlossaryEntryReferenceNode {
|
|
519
|
+
id: NodeId;
|
|
520
|
+
parentId: NodeId | null;
|
|
521
|
+
type: "glossary_entry_reference";
|
|
522
|
+
text: string;
|
|
523
|
+
command: NodeId;
|
|
524
|
+
name: NodeId;
|
|
525
|
+
options?: NodeId;
|
|
526
|
+
childrenIds: NodeId[];
|
|
527
|
+
}
|
|
528
|
+
export interface GraphicsIncludeNode {
|
|
529
|
+
id: NodeId;
|
|
530
|
+
parentId: NodeId | null;
|
|
531
|
+
type: "graphics_include";
|
|
532
|
+
text: string;
|
|
533
|
+
command: NodeId;
|
|
534
|
+
options?: NodeId;
|
|
535
|
+
path: NodeId;
|
|
536
|
+
childrenIds: NodeId[];
|
|
537
|
+
}
|
|
538
|
+
export interface HyperlinkNode {
|
|
539
|
+
id: NodeId;
|
|
540
|
+
parentId: NodeId | null;
|
|
541
|
+
type: "hyperlink";
|
|
542
|
+
text: string;
|
|
543
|
+
command: NodeId;
|
|
544
|
+
label?: NodeId;
|
|
545
|
+
uri: NodeId;
|
|
546
|
+
childrenIds: NodeId[];
|
|
547
|
+
}
|
|
548
|
+
export interface ImportIncludeNode {
|
|
549
|
+
id: NodeId;
|
|
550
|
+
parentId: NodeId | null;
|
|
551
|
+
type: "import_include";
|
|
552
|
+
text: string;
|
|
553
|
+
command: NodeId;
|
|
554
|
+
directory: NodeId;
|
|
555
|
+
file: NodeId;
|
|
556
|
+
childrenIds: NodeId[];
|
|
557
|
+
}
|
|
558
|
+
export interface InkscapeIncludeNode {
|
|
559
|
+
id: NodeId;
|
|
560
|
+
parentId: NodeId | null;
|
|
561
|
+
type: "inkscape_include";
|
|
562
|
+
text: string;
|
|
563
|
+
command: NodeId;
|
|
564
|
+
options?: NodeId;
|
|
565
|
+
path: NodeId;
|
|
566
|
+
childrenIds: NodeId[];
|
|
567
|
+
}
|
|
568
|
+
export interface InlineFormulaNode {
|
|
569
|
+
id: NodeId;
|
|
570
|
+
parentId: NodeId | null;
|
|
571
|
+
type: "inline_formula";
|
|
572
|
+
text: string;
|
|
573
|
+
childrenIds: NodeId[];
|
|
574
|
+
}
|
|
575
|
+
export interface KeyValuePairNode {
|
|
576
|
+
id: NodeId;
|
|
577
|
+
parentId: NodeId | null;
|
|
578
|
+
type: "key_value_pair";
|
|
579
|
+
text: string;
|
|
580
|
+
key: NodeId;
|
|
581
|
+
value?: NodeId;
|
|
582
|
+
childrenIds: NodeId[];
|
|
583
|
+
}
|
|
584
|
+
export interface LabelDefinitionNode {
|
|
585
|
+
id: NodeId;
|
|
586
|
+
parentId: NodeId | null;
|
|
587
|
+
type: "label_definition";
|
|
588
|
+
text: string;
|
|
589
|
+
command: NodeId;
|
|
590
|
+
name: NodeId;
|
|
591
|
+
childrenIds: NodeId[];
|
|
592
|
+
}
|
|
593
|
+
export interface LabelNumberNode {
|
|
594
|
+
id: NodeId;
|
|
595
|
+
parentId: NodeId | null;
|
|
596
|
+
type: "label_number";
|
|
597
|
+
text: string;
|
|
598
|
+
command: NodeId;
|
|
599
|
+
name: NodeId;
|
|
600
|
+
number: NodeId;
|
|
601
|
+
childrenIds: NodeId[];
|
|
602
|
+
}
|
|
603
|
+
export interface LabelReferenceNode {
|
|
604
|
+
id: NodeId;
|
|
605
|
+
parentId: NodeId | null;
|
|
606
|
+
type: "label_reference";
|
|
607
|
+
text: string;
|
|
608
|
+
command: NodeId;
|
|
609
|
+
names: NodeId;
|
|
610
|
+
childrenIds: NodeId[];
|
|
611
|
+
}
|
|
612
|
+
export interface LabelReferenceRangeNode {
|
|
613
|
+
id: NodeId;
|
|
614
|
+
parentId: NodeId | null;
|
|
615
|
+
type: "label_reference_range";
|
|
616
|
+
text: string;
|
|
617
|
+
command: NodeId;
|
|
618
|
+
from: NodeId;
|
|
619
|
+
to: NodeId;
|
|
620
|
+
childrenIds: NodeId[];
|
|
621
|
+
}
|
|
622
|
+
export interface LatexIncludeNode {
|
|
623
|
+
id: NodeId;
|
|
624
|
+
parentId: NodeId | null;
|
|
625
|
+
type: "latex_include";
|
|
626
|
+
text: string;
|
|
627
|
+
command: NodeId;
|
|
628
|
+
path: NodeId;
|
|
629
|
+
childrenIds: NodeId[];
|
|
630
|
+
}
|
|
631
|
+
export interface LetCommandDefinitionNode {
|
|
632
|
+
id: NodeId;
|
|
633
|
+
parentId: NodeId | null;
|
|
634
|
+
type: "let_command_definition";
|
|
635
|
+
text: string;
|
|
636
|
+
command: NodeId;
|
|
637
|
+
declaration: NodeId;
|
|
638
|
+
implementation: NodeId;
|
|
639
|
+
childrenIds: NodeId[];
|
|
640
|
+
}
|
|
641
|
+
export interface ListingEnvironmentNode {
|
|
642
|
+
id: NodeId;
|
|
643
|
+
parentId: NodeId | null;
|
|
644
|
+
type: "listing_environment";
|
|
645
|
+
text: string;
|
|
646
|
+
begin: NodeId;
|
|
647
|
+
code: NodeId;
|
|
648
|
+
end: NodeId;
|
|
649
|
+
childrenIds: NodeId[];
|
|
650
|
+
}
|
|
651
|
+
export interface LuacodeEnvironmentNode {
|
|
652
|
+
id: NodeId;
|
|
653
|
+
parentId: NodeId | null;
|
|
654
|
+
type: "luacode_environment";
|
|
655
|
+
text: string;
|
|
656
|
+
begin: NodeId;
|
|
657
|
+
code: NodeId;
|
|
658
|
+
end: NodeId;
|
|
659
|
+
childrenIds: NodeId[];
|
|
660
|
+
}
|
|
661
|
+
export interface MathDelimiterNode {
|
|
662
|
+
id: NodeId;
|
|
663
|
+
parentId: NodeId | null;
|
|
664
|
+
type: "math_delimiter";
|
|
665
|
+
text: string;
|
|
666
|
+
left_command: NodeId;
|
|
667
|
+
left_delimiter: NodeId;
|
|
668
|
+
right_command: NodeId;
|
|
669
|
+
right_delimiter: NodeId;
|
|
670
|
+
childrenIds: NodeId[];
|
|
671
|
+
}
|
|
672
|
+
export interface MathEnvironmentNode {
|
|
673
|
+
id: NodeId;
|
|
674
|
+
parentId: NodeId | null;
|
|
675
|
+
type: "math_environment";
|
|
676
|
+
text: string;
|
|
677
|
+
begin: NodeId;
|
|
678
|
+
end: NodeId;
|
|
679
|
+
childrenIds: NodeId[];
|
|
680
|
+
}
|
|
681
|
+
export interface MintedEnvironmentNode {
|
|
682
|
+
id: NodeId;
|
|
683
|
+
parentId: NodeId | null;
|
|
684
|
+
type: "minted_environment";
|
|
685
|
+
text: string;
|
|
686
|
+
begin: NodeId;
|
|
687
|
+
code: NodeId;
|
|
688
|
+
end: NodeId;
|
|
689
|
+
childrenIds: NodeId[];
|
|
690
|
+
}
|
|
691
|
+
export interface NewCommandDefinitionNode {
|
|
692
|
+
id: NodeId;
|
|
693
|
+
parentId: NodeId | null;
|
|
694
|
+
type: "new_command_definition";
|
|
695
|
+
text: string;
|
|
696
|
+
argc?: NodeId;
|
|
697
|
+
command: NodeId;
|
|
698
|
+
declaration: NodeId;
|
|
699
|
+
default?: NodeId;
|
|
700
|
+
implementation: NodeId;
|
|
701
|
+
spec?: NodeId;
|
|
702
|
+
childrenIds: NodeId[];
|
|
703
|
+
}
|
|
704
|
+
export interface OldCommandDefinitionNode {
|
|
705
|
+
id: NodeId;
|
|
706
|
+
parentId: NodeId | null;
|
|
707
|
+
type: "old_command_definition";
|
|
708
|
+
text: string;
|
|
709
|
+
command: NodeId;
|
|
710
|
+
declaration: NodeId;
|
|
711
|
+
childrenIds: NodeId[];
|
|
712
|
+
}
|
|
713
|
+
export interface OperatorNode {
|
|
714
|
+
id: NodeId;
|
|
715
|
+
parentId: NodeId | null;
|
|
716
|
+
type: "operator";
|
|
717
|
+
text: string;
|
|
718
|
+
childrenIds: NodeId[];
|
|
719
|
+
}
|
|
720
|
+
export interface PackageIncludeNode {
|
|
721
|
+
id: NodeId;
|
|
722
|
+
parentId: NodeId | null;
|
|
723
|
+
type: "package_include";
|
|
724
|
+
text: string;
|
|
725
|
+
command: NodeId;
|
|
726
|
+
options?: NodeId;
|
|
727
|
+
paths: NodeId;
|
|
728
|
+
childrenIds: NodeId[];
|
|
729
|
+
}
|
|
730
|
+
export interface PairedDelimiterDefinitionNode {
|
|
731
|
+
id: NodeId;
|
|
732
|
+
parentId: NodeId | null;
|
|
733
|
+
type: "paired_delimiter_definition";
|
|
734
|
+
text: string;
|
|
735
|
+
argc?: NodeId;
|
|
736
|
+
body?: NodeId;
|
|
737
|
+
command: NodeId;
|
|
738
|
+
declaration: NodeId;
|
|
739
|
+
left: NodeId;
|
|
740
|
+
right: NodeId;
|
|
741
|
+
childrenIds: NodeId[];
|
|
742
|
+
}
|
|
743
|
+
export interface ParagraphNode {
|
|
744
|
+
id: NodeId;
|
|
745
|
+
parentId: NodeId | null;
|
|
746
|
+
type: "paragraph";
|
|
747
|
+
text: string | NodeId;
|
|
748
|
+
command: NodeId;
|
|
749
|
+
toc?: NodeId;
|
|
750
|
+
childrenIds: NodeId[];
|
|
751
|
+
}
|
|
752
|
+
export interface PartNode {
|
|
753
|
+
id: NodeId;
|
|
754
|
+
parentId: NodeId | null;
|
|
755
|
+
type: "part";
|
|
756
|
+
text: string | NodeId;
|
|
757
|
+
command: NodeId;
|
|
758
|
+
toc?: NodeId;
|
|
759
|
+
childrenIds: NodeId[];
|
|
760
|
+
}
|
|
761
|
+
export interface PycodeEnvironmentNode {
|
|
762
|
+
id: NodeId;
|
|
763
|
+
parentId: NodeId | null;
|
|
764
|
+
type: "pycode_environment";
|
|
765
|
+
text: string;
|
|
766
|
+
begin: NodeId;
|
|
767
|
+
code: NodeId;
|
|
768
|
+
end: NodeId;
|
|
769
|
+
childrenIds: NodeId[];
|
|
770
|
+
}
|
|
771
|
+
export interface SageblockEnvironmentNode {
|
|
772
|
+
id: NodeId;
|
|
773
|
+
parentId: NodeId | null;
|
|
774
|
+
type: "sageblock_environment";
|
|
775
|
+
text: string;
|
|
776
|
+
begin: NodeId;
|
|
777
|
+
code: NodeId;
|
|
778
|
+
end: NodeId;
|
|
779
|
+
childrenIds: NodeId[];
|
|
780
|
+
}
|
|
781
|
+
export interface SagesilentEnvironmentNode {
|
|
782
|
+
id: NodeId;
|
|
783
|
+
parentId: NodeId | null;
|
|
784
|
+
type: "sagesilent_environment";
|
|
785
|
+
text: string;
|
|
786
|
+
begin: NodeId;
|
|
787
|
+
code: NodeId;
|
|
788
|
+
end: NodeId;
|
|
789
|
+
childrenIds: NodeId[];
|
|
790
|
+
}
|
|
791
|
+
export interface SectionNode {
|
|
792
|
+
id: NodeId;
|
|
793
|
+
parentId: NodeId | null;
|
|
794
|
+
type: "section";
|
|
795
|
+
text: string | NodeId;
|
|
796
|
+
command: NodeId;
|
|
797
|
+
toc?: NodeId;
|
|
798
|
+
childrenIds: NodeId[];
|
|
799
|
+
}
|
|
800
|
+
export interface SourceFileNode {
|
|
801
|
+
id: NodeId;
|
|
802
|
+
parentId: NodeId | null;
|
|
803
|
+
type: "source_file";
|
|
804
|
+
text: string;
|
|
805
|
+
childrenIds: NodeId[];
|
|
806
|
+
}
|
|
807
|
+
export interface SubparagraphNode {
|
|
808
|
+
id: NodeId;
|
|
809
|
+
parentId: NodeId | null;
|
|
810
|
+
type: "subparagraph";
|
|
811
|
+
text: string | NodeId;
|
|
812
|
+
command: NodeId;
|
|
813
|
+
toc?: NodeId;
|
|
814
|
+
childrenIds: NodeId[];
|
|
815
|
+
}
|
|
816
|
+
export interface SubscriptNode {
|
|
817
|
+
id: NodeId;
|
|
818
|
+
parentId: NodeId | null;
|
|
819
|
+
type: "subscript";
|
|
820
|
+
text: string;
|
|
821
|
+
subscript: NodeId;
|
|
822
|
+
childrenIds: NodeId[];
|
|
823
|
+
}
|
|
824
|
+
export interface SubsectionNode {
|
|
825
|
+
id: NodeId;
|
|
826
|
+
parentId: NodeId | null;
|
|
827
|
+
type: "subsection";
|
|
828
|
+
text: string | NodeId;
|
|
829
|
+
command: NodeId;
|
|
830
|
+
toc?: NodeId;
|
|
831
|
+
childrenIds: NodeId[];
|
|
832
|
+
}
|
|
833
|
+
export interface SubsubsectionNode {
|
|
834
|
+
id: NodeId;
|
|
835
|
+
parentId: NodeId | null;
|
|
836
|
+
type: "subsubsection";
|
|
837
|
+
text: string | NodeId;
|
|
838
|
+
command: NodeId;
|
|
839
|
+
toc?: NodeId;
|
|
840
|
+
childrenIds: NodeId[];
|
|
841
|
+
}
|
|
842
|
+
export interface SuperscriptNode {
|
|
843
|
+
id: NodeId;
|
|
844
|
+
parentId: NodeId | null;
|
|
845
|
+
type: "superscript";
|
|
846
|
+
text: string;
|
|
847
|
+
superscript: NodeId;
|
|
848
|
+
childrenIds: NodeId[];
|
|
849
|
+
}
|
|
850
|
+
export interface SvgIncludeNode {
|
|
851
|
+
id: NodeId;
|
|
852
|
+
parentId: NodeId | null;
|
|
853
|
+
type: "svg_include";
|
|
854
|
+
text: string;
|
|
855
|
+
command: NodeId;
|
|
856
|
+
options?: NodeId;
|
|
857
|
+
path: NodeId;
|
|
858
|
+
childrenIds: NodeId[];
|
|
859
|
+
}
|
|
860
|
+
export interface TextNode {
|
|
861
|
+
id: NodeId;
|
|
862
|
+
parentId: NodeId | null;
|
|
863
|
+
type: "text";
|
|
864
|
+
text: string;
|
|
865
|
+
word: NodeId[];
|
|
866
|
+
childrenIds: NodeId[];
|
|
867
|
+
}
|
|
868
|
+
export interface TextModeNode {
|
|
869
|
+
id: NodeId;
|
|
870
|
+
parentId: NodeId | null;
|
|
871
|
+
type: "text_mode";
|
|
872
|
+
text: string;
|
|
873
|
+
command: NodeId;
|
|
874
|
+
content: NodeId;
|
|
875
|
+
childrenIds: NodeId[];
|
|
876
|
+
}
|
|
877
|
+
export interface TheoremDefinitionNode {
|
|
878
|
+
id: NodeId;
|
|
879
|
+
parentId: NodeId | null;
|
|
880
|
+
type: "theorem_definition";
|
|
881
|
+
text: string;
|
|
882
|
+
command: NodeId;
|
|
883
|
+
counter?: NodeId;
|
|
884
|
+
name: NodeId;
|
|
885
|
+
options?: NodeId;
|
|
886
|
+
title?: NodeId;
|
|
887
|
+
childrenIds: NodeId[];
|
|
888
|
+
}
|
|
889
|
+
export interface TikzLibraryImportNode {
|
|
890
|
+
id: NodeId;
|
|
891
|
+
parentId: NodeId | null;
|
|
892
|
+
type: "tikz_library_import";
|
|
893
|
+
text: string;
|
|
894
|
+
command: NodeId;
|
|
895
|
+
paths: NodeId;
|
|
896
|
+
childrenIds: NodeId[];
|
|
897
|
+
}
|
|
898
|
+
export interface TitleDeclarationNode {
|
|
899
|
+
id: NodeId;
|
|
900
|
+
parentId: NodeId | null;
|
|
901
|
+
type: "title_declaration";
|
|
902
|
+
text: string | NodeId;
|
|
903
|
+
command: NodeId;
|
|
904
|
+
options?: NodeId;
|
|
905
|
+
childrenIds: NodeId[];
|
|
906
|
+
}
|
|
907
|
+
export interface TodoNode {
|
|
908
|
+
id: NodeId;
|
|
909
|
+
parentId: NodeId | null;
|
|
910
|
+
type: "todo";
|
|
911
|
+
text: string;
|
|
912
|
+
arg: NodeId;
|
|
913
|
+
command: NodeId;
|
|
914
|
+
options?: NodeId;
|
|
915
|
+
childrenIds: NodeId[];
|
|
916
|
+
}
|
|
917
|
+
export interface ValueNode {
|
|
918
|
+
id: NodeId;
|
|
919
|
+
parentId: NodeId | null;
|
|
920
|
+
type: "value";
|
|
921
|
+
text: string;
|
|
922
|
+
childrenIds: NodeId[];
|
|
923
|
+
}
|
|
924
|
+
export interface VerbatimEnvironmentNode {
|
|
925
|
+
id: NodeId;
|
|
926
|
+
parentId: NodeId | null;
|
|
927
|
+
type: "verbatim_environment";
|
|
928
|
+
text: string;
|
|
929
|
+
begin: NodeId;
|
|
930
|
+
end: NodeId;
|
|
931
|
+
verbatim: NodeId;
|
|
932
|
+
childrenIds: NodeId[];
|
|
933
|
+
}
|
|
934
|
+
export interface VerbatimIncludeNode {
|
|
935
|
+
id: NodeId;
|
|
936
|
+
parentId: NodeId | null;
|
|
937
|
+
type: "verbatim_include";
|
|
938
|
+
text: string;
|
|
939
|
+
command: NodeId;
|
|
940
|
+
path: NodeId;
|
|
941
|
+
childrenIds: NodeId[];
|
|
942
|
+
}
|
|
943
|
+
export interface ArgcNode {
|
|
944
|
+
id: NodeId;
|
|
945
|
+
parentId: NodeId | null;
|
|
946
|
+
type: "argc";
|
|
947
|
+
text: string;
|
|
948
|
+
childrenIds: NodeId[];
|
|
949
|
+
}
|
|
950
|
+
export interface CommandNameNode {
|
|
951
|
+
id: NodeId;
|
|
952
|
+
parentId: NodeId | null;
|
|
953
|
+
type: "command_name";
|
|
954
|
+
text: string;
|
|
955
|
+
childrenIds: NodeId[];
|
|
956
|
+
}
|
|
957
|
+
export interface CommentNode {
|
|
958
|
+
id: NodeId;
|
|
959
|
+
parentId: NodeId | null;
|
|
960
|
+
type: "comment";
|
|
961
|
+
text: string;
|
|
962
|
+
childrenIds: NodeId[];
|
|
963
|
+
}
|
|
964
|
+
export interface DelimiterNode {
|
|
965
|
+
id: NodeId;
|
|
966
|
+
parentId: NodeId | null;
|
|
967
|
+
type: "delimiter";
|
|
968
|
+
text: string;
|
|
969
|
+
childrenIds: NodeId[];
|
|
970
|
+
}
|
|
971
|
+
export interface LabelNode {
|
|
972
|
+
id: NodeId;
|
|
973
|
+
parentId: NodeId | null;
|
|
974
|
+
type: "label";
|
|
975
|
+
text: string;
|
|
976
|
+
childrenIds: NodeId[];
|
|
977
|
+
}
|
|
978
|
+
export interface LetterNode {
|
|
979
|
+
id: NodeId;
|
|
980
|
+
parentId: NodeId | null;
|
|
981
|
+
type: "letter";
|
|
982
|
+
text: string;
|
|
983
|
+
childrenIds: NodeId[];
|
|
984
|
+
}
|
|
985
|
+
export interface LineCommentNode {
|
|
986
|
+
id: NodeId;
|
|
987
|
+
parentId: NodeId | null;
|
|
988
|
+
type: "line_comment";
|
|
989
|
+
text: string;
|
|
990
|
+
childrenIds: NodeId[];
|
|
991
|
+
}
|
|
992
|
+
export interface PathNode {
|
|
993
|
+
id: NodeId;
|
|
994
|
+
parentId: NodeId | null;
|
|
995
|
+
type: "path";
|
|
996
|
+
text: string;
|
|
997
|
+
childrenIds: NodeId[];
|
|
998
|
+
}
|
|
999
|
+
export interface PlaceholderNode {
|
|
1000
|
+
id: NodeId;
|
|
1001
|
+
parentId: NodeId | null;
|
|
1002
|
+
type: "placeholder";
|
|
1003
|
+
text: string;
|
|
1004
|
+
childrenIds: NodeId[];
|
|
1005
|
+
}
|
|
1006
|
+
export interface SourceCodeNode {
|
|
1007
|
+
id: NodeId;
|
|
1008
|
+
parentId: NodeId | null;
|
|
1009
|
+
type: "source_code";
|
|
1010
|
+
text: string;
|
|
1011
|
+
childrenIds: NodeId[];
|
|
1012
|
+
}
|
|
1013
|
+
export interface TodoCommandNameNode {
|
|
1014
|
+
id: NodeId;
|
|
1015
|
+
parentId: NodeId | null;
|
|
1016
|
+
type: "todo_command_name";
|
|
1017
|
+
text: string;
|
|
1018
|
+
childrenIds: NodeId[];
|
|
1019
|
+
}
|
|
1020
|
+
export interface UriNode {
|
|
1021
|
+
id: NodeId;
|
|
1022
|
+
parentId: NodeId | null;
|
|
1023
|
+
type: "uri";
|
|
1024
|
+
text: string;
|
|
1025
|
+
childrenIds: NodeId[];
|
|
1026
|
+
}
|
|
1027
|
+
export interface ValueLiteralNode {
|
|
1028
|
+
id: NodeId;
|
|
1029
|
+
parentId: NodeId | null;
|
|
1030
|
+
type: "value_literal";
|
|
1031
|
+
text: string;
|
|
1032
|
+
childrenIds: NodeId[];
|
|
1033
|
+
}
|
|
1034
|
+
export interface WordNode {
|
|
1035
|
+
id: NodeId;
|
|
1036
|
+
parentId: NodeId | null;
|
|
1037
|
+
type: "word";
|
|
1038
|
+
text: string;
|
|
1039
|
+
childrenIds: NodeId[];
|
|
1040
|
+
}
|
|
1041
|
+
export type AstNode = AcronymDefinitionNode | AcronymReferenceNode | AsyEnvironmentNode | AsydefEnvironmentNode | AuthorNode | AuthorDeclarationNode | BeginNode | BiblatexIncludeNode | BibstyleIncludeNode | BibtexIncludeNode | BlockCommentNode | BrackGroupNode | BrackGroupArgcNode | BrackGroupKeyValueNode | BrackGroupTextNode | BrackGroupWordNode | CaptionNode | ChangesReplacedNode | ChapterNode | CitationNode | ClassIncludeNode | ColorDefinitionNode | ColorReferenceNode | ColorSetDefinitionNode | CommentEnvironmentNode | CounterAdditionNode | CounterDeclarationNode | CounterDefinitionNode | CounterIncrementNode | CounterTypesettingNode | CounterValueNode | CounterWithinDeclarationNode | CounterWithoutDeclarationNode | CurlyGroupNode | CurlyGroupAuthorListNode | CurlyGroupCommandNameNode | CurlyGroupGlobPatternNode | CurlyGroupImplNode | CurlyGroupKeyValueNode | CurlyGroupLabelNode | CurlyGroupLabelListNode | CurlyGroupPathNode | CurlyGroupPathListNode | CurlyGroupSpecNode | CurlyGroupTextNode | CurlyGroupTextListNode | CurlyGroupUriNode | CurlyGroupValueNode | CurlyGroupWordNode | DisplayedEquationNode | EndNode | EnumItemNode | EnvironmentDefinitionNode | GenericCommandNode | GenericEnvironmentNode | GlobPatternNode | GlossaryEntryDefinitionNode | GlossaryEntryReferenceNode | GraphicsIncludeNode | HyperlinkNode | ImportIncludeNode | InkscapeIncludeNode | InlineFormulaNode | KeyValuePairNode | LabelDefinitionNode | LabelNumberNode | LabelReferenceNode | LabelReferenceRangeNode | LatexIncludeNode | LetCommandDefinitionNode | ListingEnvironmentNode | LuacodeEnvironmentNode | MathDelimiterNode | MathEnvironmentNode | MintedEnvironmentNode | NewCommandDefinitionNode | OldCommandDefinitionNode | OperatorNode | PackageIncludeNode | PairedDelimiterDefinitionNode | ParagraphNode | PartNode | PycodeEnvironmentNode | SageblockEnvironmentNode | SagesilentEnvironmentNode | SectionNode | SourceFileNode | SubparagraphNode | SubscriptNode | SubsectionNode | SubsubsectionNode | SuperscriptNode | SvgIncludeNode | TextNode | TextModeNode | TheoremDefinitionNode | TikzLibraryImportNode | TitleDeclarationNode | TodoNode | ValueNode | VerbatimEnvironmentNode | VerbatimIncludeNode | ArgcNode | CommandNameNode | CommentNode | DelimiterNode | LabelNode | LetterNode | LineCommentNode | PathNode | PlaceholderNode | SourceCodeNode | TodoCommandNameNode | UriNode | ValueLiteralNode | WordNode;
|
|
1042
|
+
export declare const unmarshalNode: (node: Node, ctx: ParserContext, parentId: NodeId | null) => NodeId;
|
|
1043
|
+
export type BragiAST = {
|
|
1044
|
+
rootId: NodeId;
|
|
1045
|
+
nodes: Map<NodeId, AstNode>;
|
|
1046
|
+
};
|
|
1047
|
+
export declare const parseCST: (root: Node | null) => BragiAST;
|
|
1048
|
+
//# sourceMappingURL=AST.d.ts.map
|