Identifier

<identifier>

──<letter>─┬───────────────────────┬───────────────────────────────────┤
           │ ┌◄──────────────────┐ │
           └─┴─/62\─┬─<letter>─┬─┴─┘
                    ├─<digit>──┤
                    └─ _ ──────┘

Identifiers have no intrinsic meaning. They are names for variables, arrays, procedures, and so forth. An identifier must start with a letter, which can be followed by any combination of letters, digits, and underscore characters (_).

The scopes of identifiers are described in Program Structure.

Examples

Valid Identifiers

A

I

B5

YSQUARE

EQUITY

RETURN_RATE

D2R271GL

TEST_1

Invalid Identifiers

Reason

1776

Does not begin with a letter.

2BAD

Does not begin with a letter.

$

$ is not an allowed character.

X-Y

“-” is not an allowed character.

NET GAINS

Blank spaces are not allowed.

NO.

“.” is not an allowed character.

_TEST

Does not begin with a letter.

BEGIN

Reserved word.