Contents Previous Next Subchapters

Comments and Statement Continuation
Syntax text
... 
text
#begin## 
text #end##
See Also mlmode , include

Description
All of the characters in text are comments and are ignored by O-Matrix. In the case of the # character, text is all the characters following the # character up to but not including the next end of line. In the case of the ... characters, text is all the characters following the # character up to and including the next end of line. In the case of the #begin## and #end##, text is all the characters after the #begin## and before the next #end## and may include any number of end of line characters.

Note that, from the description above, ... can be used to continue a statement on the next input line.

Example
If you enter
     print  1 + 2    # a simple calculation
O-Matrix will respond
     3
If you enter
     print ...   a simple calculation
     1 + 2
O-Matrix will respond
     3
Multiple line comments cannot be entered at the command line. If the file temp.oms contains
     #begin##
     a simple calculation
     #end##
     print 1 + 2
and at the command line you enter
     include temp.oms
O-Matrix will respond
     3

Mlmode
In Mlmode , the % character is used in place of the # character in comments. If the file temp.m contains
     %begin%%
     a simple calculation
     %end%%
     1 + 2
and in Mlmode you enter
     clear
     temp
O-Matrix will respond
     3