Comments

Comments can be used to explain code, and to make it more readable.

Table of Contents
  1. Single Line Comments
    1. Single Line Comments - Syntax
  2. Multi-line Comments
    1. Multi-line Comments - Syntax

Single Line Comments

if white exit 1 // Reject the input if the first pixel is white

Single Line Comments - Syntax

// text [\n | \v]

You can also add documentation to your program by using ///:

/// Reject the input if the first pixel is white
if white exit 1

Multi-line Comments

/*
Reject the input if the first pixel is white
*/
if white exit 1

Multi-line Comments - Syntax

/* {text (\n | \v)} text */

You can also add documentation to your program by using /**:

/**
Reject the input if the first pixel is white
*/
if white exit 1