cyrs-syntax 0.1.0

Lossless CST and recovering parser for Cypher / GQL (spec 0001 §4).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
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
296
297
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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
# Error recovery table

Normative, per-production recovery strategy for `cyrs-syntax`. Tracks
spec 0001 §4.3 (error recovery) and §17.18 (structural coverage check).

Every production named in `crates/cyrs-ast/cypher.ungrammar` has an
entry below, keyed by an H3 heading whose text is the exact production
identifier. The set symmetry between this file and the ungrammar is
enforced by `cargo xtask check-recovery`, a blocking PR gate (§17.18).
To add a production: add its entry here. To remove one: delete the
ungrammar definition *and* this entry in the same commit.

Each entry carries three fields:

- **Synchronisation set** — tokens that, when reached, stop the skip.
  Always implicitly unioned with `RECOVERY_STOP` (clause-start keywords
  + `;` + EOF) from `crates/cyrs-syntax/src/parser.rs`.
- **Skip-and-recover** — tokens consumed into an `ERROR` node while
  seeking the synchronisation set.
- **Virtual insertion** — closers the parser virtually inserts at the
  expected offset when missing (no bytes consumed, one diagnostic).

Entries tagged **DEFERRED** cover productions whose parser has not
landed yet (cy-nom implements MATCH / WHERE / RETURN and their direct
sub-productions only). They still participate in the coverage
invariant; the strategy will be fleshed out when the production lands.

## Statement-level productions

### SourceFile

- Synchronisation set: `;`, EOF.
- Skip-and-recover: any token that is not a clause-start keyword,
  wrapped in an `ERROR` node and continued statement-by-statement.
- Virtual insertion: none. Missing trailing `;` is tolerated by the
  ungrammar (`';'?`).

### Statement

- Synchronisation set: `UNION`, `;`, EOF, clause-start keywords.
- Skip-and-recover: default per spec §4.3 — up to the next clause-start
  or statement terminator.
- Virtual insertion: none.

### SingleQuery

- Synchronisation set: clause-start keywords, `UNION`, `;`, EOF.
- Skip-and-recover: tokens that are neither clause-start nor statement
  terminator.
- Virtual insertion: none.

### Union

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### UnionTail

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### Clause

- Synchronisation set: clause-start keywords, `;`, EOF.
- Skip-and-recover: on an unrecognised token at clause position, skip
  to the next clause-start / terminator.
- Virtual insertion: none.

## Reading clauses

### MatchClause

- Synchronisation set: `WHERE`, `,` (between patterns), clause-start
  keywords, `;`, EOF.
- Skip-and-recover: tokens inside an ill-formed pattern are swallowed
  into the `PATTERN_PART` or `NODE_PATTERN` `ERROR` node until a
  sync-set token is reached.
- Virtual insertion: `MATCH` keyword is required after `OPTIONAL`  a missing keyword emits a diagnostic but no token is inserted; the
  parser proceeds to `pattern_list`.

### WithClause

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### ReturnClause

- Synchronisation set: `ORDER`, `SKIP`, `LIMIT`, clause-start keywords,
  `;`, EOF.
- Skip-and-recover: tokens inside a malformed `ReturnItem` are consumed
  into the item's `ERROR` node until `,`, `ORDER`, `SKIP`, `LIMIT`, or
  a sync-set token is reached.
- Virtual insertion: none.

### UnwindClause

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### CallClause

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### YieldClause

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

## Writing clauses

### CreateClause

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### MergeClause

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### MergeAction

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### SetClause

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### RemoveClause

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### DeleteClause

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

## Shared sub-clauses

### WhereClause

- Synchronisation set: clause-start keywords, `ORDER`, `SKIP`, `LIMIT`,
  `;`, EOF, and any right-delimiter the parent construct is about to
  close (`]` for comprehensions, `)` for predicate expressions).
- Skip-and-recover: expression-body tokens when `expr` returns `None`
  are consumed until a sync-set token is reached.
