risingwave_sqlparser

Module keywords

source
Expand description

This module defines

  1. a list of constants for every keyword that can appear in crate::tokenizer::Word::keyword: pub const KEYWORD = “KEYWORD”

  2. an ALL_KEYWORDS array with every keyword in it This is not a list of reserved keywords: some of these can be parsed as identifiers if the parser decides so. This means that new keywords can be added here without affecting the parse result.

    As a matter of fact, most of these keywords are not used at all and could be removed.

  3. a RESERVED_FOR_TABLE_ALIAS array with keywords reserved in a “table alias” context.

Macros§

  • Expands to a list of kw_def!() invocations for each keyword and defines an ALL_KEYWORDS array of the defined constants.
  • kw_def 🔒
    Defines a string constant for a single keyword: kw_def!(SELECT); expands to pub const SELECT = "SELECT";

Enums§

Constants§