Ada Resource Association
News and resources for the Ada programming language
Ada Reference ManualLegal Information
Contents   Index   References   Search   Previous   Next 

2.5 Character Literals

1
A character_literal is formed by enclosing a graphic character between two apostrophe characters.

Syntax

2
character_literal ::= 'graphic_character'
NOTES
3
5  A character_literal is an enumeration literal of a character type. See 3.5.2.

Examples

4
Examples of character literals: 
5/2
'A'     '*'     '''     ' '
'L'     'Л'     'Λ'    -- Various els.
'∞'     'א'            -- Big numbers - infinity and aleph.

Contents   Index   References   Search   Previous   Next 
Ada-Europe Sponsored by Ada-Europe