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