@plurnk/plurnk-contracts 1.4.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/LICENSE +21 -0
- package/README.md +119 -0
- package/SPEC.md +954 -0
- package/bin/plurnk-contracts.js +43 -0
- package/dist/plurnk.gbnf +394 -0
- package/dist/schema/ClientDisplayCapabilities.json +54 -0
- package/dist/schema/ClientStatement.json +68 -0
- package/dist/schema/EntryReadResult.json +101 -0
- package/dist/schema/LineMarker.json +16 -0
- package/dist/schema/LoopFlags.json +16 -0
- package/dist/schema/MatcherBody.json +84 -0
- package/dist/schema/Notice.json +67 -0
- package/dist/schema/OperationResult.json +44 -0
- package/dist/schema/ParsedPath.json +64 -0
- package/dist/schema/PlurnkStatement.json +264 -0
- package/dist/schema/Position.json +20 -0
- package/dist/schema/ProblemDetails.json +51 -0
- package/dist/schema/ProposalDisposition.json +26 -0
- package/dist/schema/ProposalProjection.json +44 -0
- package/dist/schema/ProviderCost.json +69 -0
- package/dist/schema/ResourceSelection.json +20 -0
- package/dist/schema/SendBody.json +13 -0
- package/dist/schema/TextRegion.json +31 -0
- package/dist/src/AstBuilder.d.ts +24 -0
- package/dist/src/AstBuilder.d.ts.map +1 -0
- package/dist/src/AstBuilder.js +609 -0
- package/dist/src/AstBuilder.js.map +1 -0
- package/dist/src/PathSyntax.d.ts +9 -0
- package/dist/src/PathSyntax.d.ts.map +1 -0
- package/dist/src/PathSyntax.js +36 -0
- package/dist/src/PathSyntax.js.map +1 -0
- package/dist/src/PlurnkErrorStrategy.d.ts +10 -0
- package/dist/src/PlurnkErrorStrategy.d.ts.map +1 -0
- package/dist/src/PlurnkErrorStrategy.js +147 -0
- package/dist/src/PlurnkErrorStrategy.js.map +1 -0
- package/dist/src/PlurnkParseError.d.ts +17 -0
- package/dist/src/PlurnkParseError.d.ts.map +1 -0
- package/dist/src/PlurnkParseError.js +24 -0
- package/dist/src/PlurnkParseError.js.map +1 -0
- package/dist/src/PlurnkParser.d.ts +9 -0
- package/dist/src/PlurnkParser.d.ts.map +1 -0
- package/dist/src/PlurnkParser.js +396 -0
- package/dist/src/PlurnkParser.js.map +1 -0
- package/dist/src/Problems.d.ts +8 -0
- package/dist/src/Problems.d.ts.map +1 -0
- package/dist/src/Problems.js +23 -0
- package/dist/src/Problems.js.map +1 -0
- package/dist/src/RecordingListener.d.ts +9 -0
- package/dist/src/RecordingListener.d.ts.map +1 -0
- package/dist/src/RecordingListener.js +19 -0
- package/dist/src/RecordingListener.js.map +1 -0
- package/dist/src/Validator.d.ts +49 -0
- package/dist/src/Validator.d.ts.map +1 -0
- package/dist/src/Validator.js +211 -0
- package/dist/src/Validator.js.map +1 -0
- package/dist/src/generated/plurnkLexer.d.ts +129 -0
- package/dist/src/generated/plurnkLexer.d.ts.map +1 -0
- package/dist/src/generated/plurnkLexer.js +808 -0
- package/dist/src/generated/plurnkLexer.js.map +1 -0
- package/dist/src/generated/plurnkParser.d.ts +525 -0
- package/dist/src/generated/plurnkParser.d.ts.map +1 -0
- package/dist/src/generated/plurnkParser.js +3896 -0
- package/dist/src/generated/plurnkParser.js.map +1 -0
- package/dist/src/generated/plurnkParserVisitor.d.ts +298 -0
- package/dist/src/generated/plurnkParserVisitor.d.ts.map +1 -0
- package/dist/src/generated/plurnkParserVisitor.js +257 -0
- package/dist/src/generated/plurnkParserVisitor.js.map +1 -0
- package/dist/src/index.d.ts +13 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +10 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/types.d.ts +29 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.generated.d.ts +450 -0
- package/dist/src/types.generated.d.ts.map +1 -0
- package/dist/src/types.generated.js +4 -0
- package/dist/src/types.generated.js.map +1 -0
- package/dist/src/types.js +23 -0
- package/dist/src/types.js.map +1 -0
- package/package.json +87 -0
- package/plurnk.md +220 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { AbstractParseTreeVisitor } from "antlr4ng";
|
|
2
|
+
import { DocumentContext } from "./plurnkParser.ts";
|
|
3
|
+
import { LogContext } from "./plurnkParser.ts";
|
|
4
|
+
import { TurnStatementContext } from "./plurnkParser.ts";
|
|
5
|
+
import { TurnContentContext } from "./plurnkParser.ts";
|
|
6
|
+
import { StatementSeqContext } from "./plurnkParser.ts";
|
|
7
|
+
import { ClientStatementSeqContext } from "./plurnkParser.ts";
|
|
8
|
+
import { ClientStatementContext } from "./plurnkParser.ts";
|
|
9
|
+
import { StatementContext } from "./plurnkParser.ts";
|
|
10
|
+
import { MidStatementContext } from "./plurnkParser.ts";
|
|
11
|
+
import { FindStatementContext } from "./plurnkParser.ts";
|
|
12
|
+
import { ReadStatementContext } from "./plurnkParser.ts";
|
|
13
|
+
import { EditStatementContext } from "./plurnkParser.ts";
|
|
14
|
+
import { CopyStatementContext } from "./plurnkParser.ts";
|
|
15
|
+
import { MoveStatementContext } from "./plurnkParser.ts";
|
|
16
|
+
import { OpenStatementContext } from "./plurnkParser.ts";
|
|
17
|
+
import { FoldStatementContext } from "./plurnkParser.ts";
|
|
18
|
+
import { SendStatementContext } from "./plurnkParser.ts";
|
|
19
|
+
import { MidSendContext } from "./plurnkParser.ts";
|
|
20
|
+
import { ExecStatementContext } from "./plurnkParser.ts";
|
|
21
|
+
import { WorkStatementContext } from "./plurnkParser.ts";
|
|
22
|
+
import { ForkStatementContext } from "./plurnkParser.ts";
|
|
23
|
+
import { KillStatementContext } from "./plurnkParser.ts";
|
|
24
|
+
import { PlanStatementContext } from "./plurnkParser.ts";
|
|
25
|
+
import { LookStatementContext } from "./plurnkParser.ts";
|
|
26
|
+
import { BuffStatementContext } from "./plurnkParser.ts";
|
|
27
|
+
import { TagOpModifiersContext } from "./plurnkParser.ts";
|
|
28
|
+
import { CurationModifiersContext } from "./plurnkParser.ts";
|
|
29
|
+
import { IntOpModifiersContext } from "./plurnkParser.ts";
|
|
30
|
+
import { BranchModifiersContext } from "./plurnkParser.ts";
|
|
31
|
+
import { TermModifiersContext } from "./plurnkParser.ts";
|
|
32
|
+
import { MidModifiersContext } from "./plurnkParser.ts";
|
|
33
|
+
import { ExecModifiersContext } from "./plurnkParser.ts";
|
|
34
|
+
import { TagSignalContext } from "./plurnkParser.ts";
|
|
35
|
+
import { BranchSignalContext } from "./plurnkParser.ts";
|
|
36
|
+
import { IntSignalContext } from "./plurnkParser.ts";
|
|
37
|
+
import { MidSignalContext } from "./plurnkParser.ts";
|
|
38
|
+
import { DispSignalContext } from "./plurnkParser.ts";
|
|
39
|
+
import { IdentSignalContext } from "./plurnkParser.ts";
|
|
40
|
+
import { TargetContext } from "./plurnkParser.ts";
|
|
41
|
+
import { LineMarkerContext } from "./plurnkParser.ts";
|
|
42
|
+
import { BodyContext } from "./plurnkParser.ts";
|
|
43
|
+
/**
|
|
44
|
+
* This interface defines a complete generic visitor for a parse tree produced
|
|
45
|
+
* by `plurnkParser`.
|
|
46
|
+
*
|
|
47
|
+
* @param <Result> The return type of the visit operation. Use `void` for
|
|
48
|
+
* operations with no return type.
|
|
49
|
+
*/
|
|
50
|
+
export declare class plurnkParserVisitor<Result> extends AbstractParseTreeVisitor<Result> {
|
|
51
|
+
/**
|
|
52
|
+
* Visit a parse tree produced by `plurnkParser.document`.
|
|
53
|
+
* @param ctx the parse tree
|
|
54
|
+
* @return the visitor result
|
|
55
|
+
*/
|
|
56
|
+
visitDocument?: (ctx: DocumentContext) => Result;
|
|
57
|
+
/**
|
|
58
|
+
* Visit a parse tree produced by `plurnkParser.log`.
|
|
59
|
+
* @param ctx the parse tree
|
|
60
|
+
* @return the visitor result
|
|
61
|
+
*/
|
|
62
|
+
visitLog?: (ctx: LogContext) => Result;
|
|
63
|
+
/**
|
|
64
|
+
* Visit a parse tree produced by `plurnkParser.turnStatement`.
|
|
65
|
+
* @param ctx the parse tree
|
|
66
|
+
* @return the visitor result
|
|
67
|
+
*/
|
|
68
|
+
visitTurnStatement?: (ctx: TurnStatementContext) => Result;
|
|
69
|
+
/**
|
|
70
|
+
* Visit a parse tree produced by `plurnkParser.turnContent`.
|
|
71
|
+
* @param ctx the parse tree
|
|
72
|
+
* @return the visitor result
|
|
73
|
+
*/
|
|
74
|
+
visitTurnContent?: (ctx: TurnContentContext) => Result;
|
|
75
|
+
/**
|
|
76
|
+
* Visit a parse tree produced by `plurnkParser.statementSeq`.
|
|
77
|
+
* @param ctx the parse tree
|
|
78
|
+
* @return the visitor result
|
|
79
|
+
*/
|
|
80
|
+
visitStatementSeq?: (ctx: StatementSeqContext) => Result;
|
|
81
|
+
/**
|
|
82
|
+
* Visit a parse tree produced by `plurnkParser.clientStatementSeq`.
|
|
83
|
+
* @param ctx the parse tree
|
|
84
|
+
* @return the visitor result
|
|
85
|
+
*/
|
|
86
|
+
visitClientStatementSeq?: (ctx: ClientStatementSeqContext) => Result;
|
|
87
|
+
/**
|
|
88
|
+
* Visit a parse tree produced by `plurnkParser.clientStatement`.
|
|
89
|
+
* @param ctx the parse tree
|
|
90
|
+
* @return the visitor result
|
|
91
|
+
*/
|
|
92
|
+
visitClientStatement?: (ctx: ClientStatementContext) => Result;
|
|
93
|
+
/**
|
|
94
|
+
* Visit a parse tree produced by `plurnkParser.statement`.
|
|
95
|
+
* @param ctx the parse tree
|
|
96
|
+
* @return the visitor result
|
|
97
|
+
*/
|
|
98
|
+
visitStatement?: (ctx: StatementContext) => Result;
|
|
99
|
+
/**
|
|
100
|
+
* Visit a parse tree produced by `plurnkParser.midStatement`.
|
|
101
|
+
* @param ctx the parse tree
|
|
102
|
+
* @return the visitor result
|
|
103
|
+
*/
|
|
104
|
+
visitMidStatement?: (ctx: MidStatementContext) => Result;
|
|
105
|
+
/**
|
|
106
|
+
* Visit a parse tree produced by `plurnkParser.findStatement`.
|
|
107
|
+
* @param ctx the parse tree
|
|
108
|
+
* @return the visitor result
|
|
109
|
+
*/
|
|
110
|
+
visitFindStatement?: (ctx: FindStatementContext) => Result;
|
|
111
|
+
/**
|
|
112
|
+
* Visit a parse tree produced by `plurnkParser.readStatement`.
|
|
113
|
+
* @param ctx the parse tree
|
|
114
|
+
* @return the visitor result
|
|
115
|
+
*/
|
|
116
|
+
visitReadStatement?: (ctx: ReadStatementContext) => Result;
|
|
117
|
+
/**
|
|
118
|
+
* Visit a parse tree produced by `plurnkParser.editStatement`.
|
|
119
|
+
* @param ctx the parse tree
|
|
120
|
+
* @return the visitor result
|
|
121
|
+
*/
|
|
122
|
+
visitEditStatement?: (ctx: EditStatementContext) => Result;
|
|
123
|
+
/**
|
|
124
|
+
* Visit a parse tree produced by `plurnkParser.copyStatement`.
|
|
125
|
+
* @param ctx the parse tree
|
|
126
|
+
* @return the visitor result
|
|
127
|
+
*/
|
|
128
|
+
visitCopyStatement?: (ctx: CopyStatementContext) => Result;
|
|
129
|
+
/**
|
|
130
|
+
* Visit a parse tree produced by `plurnkParser.moveStatement`.
|
|
131
|
+
* @param ctx the parse tree
|
|
132
|
+
* @return the visitor result
|
|
133
|
+
*/
|
|
134
|
+
visitMoveStatement?: (ctx: MoveStatementContext) => Result;
|
|
135
|
+
/**
|
|
136
|
+
* Visit a parse tree produced by `plurnkParser.openStatement`.
|
|
137
|
+
* @param ctx the parse tree
|
|
138
|
+
* @return the visitor result
|
|
139
|
+
*/
|
|
140
|
+
visitOpenStatement?: (ctx: OpenStatementContext) => Result;
|
|
141
|
+
/**
|
|
142
|
+
* Visit a parse tree produced by `plurnkParser.foldStatement`.
|
|
143
|
+
* @param ctx the parse tree
|
|
144
|
+
* @return the visitor result
|
|
145
|
+
*/
|
|
146
|
+
visitFoldStatement?: (ctx: FoldStatementContext) => Result;
|
|
147
|
+
/**
|
|
148
|
+
* Visit a parse tree produced by `plurnkParser.sendStatement`.
|
|
149
|
+
* @param ctx the parse tree
|
|
150
|
+
* @return the visitor result
|
|
151
|
+
*/
|
|
152
|
+
visitSendStatement?: (ctx: SendStatementContext) => Result;
|
|
153
|
+
/**
|
|
154
|
+
* Visit a parse tree produced by `plurnkParser.midSend`.
|
|
155
|
+
* @param ctx the parse tree
|
|
156
|
+
* @return the visitor result
|
|
157
|
+
*/
|
|
158
|
+
visitMidSend?: (ctx: MidSendContext) => Result;
|
|
159
|
+
/**
|
|
160
|
+
* Visit a parse tree produced by `plurnkParser.execStatement`.
|
|
161
|
+
* @param ctx the parse tree
|
|
162
|
+
* @return the visitor result
|
|
163
|
+
*/
|
|
164
|
+
visitExecStatement?: (ctx: ExecStatementContext) => Result;
|
|
165
|
+
/**
|
|
166
|
+
* Visit a parse tree produced by `plurnkParser.workStatement`.
|
|
167
|
+
* @param ctx the parse tree
|
|
168
|
+
* @return the visitor result
|
|
169
|
+
*/
|
|
170
|
+
visitWorkStatement?: (ctx: WorkStatementContext) => Result;
|
|
171
|
+
/**
|
|
172
|
+
* Visit a parse tree produced by `plurnkParser.forkStatement`.
|
|
173
|
+
* @param ctx the parse tree
|
|
174
|
+
* @return the visitor result
|
|
175
|
+
*/
|
|
176
|
+
visitForkStatement?: (ctx: ForkStatementContext) => Result;
|
|
177
|
+
/**
|
|
178
|
+
* Visit a parse tree produced by `plurnkParser.killStatement`.
|
|
179
|
+
* @param ctx the parse tree
|
|
180
|
+
* @return the visitor result
|
|
181
|
+
*/
|
|
182
|
+
visitKillStatement?: (ctx: KillStatementContext) => Result;
|
|
183
|
+
/**
|
|
184
|
+
* Visit a parse tree produced by `plurnkParser.planStatement`.
|
|
185
|
+
* @param ctx the parse tree
|
|
186
|
+
* @return the visitor result
|
|
187
|
+
*/
|
|
188
|
+
visitPlanStatement?: (ctx: PlanStatementContext) => Result;
|
|
189
|
+
/**
|
|
190
|
+
* Visit a parse tree produced by `plurnkParser.lookStatement`.
|
|
191
|
+
* @param ctx the parse tree
|
|
192
|
+
* @return the visitor result
|
|
193
|
+
*/
|
|
194
|
+
visitLookStatement?: (ctx: LookStatementContext) => Result;
|
|
195
|
+
/**
|
|
196
|
+
* Visit a parse tree produced by `plurnkParser.buffStatement`.
|
|
197
|
+
* @param ctx the parse tree
|
|
198
|
+
* @return the visitor result
|
|
199
|
+
*/
|
|
200
|
+
visitBuffStatement?: (ctx: BuffStatementContext) => Result;
|
|
201
|
+
/**
|
|
202
|
+
* Visit a parse tree produced by `plurnkParser.tagOpModifiers`.
|
|
203
|
+
* @param ctx the parse tree
|
|
204
|
+
* @return the visitor result
|
|
205
|
+
*/
|
|
206
|
+
visitTagOpModifiers?: (ctx: TagOpModifiersContext) => Result;
|
|
207
|
+
/**
|
|
208
|
+
* Visit a parse tree produced by `plurnkParser.curationModifiers`.
|
|
209
|
+
* @param ctx the parse tree
|
|
210
|
+
* @return the visitor result
|
|
211
|
+
*/
|
|
212
|
+
visitCurationModifiers?: (ctx: CurationModifiersContext) => Result;
|
|
213
|
+
/**
|
|
214
|
+
* Visit a parse tree produced by `plurnkParser.intOpModifiers`.
|
|
215
|
+
* @param ctx the parse tree
|
|
216
|
+
* @return the visitor result
|
|
217
|
+
*/
|
|
218
|
+
visitIntOpModifiers?: (ctx: IntOpModifiersContext) => Result;
|
|
219
|
+
/**
|
|
220
|
+
* Visit a parse tree produced by `plurnkParser.branchModifiers`.
|
|
221
|
+
* @param ctx the parse tree
|
|
222
|
+
* @return the visitor result
|
|
223
|
+
*/
|
|
224
|
+
visitBranchModifiers?: (ctx: BranchModifiersContext) => Result;
|
|
225
|
+
/**
|
|
226
|
+
* Visit a parse tree produced by `plurnkParser.termModifiers`.
|
|
227
|
+
* @param ctx the parse tree
|
|
228
|
+
* @return the visitor result
|
|
229
|
+
*/
|
|
230
|
+
visitTermModifiers?: (ctx: TermModifiersContext) => Result;
|
|
231
|
+
/**
|
|
232
|
+
* Visit a parse tree produced by `plurnkParser.midModifiers`.
|
|
233
|
+
* @param ctx the parse tree
|
|
234
|
+
* @return the visitor result
|
|
235
|
+
*/
|
|
236
|
+
visitMidModifiers?: (ctx: MidModifiersContext) => Result;
|
|
237
|
+
/**
|
|
238
|
+
* Visit a parse tree produced by `plurnkParser.execModifiers`.
|
|
239
|
+
* @param ctx the parse tree
|
|
240
|
+
* @return the visitor result
|
|
241
|
+
*/
|
|
242
|
+
visitExecModifiers?: (ctx: ExecModifiersContext) => Result;
|
|
243
|
+
/**
|
|
244
|
+
* Visit a parse tree produced by `plurnkParser.tagSignal`.
|
|
245
|
+
* @param ctx the parse tree
|
|
246
|
+
* @return the visitor result
|
|
247
|
+
*/
|
|
248
|
+
visitTagSignal?: (ctx: TagSignalContext) => Result;
|
|
249
|
+
/**
|
|
250
|
+
* Visit a parse tree produced by `plurnkParser.branchSignal`.
|
|
251
|
+
* @param ctx the parse tree
|
|
252
|
+
* @return the visitor result
|
|
253
|
+
*/
|
|
254
|
+
visitBranchSignal?: (ctx: BranchSignalContext) => Result;
|
|
255
|
+
/**
|
|
256
|
+
* Visit a parse tree produced by `plurnkParser.intSignal`.
|
|
257
|
+
* @param ctx the parse tree
|
|
258
|
+
* @return the visitor result
|
|
259
|
+
*/
|
|
260
|
+
visitIntSignal?: (ctx: IntSignalContext) => Result;
|
|
261
|
+
/**
|
|
262
|
+
* Visit a parse tree produced by `plurnkParser.midSignal`.
|
|
263
|
+
* @param ctx the parse tree
|
|
264
|
+
* @return the visitor result
|
|
265
|
+
*/
|
|
266
|
+
visitMidSignal?: (ctx: MidSignalContext) => Result;
|
|
267
|
+
/**
|
|
268
|
+
* Visit a parse tree produced by `plurnkParser.dispSignal`.
|
|
269
|
+
* @param ctx the parse tree
|
|
270
|
+
* @return the visitor result
|
|
271
|
+
*/
|
|
272
|
+
visitDispSignal?: (ctx: DispSignalContext) => Result;
|
|
273
|
+
/**
|
|
274
|
+
* Visit a parse tree produced by `plurnkParser.identSignal`.
|
|
275
|
+
* @param ctx the parse tree
|
|
276
|
+
* @return the visitor result
|
|
277
|
+
*/
|
|
278
|
+
visitIdentSignal?: (ctx: IdentSignalContext) => Result;
|
|
279
|
+
/**
|
|
280
|
+
* Visit a parse tree produced by `plurnkParser.target`.
|
|
281
|
+
* @param ctx the parse tree
|
|
282
|
+
* @return the visitor result
|
|
283
|
+
*/
|
|
284
|
+
visitTarget?: (ctx: TargetContext) => Result;
|
|
285
|
+
/**
|
|
286
|
+
* Visit a parse tree produced by `plurnkParser.lineMarker`.
|
|
287
|
+
* @param ctx the parse tree
|
|
288
|
+
* @return the visitor result
|
|
289
|
+
*/
|
|
290
|
+
visitLineMarker?: (ctx: LineMarkerContext) => Result;
|
|
291
|
+
/**
|
|
292
|
+
* Visit a parse tree produced by `plurnkParser.body`.
|
|
293
|
+
* @param ctx the parse tree
|
|
294
|
+
* @return the visitor result
|
|
295
|
+
*/
|
|
296
|
+
visitBody?: (ctx: BodyContext) => Result;
|
|
297
|
+
}
|
|
298
|
+
//# sourceMappingURL=plurnkParserVisitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plurnkParserVisitor.d.ts","sourceRoot":"","sources":["../../../src/generated/plurnkParserVisitor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD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Aa,KAAK,MAAM,CAAC;IAC7C;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,MAAM,CAAC;IACrD;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,MAAM,CAAC;CAC5C"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { AbstractParseTreeVisitor } from "antlr4ng";
|
|
2
|
+
/**
|
|
3
|
+
* This interface defines a complete generic visitor for a parse tree produced
|
|
4
|
+
* by `plurnkParser`.
|
|
5
|
+
*
|
|
6
|
+
* @param <Result> The return type of the visit operation. Use `void` for
|
|
7
|
+
* operations with no return type.
|
|
8
|
+
*/
|
|
9
|
+
export class plurnkParserVisitor extends AbstractParseTreeVisitor {
|
|
10
|
+
/**
|
|
11
|
+
* Visit a parse tree produced by `plurnkParser.document`.
|
|
12
|
+
* @param ctx the parse tree
|
|
13
|
+
* @return the visitor result
|
|
14
|
+
*/
|
|
15
|
+
visitDocument;
|
|
16
|
+
/**
|
|
17
|
+
* Visit a parse tree produced by `plurnkParser.log`.
|
|
18
|
+
* @param ctx the parse tree
|
|
19
|
+
* @return the visitor result
|
|
20
|
+
*/
|
|
21
|
+
visitLog;
|
|
22
|
+
/**
|
|
23
|
+
* Visit a parse tree produced by `plurnkParser.turnStatement`.
|
|
24
|
+
* @param ctx the parse tree
|
|
25
|
+
* @return the visitor result
|
|
26
|
+
*/
|
|
27
|
+
visitTurnStatement;
|
|
28
|
+
/**
|
|
29
|
+
* Visit a parse tree produced by `plurnkParser.turnContent`.
|
|
30
|
+
* @param ctx the parse tree
|
|
31
|
+
* @return the visitor result
|
|
32
|
+
*/
|
|
33
|
+
visitTurnContent;
|
|
34
|
+
/**
|
|
35
|
+
* Visit a parse tree produced by `plurnkParser.statementSeq`.
|
|
36
|
+
* @param ctx the parse tree
|
|
37
|
+
* @return the visitor result
|
|
38
|
+
*/
|
|
39
|
+
visitStatementSeq;
|
|
40
|
+
/**
|
|
41
|
+
* Visit a parse tree produced by `plurnkParser.clientStatementSeq`.
|
|
42
|
+
* @param ctx the parse tree
|
|
43
|
+
* @return the visitor result
|
|
44
|
+
*/
|
|
45
|
+
visitClientStatementSeq;
|
|
46
|
+
/**
|
|
47
|
+
* Visit a parse tree produced by `plurnkParser.clientStatement`.
|
|
48
|
+
* @param ctx the parse tree
|
|
49
|
+
* @return the visitor result
|
|
50
|
+
*/
|
|
51
|
+
visitClientStatement;
|
|
52
|
+
/**
|
|
53
|
+
* Visit a parse tree produced by `plurnkParser.statement`.
|
|
54
|
+
* @param ctx the parse tree
|
|
55
|
+
* @return the visitor result
|
|
56
|
+
*/
|
|
57
|
+
visitStatement;
|
|
58
|
+
/**
|
|
59
|
+
* Visit a parse tree produced by `plurnkParser.midStatement`.
|
|
60
|
+
* @param ctx the parse tree
|
|
61
|
+
* @return the visitor result
|
|
62
|
+
*/
|
|
63
|
+
visitMidStatement;
|
|
64
|
+
/**
|
|
65
|
+
* Visit a parse tree produced by `plurnkParser.findStatement`.
|
|
66
|
+
* @param ctx the parse tree
|
|
67
|
+
* @return the visitor result
|
|
68
|
+
*/
|
|
69
|
+
visitFindStatement;
|
|
70
|
+
/**
|
|
71
|
+
* Visit a parse tree produced by `plurnkParser.readStatement`.
|
|
72
|
+
* @param ctx the parse tree
|
|
73
|
+
* @return the visitor result
|
|
74
|
+
*/
|
|
75
|
+
visitReadStatement;
|
|
76
|
+
/**
|
|
77
|
+
* Visit a parse tree produced by `plurnkParser.editStatement`.
|
|
78
|
+
* @param ctx the parse tree
|
|
79
|
+
* @return the visitor result
|
|
80
|
+
*/
|
|
81
|
+
visitEditStatement;
|
|
82
|
+
/**
|
|
83
|
+
* Visit a parse tree produced by `plurnkParser.copyStatement`.
|
|
84
|
+
* @param ctx the parse tree
|
|
85
|
+
* @return the visitor result
|
|
86
|
+
*/
|
|
87
|
+
visitCopyStatement;
|
|
88
|
+
/**
|
|
89
|
+
* Visit a parse tree produced by `plurnkParser.moveStatement`.
|
|
90
|
+
* @param ctx the parse tree
|
|
91
|
+
* @return the visitor result
|
|
92
|
+
*/
|
|
93
|
+
visitMoveStatement;
|
|
94
|
+
/**
|
|
95
|
+
* Visit a parse tree produced by `plurnkParser.openStatement`.
|
|
96
|
+
* @param ctx the parse tree
|
|
97
|
+
* @return the visitor result
|
|
98
|
+
*/
|
|
99
|
+
visitOpenStatement;
|
|
100
|
+
/**
|
|
101
|
+
* Visit a parse tree produced by `plurnkParser.foldStatement`.
|
|
102
|
+
* @param ctx the parse tree
|
|
103
|
+
* @return the visitor result
|
|
104
|
+
*/
|
|
105
|
+
visitFoldStatement;
|
|
106
|
+
/**
|
|
107
|
+
* Visit a parse tree produced by `plurnkParser.sendStatement`.
|
|
108
|
+
* @param ctx the parse tree
|
|
109
|
+
* @return the visitor result
|
|
110
|
+
*/
|
|
111
|
+
visitSendStatement;
|
|
112
|
+
/**
|
|
113
|
+
* Visit a parse tree produced by `plurnkParser.midSend`.
|
|
114
|
+
* @param ctx the parse tree
|
|
115
|
+
* @return the visitor result
|
|
116
|
+
*/
|
|
117
|
+
visitMidSend;
|
|
118
|
+
/**
|
|
119
|
+
* Visit a parse tree produced by `plurnkParser.execStatement`.
|
|
120
|
+
* @param ctx the parse tree
|
|
121
|
+
* @return the visitor result
|
|
122
|
+
*/
|
|
123
|
+
visitExecStatement;
|
|
124
|
+
/**
|
|
125
|
+
* Visit a parse tree produced by `plurnkParser.workStatement`.
|
|
126
|
+
* @param ctx the parse tree
|
|
127
|
+
* @return the visitor result
|
|
128
|
+
*/
|
|
129
|
+
visitWorkStatement;
|
|
130
|
+
/**
|
|
131
|
+
* Visit a parse tree produced by `plurnkParser.forkStatement`.
|
|
132
|
+
* @param ctx the parse tree
|
|
133
|
+
* @return the visitor result
|
|
134
|
+
*/
|
|
135
|
+
visitForkStatement;
|
|
136
|
+
/**
|
|
137
|
+
* Visit a parse tree produced by `plurnkParser.killStatement`.
|
|
138
|
+
* @param ctx the parse tree
|
|
139
|
+
* @return the visitor result
|
|
140
|
+
*/
|
|
141
|
+
visitKillStatement;
|
|
142
|
+
/**
|
|
143
|
+
* Visit a parse tree produced by `plurnkParser.planStatement`.
|
|
144
|
+
* @param ctx the parse tree
|
|
145
|
+
* @return the visitor result
|
|
146
|
+
*/
|
|
147
|
+
visitPlanStatement;
|
|
148
|
+
/**
|
|
149
|
+
* Visit a parse tree produced by `plurnkParser.lookStatement`.
|
|
150
|
+
* @param ctx the parse tree
|
|
151
|
+
* @return the visitor result
|
|
152
|
+
*/
|
|
153
|
+
visitLookStatement;
|
|
154
|
+
/**
|
|
155
|
+
* Visit a parse tree produced by `plurnkParser.buffStatement`.
|
|
156
|
+
* @param ctx the parse tree
|
|
157
|
+
* @return the visitor result
|
|
158
|
+
*/
|
|
159
|
+
visitBuffStatement;
|
|
160
|
+
/**
|
|
161
|
+
* Visit a parse tree produced by `plurnkParser.tagOpModifiers`.
|
|
162
|
+
* @param ctx the parse tree
|
|
163
|
+
* @return the visitor result
|
|
164
|
+
*/
|
|
165
|
+
visitTagOpModifiers;
|
|
166
|
+
/**
|
|
167
|
+
* Visit a parse tree produced by `plurnkParser.curationModifiers`.
|
|
168
|
+
* @param ctx the parse tree
|
|
169
|
+
* @return the visitor result
|
|
170
|
+
*/
|
|
171
|
+
visitCurationModifiers;
|
|
172
|
+
/**
|
|
173
|
+
* Visit a parse tree produced by `plurnkParser.intOpModifiers`.
|
|
174
|
+
* @param ctx the parse tree
|
|
175
|
+
* @return the visitor result
|
|
176
|
+
*/
|
|
177
|
+
visitIntOpModifiers;
|
|
178
|
+
/**
|
|
179
|
+
* Visit a parse tree produced by `plurnkParser.branchModifiers`.
|
|
180
|
+
* @param ctx the parse tree
|
|
181
|
+
* @return the visitor result
|
|
182
|
+
*/
|
|
183
|
+
visitBranchModifiers;
|
|
184
|
+
/**
|
|
185
|
+
* Visit a parse tree produced by `plurnkParser.termModifiers`.
|
|
186
|
+
* @param ctx the parse tree
|
|
187
|
+
* @return the visitor result
|
|
188
|
+
*/
|
|
189
|
+
visitTermModifiers;
|
|
190
|
+
/**
|
|
191
|
+
* Visit a parse tree produced by `plurnkParser.midModifiers`.
|
|
192
|
+
* @param ctx the parse tree
|
|
193
|
+
* @return the visitor result
|
|
194
|
+
*/
|
|
195
|
+
visitMidModifiers;
|
|
196
|
+
/**
|
|
197
|
+
* Visit a parse tree produced by `plurnkParser.execModifiers`.
|
|
198
|
+
* @param ctx the parse tree
|
|
199
|
+
* @return the visitor result
|
|
200
|
+
*/
|
|
201
|
+
visitExecModifiers;
|
|
202
|
+
/**
|
|
203
|
+
* Visit a parse tree produced by `plurnkParser.tagSignal`.
|
|
204
|
+
* @param ctx the parse tree
|
|
205
|
+
* @return the visitor result
|
|
206
|
+
*/
|
|
207
|
+
visitTagSignal;
|
|
208
|
+
/**
|
|
209
|
+
* Visit a parse tree produced by `plurnkParser.branchSignal`.
|
|
210
|
+
* @param ctx the parse tree
|
|
211
|
+
* @return the visitor result
|
|
212
|
+
*/
|
|
213
|
+
visitBranchSignal;
|
|
214
|
+
/**
|
|
215
|
+
* Visit a parse tree produced by `plurnkParser.intSignal`.
|
|
216
|
+
* @param ctx the parse tree
|
|
217
|
+
* @return the visitor result
|
|
218
|
+
*/
|
|
219
|
+
visitIntSignal;
|
|
220
|
+
/**
|
|
221
|
+
* Visit a parse tree produced by `plurnkParser.midSignal`.
|
|
222
|
+
* @param ctx the parse tree
|
|
223
|
+
* @return the visitor result
|
|
224
|
+
*/
|
|
225
|
+
visitMidSignal;
|
|
226
|
+
/**
|
|
227
|
+
* Visit a parse tree produced by `plurnkParser.dispSignal`.
|
|
228
|
+
* @param ctx the parse tree
|
|
229
|
+
* @return the visitor result
|
|
230
|
+
*/
|
|
231
|
+
visitDispSignal;
|
|
232
|
+
/**
|
|
233
|
+
* Visit a parse tree produced by `plurnkParser.identSignal`.
|
|
234
|
+
* @param ctx the parse tree
|
|
235
|
+
* @return the visitor result
|
|
236
|
+
*/
|
|
237
|
+
visitIdentSignal;
|
|
238
|
+
/**
|
|
239
|
+
* Visit a parse tree produced by `plurnkParser.target`.
|
|
240
|
+
* @param ctx the parse tree
|
|
241
|
+
* @return the visitor result
|
|
242
|
+
*/
|
|
243
|
+
visitTarget;
|
|
244
|
+
/**
|
|
245
|
+
* Visit a parse tree produced by `plurnkParser.lineMarker`.
|
|
246
|
+
* @param ctx the parse tree
|
|
247
|
+
* @return the visitor result
|
|
248
|
+
*/
|
|
249
|
+
visitLineMarker;
|
|
250
|
+
/**
|
|
251
|
+
* Visit a parse tree produced by `plurnkParser.body`.
|
|
252
|
+
* @param ctx the parse tree
|
|
253
|
+
* @return the visitor result
|
|
254
|
+
*/
|
|
255
|
+
visitBody;
|
|
256
|
+
}
|
|
257
|
+
//# sourceMappingURL=plurnkParserVisitor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plurnkParserVisitor.js","sourceRoot":"","sources":["../../../src/generated/plurnkParserVisitor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AA8CpD;;;;;;GAMG;AACH,MAAM,OAAO,mBAA4B,SAAQ,wBAAgC;IAC7E;;;;OAIG;IACH,aAAa,CAAoC;IACjD;;;;OAIG;IACH,QAAQ,CAA+B;IACvC;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,gBAAgB,CAAuC;IACvD;;;;OAIG;IACH,iBAAiB,CAAwC;IACzD;;;;OAIG;IACH,uBAAuB,CAA8C;IACrE;;;;OAIG;IACH,oBAAoB,CAA2C;IAC/D;;;;OAIG;IACH,cAAc,CAAqC;IACnD;;;;OAIG;IACH,iBAAiB,CAAwC;IACzD;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,YAAY,CAAmC;IAC/C;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,mBAAmB,CAA0C;IAC7D;;;;OAIG;IACH,sBAAsB,CAA6C;IACnE;;;;OAIG;IACH,mBAAmB,CAA0C;IAC7D;;;;OAIG;IACH,oBAAoB,CAA2C;IAC/D;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,iBAAiB,CAAwC;IACzD;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,cAAc,CAAqC;IACnD;;;;OAIG;IACH,iBAAiB,CAAwC;IACzD;;;;OAIG;IACH,cAAc,CAAqC;IACnD;;;;OAIG;IACH,cAAc,CAAqC;IACnD;;;;OAIG;IACH,eAAe,CAAsC;IACrD;;;;OAIG;IACH,gBAAgB,CAAuC;IACvD;;;;OAIG;IACH,WAAW,CAAkC;IAC7C;;;;OAIG;IACH,eAAe,CAAsC;IACrD;;;;OAIG;IACH,SAAS,CAAgC;CAC5C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { default as Validator, InvalidLoopFlagsError, InvalidNoticeError, InvalidOperationResultError, InvalidEntryReadResultError, InvalidProblemDetailsError, InvalidProposalProjectionError, InvalidTextRegionError, InvalidClientDisplayCapabilitiesError, } from "./Validator.ts";
|
|
2
|
+
export { default as Problems } from "./Problems.ts";
|
|
3
|
+
export type { ProblemOptions } from "./Problems.ts";
|
|
4
|
+
export type { ValidationResult } from "./Validator.ts";
|
|
5
|
+
export { default as PlurnkParser } from "./PlurnkParser.ts";
|
|
6
|
+
export { default as PlurnkParseError } from "./PlurnkParseError.ts";
|
|
7
|
+
export { default as PathSyntax } from "./PathSyntax.ts";
|
|
8
|
+
export declare const parsePath: (raw: string) => import("./types.generated.ts").ParsedPath | null;
|
|
9
|
+
export declare const parseResourceSelection: (raw: string) => import("./types.generated.ts").ResourceSelection | null;
|
|
10
|
+
export { DEFAULT_LOOP_FLAGS, PLURNK_OPS, WORKER_NAME, RESERVED_AUTHORITIES, UNKNOWN_POSITION } from "./types.ts";
|
|
11
|
+
export type * from "./types.ts";
|
|
12
|
+
export type { ErrorSource, Severity } from "./PlurnkParseError.ts";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,OAAO,IAAI,SAAS,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,EAC9B,sBAAsB,EACtB,qCAAqC,GACxC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAExD,eAAO,MAAM,SAAS,QAAS,MAAM,qDAA8B,CAAC;AACpE,eAAO,MAAM,sBAAsB,QAAS,MAAM,4DAA2C,CAAC;AAE9F,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACjH,mBAAmB,YAAY,CAAC;AAChC,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AstBuilder from "./AstBuilder.js";
|
|
2
|
+
export { default as Validator, InvalidLoopFlagsError, InvalidNoticeError, InvalidOperationResultError, InvalidEntryReadResultError, InvalidProblemDetailsError, InvalidProposalProjectionError, InvalidTextRegionError, InvalidClientDisplayCapabilitiesError, } from "./Validator.js";
|
|
3
|
+
export { default as Problems } from "./Problems.js";
|
|
4
|
+
export { default as PlurnkParser } from "./PlurnkParser.js";
|
|
5
|
+
export { default as PlurnkParseError } from "./PlurnkParseError.js";
|
|
6
|
+
export { default as PathSyntax } from "./PathSyntax.js";
|
|
7
|
+
export const parsePath = (raw) => AstBuilder.parsePath(raw);
|
|
8
|
+
export const parseResourceSelection = (raw) => AstBuilder.parseResourceSelection(raw);
|
|
9
|
+
export { DEFAULT_LOOP_FLAGS, PLURNK_OPS, WORKER_NAME, RESERVED_AUTHORITIES, UNKNOWN_POSITION } from "./types.js";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EACH,OAAO,IAAI,SAAS,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,EAC9B,sBAAsB,EACtB,qCAAqC,GACxC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;AACpE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,UAAU,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC;AAE9F,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export * from "./types.generated.ts";
|
|
2
|
+
import type { LoopFlags, Position, PlurnkStatement } from "./types.generated.ts";
|
|
3
|
+
import type PlurnkParseError from "./PlurnkParseError.ts";
|
|
4
|
+
export declare const PLURNK_OPS: readonly ["FIND", "READ", "EDIT", "COPY", "MOVE", "OPEN", "FOLD", "SEND", "EXEC", "WORK", "FORK", "KILL", "PLAN"];
|
|
5
|
+
export type PlurnkOp = (typeof PLURNK_OPS)[number];
|
|
6
|
+
export declare const DEFAULT_LOOP_FLAGS: LoopFlags;
|
|
7
|
+
export declare const WORKER_NAME: RegExp;
|
|
8
|
+
export declare const RESERVED_AUTHORITIES: readonly ["commons", "plurnk"];
|
|
9
|
+
export declare const UNKNOWN_POSITION: Readonly<Position>;
|
|
10
|
+
export type ClientOp = "LOOK" | "BUFF";
|
|
11
|
+
export type ParseItem<S = PlurnkStatement> = {
|
|
12
|
+
kind: "statement";
|
|
13
|
+
statement: S;
|
|
14
|
+
} | {
|
|
15
|
+
kind: "error";
|
|
16
|
+
error: PlurnkParseError;
|
|
17
|
+
} | {
|
|
18
|
+
kind: "text";
|
|
19
|
+
text: string;
|
|
20
|
+
position: Position;
|
|
21
|
+
};
|
|
22
|
+
export type ParseResult<S = PlurnkStatement> = {
|
|
23
|
+
items: ParseItem<S>[];
|
|
24
|
+
unparsedTail?: {
|
|
25
|
+
from: Position;
|
|
26
|
+
reason: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAEA,cAAc,sBAAsB,CAAC;AAErC,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAM1D,eAAO,MAAM,UAAU,YACnB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAChG,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,kBAAkB,EAAE,SAM/B,CAAC;AAGH,eAAO,MAAM,WAAW,QAAyC,CAAC;AAGlE,eAAO,MAAM,oBAAoB,gCAAgD,CAAC;AAGlF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,QAAQ,CAAyC,CAAC;AAI1F,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAIvC,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,eAAe,IACnC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,SAAS,EAAE,CAAC,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,gBAAgB,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE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