[Home] [Prev] [Next] [Index]

2.3 Identifiers

2.3 Identifiers

1
Identifiers are used as names and also as reserved words.

2
identifier ::=
    letter {[underline] letter_or_digit}

letter_or_digit ::= letter | digit

letter ::= upper_case_letter | lower_case_letter

3
All characters of an identifier are significant, including any underline character inserted between a letter or digit and an adjacent letter or digit. Identifiers differing only in the use of corresponding upper and lower case letters are considered as the same.

4
Examples:
COUNT   

X  

get_symbol  

Ethelyn Marion

SNOBOL_4  

X1  

PageCount  

STORE_NEXT_ITEM   

Note:

5
No space is allowed within an identifier since a space is a separator.

6
References:

*
digit 2.1

*
lower case letter 2.1

*
name 4.1

*
reserved word 2.9

*
separator 2.2

*
space character 2.1

*
upper case letter 2.1



[Home] [Prev] [Next] [Index]

documentation@rational.com
Copyright © 1993-2000, Rational Software Corporation. All rights reserved.