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