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


2.7 Comments

(1)
A comment starts with two adjacent hyphens and extends up to the end of the line.
Syntax
(2)
       comment ::= --{non_end_of_line_character}
(3)
Static Semantics
(4)
The presence or absence of comments has no influence on whether a program is legal or illegal. Furthermore, comments do not influence the meaning of a program; their sole purpose is the enlightenment of the human reader.
Examples
(5)
Examples of comments:
(6)
       --  the last sentence above echoes the Algol 68 report

       end;  --  processing of Line is complete

       --  a long comment may be split onto
       --  two or more consecutive lines

       ----------------  the first two hyphens start the comment


Prev | 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