____ | Up | Next | Back | Forward
TOC -- / --.-- / --.--.-- | Index | Search | Syntax | Help


2.1 Character Set

(1)
The only characters allowed outside of comments are the graphic_characters and format_effectors.
Syntax
(2)
       character ::= graphic_character | format_effector | other_control_function
(3)
       graphic_character ::= identifier_letter | digit | space_character | special_character
Static Semantics
(4)
The character repertoire for the text of an Ada program consists of the collection of characters called the Basic Multilingual Plane (BMP) of the ISO 10646 Universal Multiple-Octet Coded Character Set, plus a set of format_effectors and, in comments only, a set of other_control_functions; the coded representation for these characters is implementation defined (it need not be a representation defined within ISO-10646-1).
(5)
The description of the language definition in this International Standard uses the graphic symbols defined for Row 00: Basic Latin and Row 00: Latin-1 Supplement of the ISO 10646 BMP; these correspond to the graphic symbols of ISO 8859-1 (Latin-1); no graphic symbols are used in this International Standard for characters outside of Row 00 of the BMP. The actual set of graphic symbols used by an implementation for the visual representation of the text of an Ada program is not specified.
(6)
The categories of characters are defined as follows:
(7)
identifier_letter
(8)
upper_case_identifier_letter
(9)
lower_case_identifier_letter
(10)
digit
(11)
space_character
(12)
special_character
(13)
format_effector
(14)
other_control_function
(15)
The following names are used when referring to certain special_characters:
       symbol     name                       symbol     name

         "        quotation mark               :        colon
         #        number sign                  ;        semicolon
         &        ampersand                    <        less-than sign
         '        apostrophe, tick             =        equals sign
         (        left parenthesis             >        greater-than sign
         )        right parenthesis            _        low line, underline
         *        asterisk, multiply           |        vertical line
         +        plus sign                    [        left square bracket
         ,        comma                        ]        right square bracket
         -        hyphen-minus, minus          {        left curly bracket
         .        full stop, dot, point        }        right curly bracket
         /        solidus, divide
Implementation Permissions
(16)
In a nonstandard mode, the implementation may support a different character repertoire; in particular, the set of characters that are considered identifier_letters can be extended or changed to conform to local conventions.

(17)
(18)


____ | Up | Next | Back | Forward
TOC -- / --.-- / --.--.-- | Index | Search | Syntax | Help

Ada WWW Home -- Email comments, additions, corrections, gripes, kudos, etc. to:

Magnus Kempe -- Magnus.Kempe@di.epfl.ch
Copyright statement
Page last generated: 95-03-12