Comments

As mentioned briefly at the beginning, single-line comments start with # and continue until the end of the line, and multi-line comments start with #[[ and continue until #]]. Comments can also be used to annotate parts of the program and slightly modify compiler behavior.

Comment annotations

Every comment annotation starts with @. They will look something like the following:

#Some example function
#@param n number The number to square.
#@return number The square of the input number.
function square
    return {@1 * @1}
end

The following is a complete list of annotations and what their effects are:


< Prev | Home | Next >