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_keywordclass. - FUNC_
NAME - The
func_name_keywordclass. - 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_keywordclass. - TYPE_
NAME - The
type_name_keywordclass. - UNRESERVED
- The
unreserved_keywordclass.
Statics§
- KEYWORDS
- The words, sorted by the lower cased spelling.