Skip to main content

Module keywords

Module keywords 

Source
Expand description

Re-exports of reserved keyword lists and field-name escaping from alef-core.

The canonical definitions live in alef_core::keywords. This module re-exports them so that alef-codegen consumers can use alef_codegen::keywords::* without a direct dependency on alef-core.

Constants§

CSHARP_KEYWORDS
C# reserved keywords.
ELIXIR_KEYWORDS
Elixir reserved keywords (including sigil names and special atoms).
GO_KEYWORDS
Go reserved keywords.
JAVA_KEYWORDS
Java reserved keywords (including all contextual/reserved identifiers).
JS_KEYWORDS
JavaScript / TypeScript reserved keywords (union of both).
PHP_KEYWORDS
PHP reserved keywords.
PYTHON_KEYWORDS
Python reserved keywords and soft-keywords that cannot be used as identifiers.
RUBY_KEYWORDS
Ruby reserved keywords.
R_KEYWORDS
R reserved keywords.

Functions§

python_ident
Like python_safe_name but always returns a String, using the original when no escaping is needed. Convenience wrapper for call sites that always need a String.
python_safe_name
Return the escaped field name for use in the generated binding of the given language, or None if the name is not reserved and no escaping is needed.