Ada Programming/Delimiters

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

Ada Lovelace 1838.jpg

Contents


[edit] Single character delimiters

& 
ampersand (also operator &)
' 
apostrophe, tick
( 
left parenthesis
) 
right parenthesis
* 
asterisk, multiply (also operator *)
+ 
plus sign (also operator +)
, 
comma
- 
hyphen, minus (also operator -)
. 
full stop, point, dot
/ 
solidus, divide (also operator /)
: 
colon
; 
semicolon
< 
less than sign (also operator)
= 
equal sign (also operator =)
> 
greater than sign (also operator)
| 
vertical line

[edit] Compound character delimiters

=> 
arrow
.. 
double dot
** 
double star, exponentiate (also operator **)
:= 
assignment
/= 
inequality (also operator)
>= 
greater than or equal to (also operator)
<= 
less than or equal to (also operator)
<< 
left label bracket
>> 
right label bracket
<> 
box

[edit] Others

The following ones are special characters but not delimiters.

" 
quotation mark, used in string literals.
# 
number sign, used in number literals with base.

The following special characters are unused in Ada - they are illegal except within string literals and comments:

left square bracket
right square bracket
left curly bracket
right curly bracket

[edit] See also

[edit] Wikibook

[edit] Ada 95 Reference Manual

[edit] Ada 2005 Reference Manual