- Virtual insertion: none.

### OrderBy

- Synchronisation set: `SKIP`, `LIMIT`, clause-start keywords, `;`, EOF.
- Skip-and-recover: malformed sort-items are wrapped in an `ORDER_ITEM`
  with an internal `ERROR` node; recovery continues at the next `,`
  or sync-set token.
- Virtual insertion: missing `BY` after `ORDER` emits a diagnostic;
  parser continues as if `BY` were present.

### SortItem

- Synchronisation set: `,`, `ASC`, `DESC`, `ASCENDING`, `DESCENDING`,
  `SKIP`, `LIMIT`, clause-start keywords, `;`, EOF.
- Skip-and-recover: expression tokens until a sync-set token.
- Virtual insertion: none.

### Skip

- Synchronisation set: `LIMIT`, clause-start keywords, `;`, EOF.
- Skip-and-recover: expression tokens until a sync-set token when the
  expression is missing.
- Virtual insertion: none.

### Limit

- Synchronisation set: clause-start keywords, `;`, EOF.
- Skip-and-recover: expression tokens until a sync-set token when the
  expression is missing.
- Virtual insertion: none.

### ReturnItems

- Synchronisation set: `ORDER`, `SKIP`, `LIMIT`, clause-start keywords,
  `;`, EOF.
- Skip-and-recover: malformed items skip to the next `,` or sync-set
  token; the parent `RETURN_ITEMS` node still closes.
- Virtual insertion: none.

### ReturnItem

- Synchronisation set: `,`, `ORDER`, `SKIP`, `LIMIT`, clause-start
  keywords, `;`, EOF.
- Skip-and-recover: tokens in a malformed expression or malformed `AS`
  alias are consumed into the item's `ERROR` node until a sync-set
  token.
- Virtual insertion: none. A missing identifier after `AS` emits a
  diagnostic only.

### YieldItem

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### SetItem

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### PropertyAssign

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### LabelAdd

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### NodeReplace

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### NodeMerge

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### RemoveItem

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### PropertyRemove

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### LabelRemove

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

## Patterns

### Pattern

- Synchronisation set: `,`, `WHERE`, clause-start keywords, `;`, EOF.
- Skip-and-recover: non-pattern tokens at pattern position are caught
  inside `PATTERN_PART`'s error branch.
- Virtual insertion: none.

### PathPattern

- Synchronisation set: `,`, `WHERE`, clause-start keywords, `;`, EOF.
- Skip-and-recover: a missing leading `(` aborts the path and emits
  a diagnostic; the partial node is closed as `PATTERN_PART` with an
  internal `ERROR`.
- Virtual insertion: none.

### ShortestPathPattern

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### PathElement

- Synchronisation set: `,`, `WHERE`, clause-start keywords, `;`, EOF.
- Skip-and-recover: missing node pattern after a relationship breaks
  out of the chain with a diagnostic; already-parsed segments remain.
- Virtual insertion: none.

### NodePattern

- Synchronisation set: `)`, `,`, `WHERE`, clause-start keywords, `;`,
  EOF.
- Skip-and-recover: label/property tokens that do not parse fall into
  their sub-production's error recovery.
- Virtual insertion: missing `)` emits "expected ')' to close node
  pattern" at the expected offset; no byte is consumed, and the node
  closes as `NODE_PATTERN`.

### RelPattern

- Synchronisation set: `(` (next node pattern), `,`, `WHERE`,
  clause-start keywords, `;`, EOF.
- Skip-and-recover: missing opening `-` or `<-` emits a diagnostic;
  missing closing `-` / `->` likewise emits a diagnostic and does not
  consume further tokens.
- Virtual insertion: closing arrow / minus is virtually present for
  diagnostic purposes; no token is bumped.

### RelDetail

- Synchronisation set: `]`, `(`, `,`, `WHERE`, clause-start keywords,
  `;`, EOF.
