Menu

Names

Csaba Skrabák

Format

Programmer is free to give names to labels, variables, arrays and functions as long as the names match the following regular expression:

/^[A-Z][A-Z0-9.]*[%!$]?/

The format of the definition and the reference are the same. See [References] page for details.

Parenthesis is Mandatory for Functions and Arrays

Both function and array names must be immediately followed by a left parenthesis. That is, no whitespace in between is allowed.

  • There is no possibility to refer to a whole array instead of a single element in it.
  • Nullary arrays as well as such functions must be followed by an empty pair of parentheses.
  • There is no possibility to refer to a function rather than calling it.

Keywords

Instruction names formally match the pattern, but you will get various errors if you use them as names. See [Hacks]


Related

Wiki: Errors
Wiki: Expressions
Wiki: Hacks
Wiki: Home
Wiki: Instructions
Wiki: References

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.