Next: Files, Previous: File Input and Output, Up: File Input and Output [Contents][Index]
Maximaの入力の中のコメントは、/*と*/の間の任意のテキストです。
Maximaのパーサは、コメントを、入力外リームでのトークンを見つけるための空白として扱います;
コメントで常にトークンは終わります。
a/* foo */bのような入力は、1つのトークンabではなく、2つのトークン、aとbを含みます。
そうでなければ、Maximaはコメントを無視します;
コメントの中身も位置もパースされた入力式に残りません。
コメントは任意の深さに入れ子にすることができます。
/*と*/の区切り記号はマッチングペアを形作ります。
/*の数は*/と同じでなければいけません。
例:
(%i1) /* aa is a variable of interest */  aa : 1234;
(%o1)                         1234
(%i2) /* Value of bb depends on aa */  bb : aa^2;
(%o2)                        1522756
(%i3) /* User-defined infix operator */  infix ("b");
(%o3)                           b
(%i4) /* Parses same as a b c, not abc */  a/* foo */b/* bar */c;
(%o4)                         a b c
(%i5) /* Comments /* can be nested /* to any depth */ */ */  1 + xyz;
(%o5)                        xyz + 1
Next: Files, Previous: File Input and Output, Up: File Input and Output [Contents][Index]