- Skip-and-recover: bad tokens inside the brackets fall through to the
  sub-production; whole-bracket malformation exits via the missing
  `]` diagnostic.
- Virtual insertion: missing `]` emits "expected ']' to close
  relationship detail" at the expected offset.

### RangeHops

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### LabelExpr

- Synchronisation set: `{`, `)`, `]`, `,`, `WHERE`, clause-start
  keywords, `;`, EOF.
- Skip-and-recover: a missing label identifier after `:` breaks the
  loop with a diagnostic; the partial `LABEL_EXPR` still closes.
- Virtual insertion: none.

### TypeExpr

- Synchronisation set: `]`, `{`, `,`, clause-start keywords, `;`, EOF.
- Skip-and-recover: missing rel-type identifier after `:` emits a
  diagnostic; the partial `REL_TYPE_EXPR` still closes.
- Virtual insertion: none. Pipe-disjunction `A|B` is deferred.

### PropertyMap

- Synchronisation set: `}`, `)`, `]`, `,`, clause-start keywords, `;`,
  EOF.
- Skip-and-recover: malformed entries are handled by `PropertyKV`;
  whole-map malformation exits via the missing `}` diagnostic.
- Virtual insertion: missing `}` emits "expected '}' to close property
  map" at the expected offset.

### PropertyKV

- Synchronisation set: `,`, `}`, clause-start keywords, `;`, EOF.
- Skip-and-recover: missing key, `:`, or value each emit their own
  diagnostic; expression tokens inside a malformed value are consumed
  into the value's `ERROR` node until a sync-set token.
- Virtual insertion: none.

## Expressions

### Expr

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### Literal

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### IntLiteral

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### FloatLiteral

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### StringLiteral

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### BoolLiteral

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### NullLiteral

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### ParameterExpr

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### VariableRef

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### PropertyAccess

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### IndexAccess

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### IndexExpr

- Status: **implemented** (cy-7s6.1).
- Synchronisation set: `]` closes the bracket; clause-level keywords +
  `;` + EOF act as outer recovery anchors.
- Skip-and-recover: an unclosed bracket emits `UNCLOSED_INDEX_BRACKET`
  (E0064) and closes the `INDEX_EXPR` node at the current token — the
  Pratt loop resumes on the next postfix / infix / clause boundary.
- Virtual insertion: none.

### SliceExpr

- Status: **implemented** (cy-7s6.1).
- Synchronisation set: `]` closes the bracket; `..` separates start
  from end inside it. Outside the bracket, default clause anchors
  apply.
- Skip-and-recover: same as `IndexExpr` — missing `]` emits
  `UNCLOSED_INDEX_BRACKET` (E0064). Either bound may be elided (produces
  a `SLICE_EXPR` with one or zero child expressions), which is the spec
  shape and not a diagnostic.
- Virtual insertion: none.

### FunctionCall

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### ArgList

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### CountStar

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### ParenExpr

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: missing `)` will emit "expected ')'" at the
  expected offset once the production lands.

### ListLiteral

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: missing `]` will emit "expected ']'" at the
  expected offset once the production lands.

### MapLiteral

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: missing `}` will emit "expected '}'" at the
  expected offset once the production lands.

### MapProjection

- Status: **IMPLEMENTED** (cy-01q, spec §6.1 / §19 row "Map projection").
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: items consume on `,` boundaries; an unrecognized
  leading token triggers `E0082` and a single token-bump so the comma
  loop can continue. Missing `}` emits `E0078` and closes the node.
- Virtual insertion:
  - `E0078` — missing `}` to close the projection.
  - `E0079` — token after `.` is neither an identifier nor `*`.
  - `E0080` — missing `:` in a literal `key: expr` item.
  - `E0081` — missing value expression after `:` in a literal item.
  - `E0082` — leading token starts no recognized item kind.

### MapProjectionItem

- Status: **IMPLEMENTED** (cy-01q). Parsed inline by the
  `MapProjection` production; recovery codes listed there.
