Functional Area
: Identifiers, Keywords and Comments
Identifiers are words used to represent variables, class members, new class and
function names, labels, Java class names, etc. They are composed of letters, digits and
special symbols including $ , # and , with the exception that the first character
can not be a digit.
Identifiers that start with # are constant names.
Keywords are words reserved for the language itself. Some of JudoScript's reserved
words can not be used as identifiers at all, while others can still be used as identifiers
based on context. See Keywords in Syntax.
JudoScript has 4 forms of comments:
- Single-line comment: anything following // up to the end of the line is comment.
- Single-line comment: anything following #! up to the end of the line is comment.
This form is primarily to support the Unix script auto-run feature.
- Multi-line comment: anything in between /* and */ is comment.
- Multi-line comment: anything in between /? and ?/ is comment.
This form is introduced to comment out a chunk of code which may contain /* */
comments.