@surrealdb/lezer 1.0.2 → 1.0.4
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/.turbo/turbo-build.log +3 -3
- package/.turbo/turbo-run-tests.log +500 -42
- package/dist/index.cjs +67 -65
- package/dist/index.js +67 -65
- package/package.json +2 -2
- package/src/parser.js +17 -17
- package/src/parser.terms.js +231 -229
- package/src/surrealql.grammar +41 -37
- package/src/tokens.js +2 -0
- package/test/misc/comments.txt +44 -0
- package/test/misc/functions.txt +63 -0
- package/test/misc/identifiers.txt +22 -0
- package/test/misc/javascript.txt +34 -0
- package/test/misc/operators.txt +213 -0
- package/test/misc/parameters.txt +23 -0
- package/test/misc/subqueries.txt +23 -0
- package/test/statements/alter.txt +47 -0
- package/test/statements/break-continue.txt +15 -0
- package/test/statements/create.txt +103 -0
- package/test/statements/define.txt +281 -0
- package/test/statements/delete.txt +63 -0
- package/test/statements/for.txt +19 -0
- package/test/statements/if-else.txt +47 -0
- package/test/statements/info.txt +63 -0
- package/test/statements/insert.txt +63 -0
- package/test/statements/let.txt +39 -0
- package/test/statements/live.txt +47 -0
- package/test/statements/option.txt +23 -0
- package/test/statements/rebuild.txt +15 -0
- package/test/statements/relate.txt +63 -0
- package/test/statements/remove.txt +95 -0
- package/test/statements/return.txt +39 -0
- package/test/statements/select.txt +231 -0
- package/test/statements/show.txt +31 -0
- package/test/statements/sleep.txt +23 -0
- package/test/statements/throw.txt +23 -0
- package/test/statements/transactions.txt +47 -0
- package/test/statements/update.txt +87 -0
- package/test/statements/upsert.txt +55 -0
- package/test/statements/use.txt +39 -0
- package/test/test-surrealql.js +81 -9
- package/test/values/arrays.txt +47 -0
- package/test/values/casting.txt +95 -0
- package/test/values/closures.txt +39 -0
- package/test/values/durations.txt +41 -0
- package/test/values/format-strings.txt +39 -0
- package/test/values/geometries.txt +23 -0
- package/test/values/idioms.txt +228 -0
- package/test/values/literals.txt +46 -0
- package/test/values/numbers.txt +75 -0
- package/test/values/objects.txt +64 -0
- package/test/values/ranges.txt +31 -0
- package/test/values/record-ids.txt +71 -0
- package/test/values/regex.txt +31 -0
- package/test/values/sets.txt +31 -0
- package/test/values/strings.txt +69 -0
- package/test/statement.txt +0 -132
- package/test/value.txt +0 -259
package/src/parser.terms.js
CHANGED
|
@@ -153,234 +153,236 @@ export const
|
|
|
153
153
|
sleep = 151,
|
|
154
154
|
split = 152,
|
|
155
155
|
start = 153,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
156
|
+
strict = 154,
|
|
157
|
+
structure = 155,
|
|
158
|
+
table = 156,
|
|
159
|
+
tables = 157,
|
|
160
|
+
tb = 158,
|
|
161
|
+
tempfiles = 159,
|
|
162
|
+
terms_cache = 160,
|
|
163
|
+
terms_order = 161,
|
|
164
|
+
then = 162,
|
|
165
|
+
_throw = 163,
|
|
166
|
+
timeout = 164,
|
|
167
|
+
to = 165,
|
|
168
|
+
token = 166,
|
|
169
|
+
tokenizers = 167,
|
|
170
|
+
trace = 168,
|
|
171
|
+
transaction = 169,
|
|
172
|
+
typeKeyword = 170,
|
|
173
|
+
unique = 171,
|
|
174
|
+
unset = 172,
|
|
175
|
+
update = 173,
|
|
176
|
+
upsert = 174,
|
|
177
|
+
url = 175,
|
|
178
|
+
use = 176,
|
|
179
|
+
user = 177,
|
|
180
|
+
valueKeyword = 178,
|
|
181
|
+
values = 179,
|
|
182
|
+
version = 180,
|
|
183
|
+
when = 181,
|
|
184
|
+
where = 182,
|
|
185
|
+
_with = 183,
|
|
186
|
+
after = 184,
|
|
187
|
+
before = 185,
|
|
188
|
+
diff = 186,
|
|
189
|
+
_false = 187,
|
|
190
|
+
full = 188,
|
|
191
|
+
none = 189,
|
|
192
|
+
_null = 190,
|
|
193
|
+
_true = 191,
|
|
194
|
+
IndexTypeClause = 192,
|
|
195
|
+
TokenType = 193,
|
|
196
|
+
binaryOperatorKeyword = 493,
|
|
197
|
+
is = 494,
|
|
198
|
+
opIn = 495,
|
|
199
|
+
opNot = 496,
|
|
200
|
+
Distance = 194,
|
|
201
|
+
minkowski = 195,
|
|
202
|
+
Filter = 196,
|
|
203
|
+
AnalyzerTokenizer = 197,
|
|
204
|
+
_function = 497,
|
|
205
|
+
rand = 198,
|
|
206
|
+
count = 199,
|
|
207
|
+
Comment = 200,
|
|
208
|
+
BlockComment = 201,
|
|
209
|
+
SurrealQL = 202,
|
|
210
|
+
BeginStatement = 203,
|
|
211
|
+
CancelStatement = 204,
|
|
212
|
+
CommitStatement = 205,
|
|
213
|
+
InfoForStatement = 206,
|
|
214
|
+
Ident = 207,
|
|
215
|
+
KillStatement = 208,
|
|
216
|
+
String = 209,
|
|
217
|
+
LiveSelectStatement = 210,
|
|
218
|
+
Predicate = 211,
|
|
219
|
+
prefixedString = 212,
|
|
220
|
+
FormatString = 213,
|
|
221
|
+
Interpolation = 216,
|
|
222
|
+
Int = 217,
|
|
223
|
+
Float = 218,
|
|
224
|
+
Decimal = 219,
|
|
225
|
+
Regex = 220,
|
|
226
|
+
VariableName = 221,
|
|
227
|
+
Array = 225,
|
|
228
|
+
Set = 226,
|
|
229
|
+
RecordId = 227,
|
|
230
|
+
RecordTbIdent = 228,
|
|
231
|
+
RecordIdIdent = 230,
|
|
232
|
+
Object = 231,
|
|
233
|
+
ObjectContent = 232,
|
|
234
|
+
ObjectProperty = 233,
|
|
235
|
+
ObjectKey = 234,
|
|
236
|
+
RecordIdRange = 237,
|
|
237
|
+
FunctionJs = 238,
|
|
238
|
+
ArgumentList = 240,
|
|
239
|
+
IfElseStatement = 241,
|
|
240
|
+
Block = 243,
|
|
241
|
+
SubQuery = 244,
|
|
242
|
+
LetStatement = 246,
|
|
243
|
+
paramDefinition = 247,
|
|
244
|
+
LiteralType = 253,
|
|
245
|
+
Duration = 254,
|
|
246
|
+
DurationPart = 255,
|
|
247
|
+
ObjectTypeContent = 258,
|
|
248
|
+
ObjectTypeProperty = 259,
|
|
249
|
+
DeleteStatement = 262,
|
|
250
|
+
WhereClause = 263,
|
|
251
|
+
ReturnClause = 264,
|
|
252
|
+
Fields = 265,
|
|
253
|
+
AnyStar = 266,
|
|
254
|
+
TimeoutClause = 267,
|
|
255
|
+
ParallelClause = 268,
|
|
256
|
+
CreateStatement = 269,
|
|
257
|
+
FunctionCall = 270,
|
|
258
|
+
FunctionName = 271,
|
|
259
|
+
customFunctionName = 272,
|
|
260
|
+
VersionNumber = 274,
|
|
261
|
+
ContentClause = 275,
|
|
262
|
+
SetClause = 276,
|
|
263
|
+
FieldAssignment = 277,
|
|
264
|
+
assignmentOperator = 278,
|
|
265
|
+
UnsetClause = 279,
|
|
266
|
+
SelectStatement = 280,
|
|
267
|
+
OmitClause = 281,
|
|
268
|
+
WithClause = 282,
|
|
269
|
+
SplitClause = 283,
|
|
270
|
+
Idiom = 284,
|
|
271
|
+
GroupClause = 285,
|
|
272
|
+
OrderClause = 286,
|
|
273
|
+
Order = 287,
|
|
274
|
+
LimitStartComboClause = 288,
|
|
275
|
+
StartClause = 289,
|
|
276
|
+
LimitClause = 290,
|
|
277
|
+
FetchClause = 291,
|
|
278
|
+
Path = 292,
|
|
279
|
+
Lookup = 293,
|
|
280
|
+
Any = 298,
|
|
281
|
+
LookupSelection = 299,
|
|
282
|
+
GraphPredicate = 301,
|
|
283
|
+
Optional = 307,
|
|
284
|
+
At = 308,
|
|
285
|
+
IdiomFunction = 309,
|
|
286
|
+
Destructure = 311,
|
|
287
|
+
Recurse = 312,
|
|
288
|
+
RecurseRange = 313,
|
|
289
|
+
RecurseOptions = 314,
|
|
290
|
+
recurseOptionName = 315,
|
|
291
|
+
TempfilesClause = 318,
|
|
292
|
+
ExplainClause = 319,
|
|
293
|
+
VersionClause = 320,
|
|
294
|
+
RelateStatement = 321,
|
|
295
|
+
UpdateStatement = 322,
|
|
296
296
|
MergeClause = 323,
|
|
297
297
|
PatchClause = 324,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
298
|
+
ReplaceClause = 325,
|
|
299
|
+
RemoveStatement = 326,
|
|
300
|
+
IfExistsClause = 327,
|
|
301
|
+
OnTableClause = 328,
|
|
302
|
+
functionKw = 329,
|
|
303
|
+
UpsertStatement = 330,
|
|
304
|
+
ReturnStatement = 331,
|
|
305
|
+
AlterStatement = 332,
|
|
306
|
+
IfNotExistsClause = 333,
|
|
307
|
+
PermissionsForClause = 334,
|
|
308
|
+
PermissionGroup = 335,
|
|
309
|
+
CommentClause = 336,
|
|
310
|
+
DefineStatement = 337,
|
|
311
|
+
OverwriteClause = 339,
|
|
312
|
+
OnRootNsDbClause = 340,
|
|
313
|
+
AccessTypeClause = 341,
|
|
314
|
+
JwtClause = 342,
|
|
315
|
+
SignupClause = 343,
|
|
316
|
+
SigninClause = 344,
|
|
317
|
+
AuthenticateClause = 345,
|
|
318
|
+
DurationClause = 346,
|
|
319
|
+
DurationValue = 347,
|
|
320
|
+
TokenTypeClause = 348,
|
|
321
|
+
TypeClause = 351,
|
|
322
|
+
DefaultClause = 352,
|
|
323
|
+
ReadonlyClause = 354,
|
|
324
|
+
ValueClause = 355,
|
|
325
|
+
AssertClause = 356,
|
|
326
|
+
ReferenceClause = 357,
|
|
327
|
+
ComputedClause = 358,
|
|
328
|
+
FieldsColumnsClause = 359,
|
|
329
|
+
IndexClause = 360,
|
|
330
|
+
UniqueClause = 361,
|
|
331
|
+
SearchAnalyzerClause = 362,
|
|
332
|
+
Bm25Clause = 363,
|
|
333
|
+
DocIdsOrderClause = 364,
|
|
334
|
+
DocLenghtsOrderClause = 365,
|
|
335
|
+
PostingsOrderClause = 366,
|
|
336
|
+
TermsOrderClause = 367,
|
|
337
|
+
DocIdsCacheClause = 368,
|
|
338
|
+
DocLenghtsCacheClause = 369,
|
|
339
|
+
PostingsCacheClause = 370,
|
|
340
|
+
TermsCacheClause = 371,
|
|
341
|
+
MtreeClause = 372,
|
|
342
|
+
IndexDimensionClause = 373,
|
|
343
|
+
MtreeDistClause = 374,
|
|
344
|
+
IndexCapacityClause = 375,
|
|
345
|
+
MtreeCacheClause = 376,
|
|
346
|
+
HnswClause = 377,
|
|
347
|
+
HnswDistClause = 378,
|
|
348
|
+
IndexLmClause = 379,
|
|
349
|
+
IndexM0Clause = 380,
|
|
350
|
+
IndexMClause = 381,
|
|
351
|
+
IndexEfcClause = 382,
|
|
352
|
+
IndexExtendCandidatesClause = 383,
|
|
353
|
+
IndexKeepPrunedConnectionsClause = 384,
|
|
354
|
+
TokenizersClause = 387,
|
|
355
|
+
FiltersClause = 388,
|
|
356
|
+
AnalyzerFilters = 389,
|
|
357
|
+
FunctionClause = 390,
|
|
358
|
+
PermissionsBasicClause = 391,
|
|
359
|
+
SessionClause = 393,
|
|
360
|
+
TableTypeClause = 394,
|
|
361
|
+
TableViewClause = 396,
|
|
362
|
+
ChangefeedClause = 397,
|
|
363
|
+
ApiOptions = 398,
|
|
364
|
+
MiddlewareClause = 399,
|
|
365
|
+
HttpMethod = 400,
|
|
366
|
+
BackendClause = 401,
|
|
367
|
+
RebuildStatement = 402,
|
|
368
|
+
InsertStatement = 403,
|
|
369
|
+
JavaScriptBlock = 405,
|
|
370
|
+
Closure = 407,
|
|
371
|
+
escapedParamDefinition = 408,
|
|
372
|
+
TypeCast = 410,
|
|
373
|
+
BinaryExpression = 412,
|
|
374
|
+
Operator = 413,
|
|
375
|
+
Range = 414,
|
|
376
|
+
ShowStatement = 415,
|
|
377
|
+
SleepStatement = 416,
|
|
378
|
+
UseStatement = 417,
|
|
379
|
+
OptionStatement = 418,
|
|
380
|
+
BreakStatement = 419,
|
|
381
|
+
ContinueStatement = 420,
|
|
382
|
+
ForStatement = 421,
|
|
383
|
+
ThrowStatement = 422,
|
|
384
|
+
PermissionInput = 423,
|
|
385
|
+
IndexInput = 424,
|
|
386
|
+
CombinedResults = 425,
|
|
387
|
+
CommentResult = 427,
|
|
388
|
+
Syntax = 429
|
package/src/surrealql.grammar
CHANGED
|
@@ -345,7 +345,8 @@ defineEventOptions {
|
|
|
345
345
|
|
|
346
346
|
defineDatabaseOptions {
|
|
347
347
|
(IfNotExistsClause | OverwriteClause)?
|
|
348
|
-
value
|
|
348
|
+
value
|
|
349
|
+
strict?
|
|
349
350
|
CommentClause?
|
|
350
351
|
}
|
|
351
352
|
|
|
@@ -548,6 +549,33 @@ RemoveStatement {
|
|
|
548
549
|
)
|
|
549
550
|
}
|
|
550
551
|
|
|
552
|
+
// Clause groups
|
|
553
|
+
|
|
554
|
+
modifierClause[@isGroup=ModifierClause] {
|
|
555
|
+
WithClause |
|
|
556
|
+
WhereClause |
|
|
557
|
+
SplitClause |
|
|
558
|
+
GroupClause |
|
|
559
|
+
OrderClause |
|
|
560
|
+
LimitStartComboClause |
|
|
561
|
+
FetchClause |
|
|
562
|
+
TimeoutClause |
|
|
563
|
+
ParallelClause |
|
|
564
|
+
TempfilesClause |
|
|
565
|
+
ExplainClause |
|
|
566
|
+
VersionClause |
|
|
567
|
+
ReturnClause
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
dataClause[@isGroup=DataClause] {
|
|
571
|
+
ContentClause |
|
|
572
|
+
SetClause |
|
|
573
|
+
MergeClause |
|
|
574
|
+
PatchClause |
|
|
575
|
+
ReplaceClause |
|
|
576
|
+
UnsetClause
|
|
577
|
+
}
|
|
578
|
+
|
|
551
579
|
// Data statements
|
|
552
580
|
|
|
553
581
|
CreateStatement {
|
|
@@ -571,20 +599,7 @@ SelectStatement {
|
|
|
571
599
|
statement |
|
|
572
600
|
(
|
|
573
601
|
commaSep<value>
|
|
574
|
-
|
|
575
|
-
WithClause |
|
|
576
|
-
WhereClause |
|
|
577
|
-
SplitClause |
|
|
578
|
-
GroupClause |
|
|
579
|
-
OrderClause |
|
|
580
|
-
LimitStartComboClause |
|
|
581
|
-
FetchClause |
|
|
582
|
-
TimeoutClause |
|
|
583
|
-
ParallelClause |
|
|
584
|
-
TempfilesClause |
|
|
585
|
-
ExplainClause |
|
|
586
|
-
VersionClause
|
|
587
|
-
)*
|
|
602
|
+
modifierClause*
|
|
588
603
|
)
|
|
589
604
|
)
|
|
590
605
|
}
|
|
@@ -629,7 +644,7 @@ InsertStatement {
|
|
|
629
644
|
on duplicate key update
|
|
630
645
|
commaSep<FieldAssignment>
|
|
631
646
|
)?
|
|
632
|
-
|
|
647
|
+
ReturnClause?
|
|
633
648
|
}
|
|
634
649
|
|
|
635
650
|
UpdateStatement {
|
|
@@ -638,14 +653,7 @@ UpdateStatement {
|
|
|
638
653
|
statement |
|
|
639
654
|
(
|
|
640
655
|
commaSep<value>
|
|
641
|
-
|
|
642
|
-
ContentClause |
|
|
643
|
-
ReplaceClause |
|
|
644
|
-
MergeClause |
|
|
645
|
-
PatchClause |
|
|
646
|
-
SetClause |
|
|
647
|
-
UnsetClause
|
|
648
|
-
)?
|
|
656
|
+
dataClause?
|
|
649
657
|
updateOptionals {
|
|
650
658
|
WhereClause?
|
|
651
659
|
ReturnClause?
|
|
@@ -662,14 +670,7 @@ UpsertStatement[since=2_0_0] {
|
|
|
662
670
|
statement |
|
|
663
671
|
(
|
|
664
672
|
commaSep<value>
|
|
665
|
-
|
|
666
|
-
ContentClause |
|
|
667
|
-
ReplaceClause |
|
|
668
|
-
MergeClause |
|
|
669
|
-
PatchClause |
|
|
670
|
-
SetClause |
|
|
671
|
-
UnsetClause
|
|
672
|
-
)?
|
|
673
|
+
dataClause?
|
|
673
674
|
upsertOptionals {
|
|
674
675
|
WhereClause?
|
|
675
676
|
ReturnClause?
|
|
@@ -1414,15 +1415,17 @@ ComputedClause {
|
|
|
1414
1415
|
value
|
|
1415
1416
|
}
|
|
1416
1417
|
|
|
1418
|
+
PermissionGroup {
|
|
1419
|
+
for
|
|
1420
|
+
commaSep<select | create | update | delete>
|
|
1421
|
+
( WhereClause | none | full )
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1417
1424
|
PermissionsForClause {
|
|
1418
1425
|
permissions
|
|
1419
1426
|
(
|
|
1420
1427
|
none | full |
|
|
1421
|
-
|
|
1422
|
-
for
|
|
1423
|
-
commaSep<select | create | update | delete>
|
|
1424
|
-
( WhereClause | none | full )
|
|
1425
|
-
)+
|
|
1428
|
+
PermissionGroup+
|
|
1426
1429
|
)
|
|
1427
1430
|
}
|
|
1428
1431
|
|
|
@@ -1821,6 +1824,7 @@ piped<content> {
|
|
|
1821
1824
|
sleep [@name=Keyword],
|
|
1822
1825
|
split [@name=Keyword],
|
|
1823
1826
|
start [@name=Keyword],
|
|
1827
|
+
strict [@name=Keyword],
|
|
1824
1828
|
structure [@name=Keyword],
|
|
1825
1829
|
table [@name=Keyword],
|
|
1826
1830
|
tables [@name=Keyword],
|
package/src/tokens.js
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Hash comment
|
|
2
|
+
|
|
3
|
+
# this is a comment
|
|
4
|
+
42
|
|
5
|
+
|
|
6
|
+
==>
|
|
7
|
+
|
|
8
|
+
SurrealQL(Comment,Int)
|
|
9
|
+
|
|
10
|
+
# Dash comment
|
|
11
|
+
|
|
12
|
+
-- this is a comment
|
|
13
|
+
42
|
|
14
|
+
|
|
15
|
+
==>
|
|
16
|
+
|
|
17
|
+
SurrealQL(Comment,Int)
|
|
18
|
+
|
|
19
|
+
# Slash comment
|
|
20
|
+
|
|
21
|
+
// this is a comment
|
|
22
|
+
42
|
|
23
|
+
|
|
24
|
+
==>
|
|
25
|
+
|
|
26
|
+
SurrealQL(Comment,Int)
|
|
27
|
+
|
|
28
|
+
# Block comment
|
|
29
|
+
|
|
30
|
+
1 /* this is
|
|
31
|
+
a block
|
|
32
|
+
comment */ + 2
|
|
33
|
+
|
|
34
|
+
==>
|
|
35
|
+
|
|
36
|
+
SurrealQL(BinaryExpression(Int,BlockComment,Operator,Int))
|
|
37
|
+
|
|
38
|
+
# Block comment standalone
|
|
39
|
+
|
|
40
|
+
/* block */ 42
|
|
41
|
+
|
|
42
|
+
==>
|
|
43
|
+
|
|
44
|
+
SurrealQL(BlockComment,Int)
|