@surrealdb/lezer 1.0.5 → 1.0.8

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.
@@ -18,372 +18,373 @@ export const
18
18
  asc = 16,
19
19
  assert = 17,
20
20
  at = 18,
21
- authenticate = 19,
22
- auto = 20,
23
- backend = 21,
24
- begin = 22,
25
- bm25 = 23,
26
- _break = 24,
27
- bucket = 25,
28
- by = 26,
29
- cancel = 27,
30
- capacity = 28,
31
- cascade = 29,
32
- changefeed = 30,
33
- changes = 31,
34
- collate = 32,
35
- columns = 33,
36
- comment = 34,
37
- commit = 35,
38
- computed = 36,
39
- concurrently = 37,
40
- config = 38,
41
- content = 39,
42
- _continue = 40,
43
- create = 41,
44
- database = 42,
45
- db = 43,
46
- _default = 44,
47
- defer = 45,
48
- define = 46,
49
- _delete = 47,
50
- desc = 48,
51
- dimension = 49,
52
- dist = 50,
53
- doc_ids_cache = 51,
54
- doc_ids_order = 52,
55
- doc_lengths_cache = 53,
56
- doc_lengths_order = 54,
57
- drop = 55,
58
- duplicate = 56,
59
- duration = 57,
60
- efc = 58,
61
- _else = 59,
62
- end = 60,
63
- enforced = 61,
64
- event = 62,
65
- exclude = 63,
66
- exists = 64,
67
- explain = 65,
68
- expunge = 66,
69
- extend_candidates = 67,
70
- fetch = 68,
71
- field = 69,
72
- fields = 70,
73
- filters = 71,
74
- flexible = 72,
75
- _for = 73,
76
- from = 74,
77
- functions = 75,
78
- get = 76,
79
- graphql = 77,
80
- group = 78,
81
- highlights = 79,
82
- hnsw = 80,
83
- _if = 81,
84
- ignore = 82,
85
- _in = 83,
86
- include = 84,
87
- index = 85,
88
- info = 86,
89
- insert = 87,
90
- into = 88,
91
- issuer = 89,
92
- jwt = 90,
93
- keep_pruned_connections = 91,
94
- key = 92,
95
- kill = 93,
96
- _let = 94,
97
- limit = 95,
98
- live = 96,
99
- lm = 97,
100
- m = 98,
101
- m0 = 99,
102
- merge = 100,
103
- middleware = 101,
104
- mtree = 102,
105
- mtree_cache = 103,
106
- namespace = 104,
107
- noindex = 105,
108
- normal = 106,
109
- not = 107,
110
- ns = 108,
111
- numeric = 109,
112
- omit = 110,
113
- on = 111,
114
- only = 112,
115
- option = 113,
116
- order = 114,
117
- out = 115,
118
- overwrite = 116,
119
- parallel = 117,
120
- param = 118,
121
- passhash = 119,
122
- password = 120,
123
- patch = 121,
124
- permissions = 122,
125
- post = 123,
126
- postings_cache = 124,
127
- postings_order = 125,
128
- put = 126,
129
- readonly = 127,
130
- rebuild = 128,
131
- record = 129,
132
- reference = 130,
133
- reject = 131,
134
- relate = 132,
135
- relation = 133,
136
- remove = 134,
137
- replace = 135,
138
- _return = 136,
139
- roles = 137,
140
- root = 138,
141
- sc = 139,
142
- schemafull = 140,
143
- schemaless = 141,
144
- scope = 142,
145
- search = 143,
146
- select = 144,
147
- session = 145,
148
- set = 146,
149
- show = 147,
150
- signin = 148,
151
- signup = 149,
152
- since = 150,
153
- sleep = 151,
154
- split = 152,
155
- start = 153,
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
- Number = 213,
221
- Int = 214,
222
- Float = 215,
223
- Decimal = 216,
224
- Array = 219,
225
- Set = 222,
226
- RecordId = 223,
227
- RecordTbIdent = 224,
228
- RecordIdIdent = 226,
229
- Object = 227,
230
- ObjectContent = 228,
231
- ObjectProperty = 229,
232
- ObjectKey = 230,
233
- RecordIdRange = 233,
234
- Duration = 234,
235
- DurationPart = 235,
236
- FormatString = 237,
237
- Interpolation = 238,
238
- Regex = 239,
239
- VariableName = 240,
240
- FunctionJs = 242,
241
- ArgumentList = 244,
242
- IfElseStatement = 245,
243
- Block = 247,
244
- SubQuery = 248,
245
- LetStatement = 250,
246
- paramDefinition = 251,
247
- LiteralType = 257,
248
- ObjectTypeContent = 260,
249
- ObjectTypeProperty = 261,
250
- DeleteStatement = 264,
251
- WhereClause = 265,
252
- ReturnClause = 266,
253
- Fields = 267,
254
- AnyStar = 268,
255
- TimeoutClause = 269,
256
- ParallelClause = 270,
257
- CreateStatement = 271,
258
- FunctionCall = 272,
259
- FunctionName = 273,
260
- customFunctionName = 274,
261
- VersionNumber = 276,
262
- ContentClause = 277,
263
- SetClause = 278,
264
- FieldAssignment = 279,
265
- assignmentOperator = 280,
266
- UnsetClause = 281,
267
- SelectStatement = 282,
268
- OmitClause = 283,
269
- WithClause = 284,
270
- SplitClause = 285,
271
- Idiom = 286,
272
- GroupClause = 287,
273
- OrderClause = 288,
274
- Order = 289,
275
- LimitStartComboClause = 290,
276
- StartClause = 291,
277
- LimitClause = 292,
278
- FetchClause = 293,
279
- TempfilesClause = 294,
280
- ExplainClause = 295,
281
- VersionClause = 296,
282
- RelateStatement = 297,
283
- UpdateStatement = 300,
284
- MergeClause = 301,
285
- PatchClause = 302,
286
- ReplaceClause = 303,
287
- RemoveStatement = 304,
288
- IfExistsClause = 305,
289
- OnTableClause = 306,
290
- functionKw = 307,
291
- UpsertStatement = 308,
292
- ReturnStatement = 309,
293
- AlterStatement = 310,
294
- IfNotExistsClause = 311,
295
- PermissionsForClause = 312,
296
- PermissionGroup = 313,
297
- CommentClause = 314,
298
- DefineStatement = 315,
299
- OverwriteClause = 317,
300
- OnRootNsDbClause = 318,
301
- AccessTypeClause = 319,
302
- JwtClause = 320,
303
- SignupClause = 321,
304
- SigninClause = 322,
305
- AuthenticateClause = 323,
306
- DurationClause = 324,
307
- DurationValue = 325,
308
- TokenTypeClause = 326,
309
- TypeClause = 329,
310
- DefaultClause = 330,
311
- ReadonlyClause = 332,
312
- ValueClause = 333,
313
- AssertClause = 334,
314
- ReferenceClause = 335,
315
- ComputedClause = 336,
316
- FieldsColumnsClause = 337,
317
- IndexClause = 338,
318
- UniqueClause = 339,
319
- SearchAnalyzerClause = 340,
320
- Bm25Clause = 341,
321
- DocIdsOrderClause = 342,
322
- DocLenghtsOrderClause = 343,
323
- PostingsOrderClause = 344,
324
- TermsOrderClause = 345,
325
- DocIdsCacheClause = 346,
326
- DocLenghtsCacheClause = 347,
327
- PostingsCacheClause = 348,
328
- TermsCacheClause = 349,
329
- MtreeClause = 350,
330
- IndexDimensionClause = 351,
331
- MtreeDistClause = 352,
332
- IndexCapacityClause = 353,
333
- MtreeCacheClause = 354,
334
- HnswClause = 355,
335
- HnswDistClause = 356,
336
- IndexLmClause = 357,
337
- IndexM0Clause = 358,
338
- IndexMClause = 359,
339
- IndexEfcClause = 360,
340
- IndexExtendCandidatesClause = 361,
341
- IndexKeepPrunedConnectionsClause = 362,
342
- TokenizersClause = 365,
343
- FiltersClause = 366,
344
- AnalyzerFilters = 367,
345
- FunctionClause = 368,
346
- PermissionsBasicClause = 369,
347
- SessionClause = 371,
348
- TableTypeClause = 372,
349
- TableViewClause = 374,
350
- ChangefeedClause = 375,
351
- ApiOptions = 376,
352
- MiddlewareClause = 377,
353
- HttpMethod = 378,
354
- BackendClause = 379,
355
- RebuildStatement = 380,
356
- InsertStatement = 381,
357
- JavaScriptBlock = 383,
358
- Closure = 385,
359
- escapedParamDefinition = 386,
360
- TypeCast = 388,
361
- BinaryExpression = 389,
362
- Operator = 390,
363
- Range = 391,
364
- Path = 392,
365
- Lookup = 393,
366
- Any = 396,
367
- LookupSelection = 397,
368
- GraphPredicate = 399,
369
- Optional = 405,
370
- At = 406,
371
- IdiomFunction = 407,
372
- Destructure = 409,
373
- Recurse = 410,
374
- RecurseRange = 411,
375
- RecurseOptions = 412,
376
- recurseOptionName = 413,
377
- ShowStatement = 416,
378
- SleepStatement = 417,
379
- UseStatement = 418,
380
- OptionStatement = 419,
381
- BreakStatement = 420,
382
- ContinueStatement = 421,
383
- ForStatement = 422,
384
- ThrowStatement = 423,
385
- PermissionInput = 424,
386
- IndexInput = 425,
387
- CombinedResults = 426,
388
- CommentResult = 428,
389
- Syntax = 430
21
+ async = 19,
22
+ authenticate = 20,
23
+ auto = 21,
24
+ backend = 22,
25
+ begin = 23,
26
+ bm25 = 24,
27
+ _break = 25,
28
+ bucket = 26,
29
+ by = 27,
30
+ cancel = 28,
31
+ capacity = 29,
32
+ cascade = 30,
33
+ changefeed = 31,
34
+ changes = 32,
35
+ collate = 33,
36
+ columns = 34,
37
+ comment = 35,
38
+ commit = 36,
39
+ computed = 37,
40
+ concurrently = 38,
41
+ config = 39,
42
+ content = 40,
43
+ _continue = 41,
44
+ create = 42,
45
+ database = 43,
46
+ db = 44,
47
+ _default = 45,
48
+ defer = 46,
49
+ define = 47,
50
+ _delete = 48,
51
+ desc = 49,
52
+ dimension = 50,
53
+ dist = 51,
54
+ doc_ids_cache = 52,
55
+ doc_ids_order = 53,
56
+ doc_lengths_cache = 54,
57
+ doc_lengths_order = 55,
58
+ drop = 56,
59
+ duplicate = 57,
60
+ duration = 58,
61
+ efc = 59,
62
+ _else = 60,
63
+ end = 61,
64
+ enforced = 62,
65
+ event = 63,
66
+ exclude = 64,
67
+ exists = 65,
68
+ explain = 66,
69
+ expunge = 67,
70
+ extend_candidates = 68,
71
+ fetch = 69,
72
+ field = 70,
73
+ fields = 71,
74
+ filters = 72,
75
+ flexible = 73,
76
+ _for = 74,
77
+ from = 75,
78
+ functions = 76,
79
+ get = 77,
80
+ graphql = 78,
81
+ group = 79,
82
+ highlights = 80,
83
+ hnsw = 81,
84
+ _if = 82,
85
+ ignore = 83,
86
+ _in = 84,
87
+ include = 85,
88
+ index = 86,
89
+ info = 87,
90
+ insert = 88,
91
+ into = 89,
92
+ issuer = 90,
93
+ jwt = 91,
94
+ keep_pruned_connections = 92,
95
+ key = 93,
96
+ kill = 94,
97
+ _let = 95,
98
+ limit = 96,
99
+ live = 97,
100
+ lm = 98,
101
+ m = 99,
102
+ m0 = 100,
103
+ merge = 101,
104
+ middleware = 102,
105
+ mtree = 103,
106
+ mtree_cache = 104,
107
+ namespace = 105,
108
+ noindex = 106,
109
+ normal = 107,
110
+ not = 108,
111
+ ns = 109,
112
+ numeric = 110,
113
+ omit = 111,
114
+ on = 112,
115
+ only = 113,
116
+ option = 114,
117
+ order = 115,
118
+ out = 116,
119
+ overwrite = 117,
120
+ parallel = 118,
121
+ param = 119,
122
+ passhash = 120,
123
+ password = 121,
124
+ patch = 122,
125
+ permissions = 123,
126
+ post = 124,
127
+ postings_cache = 125,
128
+ postings_order = 126,
129
+ put = 127,
130
+ readonly = 128,
131
+ rebuild = 129,
132
+ record = 130,
133
+ reference = 131,
134
+ reject = 132,
135
+ relate = 133,
136
+ relation = 134,
137
+ remove = 135,
138
+ replace = 136,
139
+ _return = 137,
140
+ roles = 138,
141
+ root = 139,
142
+ sc = 140,
143
+ schemafull = 141,
144
+ schemaless = 142,
145
+ scope = 143,
146
+ search = 144,
147
+ select = 145,
148
+ session = 146,
149
+ set = 147,
150
+ show = 148,
151
+ signin = 149,
152
+ signup = 150,
153
+ since = 151,
154
+ sleep = 152,
155
+ split = 153,
156
+ start = 154,
157
+ strict = 155,
158
+ structure = 156,
159
+ table = 157,
160
+ tables = 158,
161
+ tb = 159,
162
+ tempfiles = 160,
163
+ terms_cache = 161,
164
+ terms_order = 162,
165
+ then = 163,
166
+ _throw = 164,
167
+ timeout = 165,
168
+ to = 166,
169
+ token = 167,
170
+ tokenizers = 168,
171
+ trace = 169,
172
+ transaction = 170,
173
+ typeKeyword = 171,
174
+ unique = 172,
175
+ unset = 173,
176
+ update = 174,
177
+ upsert = 175,
178
+ url = 176,
179
+ use = 177,
180
+ user = 178,
181
+ valueKeyword = 179,
182
+ values = 180,
183
+ version = 181,
184
+ when = 182,
185
+ where = 183,
186
+ _with = 184,
187
+ after = 185,
188
+ before = 186,
189
+ diff = 187,
190
+ _false = 188,
191
+ full = 189,
192
+ none = 190,
193
+ _null = 191,
194
+ _true = 192,
195
+ IndexTypeClause = 193,
196
+ TokenType = 194,
197
+ binaryOperatorKeyword = 494,
198
+ is = 495,
199
+ opIn = 496,
200
+ opNot = 497,
201
+ Distance = 195,
202
+ minkowski = 196,
203
+ Filter = 197,
204
+ AnalyzerTokenizer = 198,
205
+ _function = 498,
206
+ rand = 199,
207
+ count = 200,
208
+ Comment = 201,
209
+ BlockComment = 202,
210
+ SurrealQL = 203,
211
+ BeginStatement = 204,
212
+ CancelStatement = 205,
213
+ CommitStatement = 206,
214
+ InfoForStatement = 207,
215
+ Ident = 208,
216
+ KillStatement = 209,
217
+ String = 210,
218
+ LiveSelectStatement = 211,
219
+ Predicate = 212,
220
+ prefixedString = 213,
221
+ Number = 214,
222
+ Int = 215,
223
+ Float = 216,
224
+ Decimal = 217,
225
+ Array = 220,
226
+ Set = 223,
227
+ RecordId = 224,
228
+ RecordTbIdent = 225,
229
+ RecordIdIdent = 227,
230
+ Object = 228,
231
+ ObjectContent = 229,
232
+ ObjectProperty = 230,
233
+ ObjectKey = 231,
234
+ RecordIdRange = 234,
235
+ Duration = 235,
236
+ DurationPart = 236,
237
+ FormatString = 238,
238
+ Interpolation = 239,
239
+ Regex = 240,
240
+ VariableName = 241,
241
+ FunctionJs = 243,
242
+ ArgumentList = 245,
243
+ IfElseStatement = 246,
244
+ Block = 248,
245
+ SubQuery = 249,
246
+ LetStatement = 251,
247
+ paramDefinition = 252,
248
+ LiteralType = 258,
249
+ ObjectTypeContent = 261,
250
+ ObjectTypeProperty = 262,
251
+ DeleteStatement = 265,
252
+ WhereClause = 266,
253
+ ReturnClause = 267,
254
+ Fields = 268,
255
+ AnyStar = 269,
256
+ TimeoutClause = 270,
257
+ ParallelClause = 271,
258
+ CreateStatement = 272,
259
+ FunctionCall = 273,
260
+ FunctionName = 274,
261
+ customFunctionName = 275,
262
+ VersionNumber = 277,
263
+ ContentClause = 278,
264
+ SetClause = 279,
265
+ FieldAssignment = 280,
266
+ assignmentOperator = 281,
267
+ UnsetClause = 282,
268
+ SelectStatement = 283,
269
+ OmitClause = 284,
270
+ WithClause = 285,
271
+ SplitClause = 286,
272
+ Idiom = 287,
273
+ GroupClause = 288,
274
+ OrderClause = 289,
275
+ Order = 290,
276
+ LimitStartComboClause = 291,
277
+ StartClause = 292,
278
+ LimitClause = 293,
279
+ FetchClause = 294,
280
+ TempfilesClause = 295,
281
+ ExplainClause = 296,
282
+ VersionClause = 297,
283
+ RelateStatement = 298,
284
+ UpdateStatement = 301,
285
+ MergeClause = 302,
286
+ PatchClause = 303,
287
+ ReplaceClause = 304,
288
+ RemoveStatement = 305,
289
+ IfExistsClause = 306,
290
+ OnTableClause = 307,
291
+ functionKw = 308,
292
+ UpsertStatement = 309,
293
+ ReturnStatement = 310,
294
+ AlterStatement = 311,
295
+ IfNotExistsClause = 312,
296
+ PermissionsForClause = 313,
297
+ PermissionGroup = 314,
298
+ CommentClause = 315,
299
+ DefineStatement = 316,
300
+ OverwriteClause = 318,
301
+ OnRootNsDbClause = 319,
302
+ AccessTypeClause = 320,
303
+ JwtClause = 321,
304
+ SignupClause = 322,
305
+ SigninClause = 323,
306
+ AuthenticateClause = 324,
307
+ DurationClause = 325,
308
+ DurationValue = 326,
309
+ TokenTypeClause = 327,
310
+ TypeClause = 330,
311
+ DefaultClause = 331,
312
+ ReadonlyClause = 333,
313
+ ValueClause = 334,
314
+ AssertClause = 335,
315
+ ReferenceClause = 336,
316
+ ComputedClause = 337,
317
+ FieldsColumnsClause = 338,
318
+ IndexClause = 339,
319
+ UniqueClause = 340,
320
+ SearchAnalyzerClause = 341,
321
+ Bm25Clause = 342,
322
+ DocIdsOrderClause = 343,
323
+ DocLenghtsOrderClause = 344,
324
+ PostingsOrderClause = 345,
325
+ TermsOrderClause = 346,
326
+ DocIdsCacheClause = 347,
327
+ DocLenghtsCacheClause = 348,
328
+ PostingsCacheClause = 349,
329
+ TermsCacheClause = 350,
330
+ MtreeClause = 351,
331
+ IndexDimensionClause = 352,
332
+ MtreeDistClause = 353,
333
+ IndexCapacityClause = 354,
334
+ MtreeCacheClause = 355,
335
+ HnswClause = 356,
336
+ HnswDistClause = 357,
337
+ IndexLmClause = 358,
338
+ IndexM0Clause = 359,
339
+ IndexMClause = 360,
340
+ IndexEfcClause = 361,
341
+ IndexExtendCandidatesClause = 362,
342
+ IndexKeepPrunedConnectionsClause = 363,
343
+ TokenizersClause = 366,
344
+ FiltersClause = 367,
345
+ AnalyzerFilters = 368,
346
+ FunctionClause = 369,
347
+ PermissionsBasicClause = 370,
348
+ SessionClause = 372,
349
+ TableTypeClause = 373,
350
+ TableViewClause = 375,
351
+ ChangefeedClause = 376,
352
+ ApiOptions = 377,
353
+ MiddlewareClause = 378,
354
+ HttpMethod = 379,
355
+ BackendClause = 380,
356
+ RebuildStatement = 381,
357
+ InsertStatement = 382,
358
+ JavaScriptBlock = 384,
359
+ Closure = 386,
360
+ escapedParamDefinition = 387,
361
+ TypeCast = 389,
362
+ BinaryExpression = 390,
363
+ Operator = 391,
364
+ Range = 392,
365
+ Path = 393,
366
+ Lookup = 394,
367
+ Any = 397,
368
+ LookupSelection = 398,
369
+ GraphPredicate = 400,
370
+ Optional = 406,
371
+ At = 407,
372
+ IdiomFunction = 408,
373
+ Destructure = 410,
374
+ Recurse = 411,
375
+ RecurseRange = 412,
376
+ RecurseOptions = 413,
377
+ recurseOptionName = 414,
378
+ ShowStatement = 417,
379
+ SleepStatement = 418,
380
+ UseStatement = 419,
381
+ OptionStatement = 420,
382
+ BreakStatement = 421,
383
+ ContinueStatement = 422,
384
+ ForStatement = 423,
385
+ ThrowStatement = 424,
386
+ PermissionInput = 425,
387
+ IndexInput = 426,
388
+ CombinedResults = 427,
389
+ CommentResult = 429,
390
+ Syntax = 431