Identifiers
Identifiers are used to name labels, constants, variables, and other program objects.
An identifier may contain only the following characters:
- Latin letters (
A-Z,a-z); - digits (
0-9); - the underscore character (
_).
The first character of an identifier must be either a Latin letter or an underscore (_). An identifier cannot begin with a digit.
Examples of valid identifiers:
_start
main
message
loop1
_tmp
Examples of invalid identifiers:
1loop
my-variable
hello world
Case Sensitivity
Identifiers in RASM are case-sensitive.
For example, the following identifiers are considered different:
main:
Main:
MAIN:
In contrast, instruction mnemonics and register names are case-insensitive.
The following statements are equivalent:
mov rax, 0
MOV RAX, 0
Mov RaX, 0
Allowed Characters
In the current version of RASM, identifiers support only ASCII characters:
- Latin letters (
A-Z,a-z); - digits (
0-9); - the underscore character (
_).
Unicode characters (such as Cyrillic letters, CJK characters, or emoji) are not supported in identifiers.