Comments

Fore.NET programs support two forms of comments: single-line comments and multi-line comments. Single-line comments start with the characters // and extend to the end of a line. Multi-line comments start with the character { and end with the character }.

comment:

single-line-comment

delimited-comment

single-line-comment:

//   input-charactersopt

input-characters:

input-character

input-characters   input-character

input-character:

Any Unicode character except a new-line character

delimited-comment::

{   delimited-comment-textopt   }

delimited-comment-text::

delimited-comment-section

delimited-comment-text   delimited-comment-section

delimited-comment-section::

Any Unicode character except }

Comments do not nest. Characters { and } have no special meaning within single-line comments. The characters // and { have no special meaning within multi-line comments. Comments are not processed within character and string literals.

Example

//Single-line comment

{Example of
multi-line
comment}

See also:

Lexical Structure