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 types | Characters |
---|---|
Lowercase English letters | a-z |
Uppercase English letters | A-Z |
Digits | 0-9 |
Underscore | _ |