Comments

Comments

Three forms of comments are supported in NBC. The first form (traditional C comments) begin with '/*' and end with '* /'. These comments are allowed to span multiple lines, but they cannot be nested.

 /* this is a comment */
 
 /* this is a two
    line comment */
 
 /* another comment...
    /* trying to nest...
       ending the inner comment...*/
    this text is no longer a comment! */

The second form of comments supported in NXBC begins with '//' and continues to the end of the current line. These are sometimes known as C++ style comments.

 // a single line comment

The third form of comments begins with ; and ends with a newline. This form is the traditional assembly language style comments.

 ; another single line comment

As you might guess, the compiler ignores comments. Their only purpose is to allow the programmer to document the source code.


Generated by  doxygen 1.6.2