Expand description
SyntaxKind — the canonical grammar reference (spec 0001 §4.4).
Every grammar production and every token class has an entry here. The
enum is repr(u16) so it round-trips through rowan::SyntaxKind. New
kinds are appended at the end of their section; existing numeric values
are never reused, matching the diagnostic code policy (spec §10.2).
The enum is partitioned into three zones:
- Tokens (trivia, keywords, literals, punctuation, error markers).
- Nodes (clauses, patterns, expressions, etc.).
- Composite-only meta kinds (EOF, ROOT).
The SyntaxKind::is_trivia, SyntaxKind::is_keyword,
SyntaxKind::is_punct, SyntaxKind::is_literal, and
SyntaxKind::is_node predicates are the primary consumers’ lens on
these partitions.
Enums§
- Syntax
Kind - Every syntactic category in Cypher: tokens, nodes, and meta.