Module cst

Module cst 

Source
Expand description

Syntax kinds for the query language.

SyntaxKind serves dual roles: token kinds (from lexer) and node kinds (from parser). Logos derives token recognition; node kinds lack token/regex attributes. QLang implements Rowan’s Language trait for tree construction.

Modules§

token_sets
Pre-defined token sets for the parser.

Structs§

TokenSet
64-bit bitset of SyntaxKinds for O(1) membership testing.

Enums§

QLang
Language tag for Rowan’s tree types.
SyntaxKind
All token and node kinds. Tokens first, then nodes, then __LAST sentinel. #[repr(u16)] enables safe transmute in kind_from_raw.

Type Aliases§

SyntaxElement
SyntaxNode
Type aliases for Rowan types parameterized by our language.
SyntaxToken