Skip to main content

Identifiers

Identifiers in Rell are names used for variables, functions, and other declarations. They must follow specific syntax rules to ensure code clarity and avoid conflicts.

Allowed symbols

An identifier in Rell must:

  • Begin with: An underscore (_), an uppercase letter (A-Z), or a lowercase letter (a-z)
  • Contain: Any combination of underscores, letters, and digits (0-9) after the first character

Identifiers are case-sensitive, meaning myVar and MyVar are treated as different identifiers.

Reserved keywords

Keywords (such as function, entity, if, while, etc.) are reserved and cannot be used as identifiers. Using a keyword as an identifier will result in a syntax error.

Module definitions identifiers

Identifiers are used extensively in module-level definitions to name various components of your Rell application. Each identifier must be unique within its scope to avoid naming conflicts. For example, you cannot have both an entity and a function with the same name in the same module.