Identifiers

Identifiers can contain letters (a-z, A-Z), numbers (0-9) or underscores ("_") but they cannot begin with a number.

Special keywords and hardcoded constants:

nametypeusage
thisspecial identifier, read-onlymethod context retrieval
_Gspecial identifier, read/writeglobal environment access
_Rspecial identifier, read-onlyglobal registry access
_Fspecial identifier, read-onlycurrent function retrieval
_Tspecial identifier, read-onlycurrent thread retrieval
nullconstantconstant
trueconstantconstant
falseconstantconstant
varrestricted keywordvariable declaration
globalrestricted keywordvariable declaration
classspecial identifierclass declaration
newrestricted keywordclass instantiation
threadrestricted keywordthread control
subthreadrestricted keywordthread control
syncrestricted keywordthread control
racerestricted keywordthread control
deferrestricted keyworddestruction statement helper
functionrestricted keywordfunction definition
userestricted keywordfunction definition
ifrestricted keyword"if" statement
elserestricted keyword"if/else" statement
dorestricted keyword"do/while" statement
whilerestricted keyword"while", "do/while" statements
forrestricted keyword"for" statement
foreachrestricted keyword"foreach" statement
breakrestricted keyword"break" statement
continuerestricted keyword"continue" statement
returnrestricted keyword"return" statement
printfunction command"print" function
printlnfunction command"println" function
yieldfunction command"yield" function
includefunction command"include" function