Skip to main content

Identifiers syntax

Identifiers in Rell represent symbols that name variables, functions, and other keywords. Each identifier name must be unique to avoid conflicts when naming modules. For instance, the identifier for the function below is display_name:

function display_name(name: text) {
print(name);
}

Rell enforces a specific syntax for identifiers in the following modules:

  • abstract, entity, enum, external
  • function, mount, namespace, object
  • operation, query, struct

You can use the following characters for identifiers:

Identifier typesCharacters
Lowercase English lettersa-z
Uppercase English lettersA-Z
Digits0-9
Underscore_