Skip to main content

Module keywords

Module keywords 

Source
Expand description

Every word DuckDB’s grammar knows about, and which classes each one is in.

@generated by cargo xtask gen-grammar from the vendored grammar. Do not edit. cargo xtask gen-grammar --check runs in the gate and fails if this file and the grammar disagree.

Sorted and lower cased, so a lookup is one binary search with the candidate folded the same way. One table rather than five, because the classes are not disjoint and five tables would store the overlapping words more than once and then have to decide which answer wins. A mask of zero means the word is spelled by some rule and is in no class, which makes it matchable as a literal and transparent everywhere else.

Constants§

COLUMN_NAME
The column_name_keyword class.
FUNC_NAME
The func_name_keyword class.
LONGEST
The longest keyword, so that folding a candidate can use a fixed buffer and a longer word can skip the lookup without touching the table at all.
RESERVED
The reserved_keyword class.
TYPE_NAME
The type_name_keyword class.
UNRESERVED
The unreserved_keyword class.

Statics§

KEYWORDS
The words, sorted by the lower cased spelling.