<< Click to Display Table of Contents >> Home mIoTa BASIC > mIoTa BASIC Language Reference > Lexical Elements > Comments |
Comments are pieces of a text used to annotate a program, and are technically another form of whitespace. Comments are for the users use only. They are stripped from the source text before parsing.
There are two ways to create comments in mIoTa BASIC. You can use multi-line comments which are enclosed with braces { and }
{ All text between left and right brace constitutes a comment and may span multiple lines. } |
or single-line comments using //. Anything after // is taken as a comment until the next line starts.
// Any text after a double-slash and the end of the // line constitutes a comment spanning one line only. |