next up previous contents
Next: Predefined Identifiers Up: Basic Symbols Previous: Basic Symbols

Identifiers

 
  identifier ::= letter ('_' | letter | digit)\stern .
  letter ::= 'a' | 'A' | 'b' | 'B' | 'c' | 'C' | 'd' | 'D' |
             'e' | 'E' | 'f' | 'F' | 'g' | 'G' | 'h' | 'H' |
             'i' | 'I' | 'j' | 'J' | 'k' | 'K' | 'l' | 'L' |
             'm' | 'M' | 'n' | 'N' | 'o' | 'O' | 'p' | 'P' |
             'q' | 'Q' | 'r' | 'R' | 's' | 'S' | 't' | 'T' |
             'u' | 'U' | 'v' | 'V' | 'w' | 'W' | 'x' | 'X' |
             'y' | 'Y' | 'z' | 'Z' | special_letter .
  digit ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' .
An identifier is a freely chosen representation for an entity, i.e. a class, a feature of a class or a local entity within a method. The meaning of an identifier within a program is prescribed by defining occurrences of the identifier. All other appearances of the identifier are called applied occurrences.

Example: MAIN_CLASS attribute_name method_name local tex2html_wrap_inline1707

Hint: Implementations may require that identifiers used as class names do not contain lower case letters. tex2html_wrap_inline1707

Hint: Within an external class the syntax may be adapted to suit the conventions of other programming languages. tex2html_wrap_inline1707

Hint: Which characters are considered special letters is implementation dependent. E.g., when using ISO 8859-1 encoding then the sedecimal values 0xC0-0xD6, 0xD8-0xF6, 0xF8-0xFF print as letters of certain European alphabets and are considered special letters. Special letters should not occur in portable classes. tex2html_wrap_inline1707

Letters are case sensitive: constant is a reserved keyword whereas CONST is a freely chosen identifier.


Martin Trapp
Mon Feb 17 16:49:16 MET 1997