Comments

Syntax

"#" *(CHAR) CRLF

"/*" *(CHAR) "*/"

Description

Two types of comments are offered. Comments are semantically equivalent to whitespace and can be used anyplace that whitespace is (with one exception in multi-line strings).

Hash comments begin with a "#" character that is not contained within a string and continue until the next Linebreak (CRLF).

Bracketed comments begin with the token "/*" and end with "*/" outside of a string. Bracketed comments may span multiple lines. Bracketed comments do not nest.

Example

if size :over 100K { # this is a comment
   discard;
}

The above script is shows a hash comment. The script below a bracketed comment.

if size :over 100K { /* this is a comment
   this is still a comment */ discard /* this is a comment
   */ ;
}

Module

Core : Requires no import statement

Resources

RFC3028