As the format of occam programs is significant, there are a number of rules concerning how programs are annotated. A comment is
introduced by a double dash symbol (--), and extends to the end of the line.
4 Syntax and program format
Consider the following sequence:
SEQ
-- This example illustrates the use of comments
-- A comment may not be indented less than
-- the following statement
...
SEQ -- A sequence
...
Comments may not be indented less than the following statement.
c-pgms.blogspot.com Moved
15 years ago
No comments:
Post a Comment