- Synchronisation set: inherits from the enclosing `MapProjection`.
- Skip-and-recover: per-item; the outer comma loop owns recovery.
- Virtual insertion: see the `MapProjection` entry above.

### ListComprehension

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### ListPredicateExpr

- Status: **LIVE** (cy-8x5) — `ANY|ALL|NONE|SINGLE(x IN xs [WHERE p])`.
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: on missing `(` the parser emits E0065 and continues at
  the identifier; missing `IN` emits E0066 and keeps parsing the iterable;
  missing `)` emits E0067 at the token boundary (virtual-token insertion
  per §4.3).
- Virtual insertion: E0065 / E0066 / E0067 as described above.

### PatternComprehension

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### CaseExpr

- Status: **IMPLEMENTED** (cy-41u, spec §19 row "CASE").
- Synchronisation set: clause-level keywords + `;` + EOF (default). The
  CASE production threads its own `WHEN` / `ELSE` / `END` lookahead for
  arm-loop control; no extra synchronisation set is registered because
  a malformed CASE unwinds via the usual Pratt expression recovery.
- Skip-and-recover: a missing terminator does not skip tokens; the
  recovery emits a virtual `END` diagnostic and finishes the node, so a
  truncated prefix like `RETURN CASE WHEN 1 THEN 'x'` surfaces exactly
  one `E0071` diagnostic (≤3 diagnostics per bead cy-gkh property).
- Virtual insertion:
  - `E0070` — missing `THEN` after a `WHEN <value>`.
  - `E0071` — missing `END` at the close of the expression.

### CaseWhenArm

- Status: **IMPLEMENTED** (cy-41u).
- Inherits the CaseExpr recovery strategy: arms are parsed left-to-right
  by the CASE production and completed even when the trailing `THEN`
  keyword is missing.
- Virtual insertion: `E0070` (missing `THEN`).

### CaseElseArm

- Status: **IMPLEMENTED** (cy-41u).
- Optional child of `CaseExpr`; a missing closing `END` at the end of
  an `ELSE`-terminated CASE surfaces `E0071` via the outer production,
  not the arm itself.
- Virtual insertion: none dedicated to this node.

### NullCheck

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### ExistsPredicate

- Status: **IMPLEMENTED** (cy-lve, spec §6.1 / §19 row "Pattern predicates
  in expressions"). Emitted as `PATTERN_PREDICATE` so the HIR lowering path
  from bare pattern predicates is shared.
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: on missing `)` after the pattern the parser emits
  E0072 at the token boundary and continues from the caller's recovery
  set — the `PATTERN_PREDICATE` node is closed at the current position
  via virtual-token insertion.
- Virtual insertion: `E0072` — missing `)` closing `EXISTS(<pattern>)`.
- Deferred block form: `EXISTS { <subquery> }` is not in v1 (§19 / §20
  D1). The parser emits `E4017` (the shared `exists_subquery` dialect
  gate) and recovers by swallowing the balanced braces.

### PatternPredicate

- Status: **IMPLEMENTED** — reachable via the `ExistsPredicate` atom path
  above (cy-lve). A bare `(a)-->(b)` in expression position is still
  deferred pending full §7.5 pattern validation, but the node kind is
  produced today by `EXISTS(<pattern>)`.
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3; the node is closed at the
  first recovery anchor.
- Virtual insertion: none dedicated to this node — the enclosing
  `ExistsPredicate` owns the recovery diagnostic.

### BinaryExpr

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### BinaryOp

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### UnaryExpr

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### UnaryOp

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### StringPatternExpr

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### StringPatternOp

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### MembershipExpr

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

## Names

### NameDef

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### NameRef

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### QualifiedName

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### Label

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### RelType

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.

### PropertyKey

- Status: **DEFERRED** — grammar not yet implemented (see cy-nom scope / follow-up bead).
- Synchronisation set: clause-level keywords + `;` + EOF (default).
- Skip-and-recover: default per spec §4.3.
- Virtual insertion: none planned until production lands.