EGL ファイル内のコメント は、生成プロセスで無視される文字のグループです。 次のいずれかの方法でコメントを作成することができます。
コメントは、以下の例に示すとおり、実行可能ステートメントの内側または外側に置くことができます。
/* the assignment e = f occurs if a == b or if c == d */
if (a == b // one comparison
|| /* OR; another comparison */ c == d)
e = f;
end
/* this line starts a comment /* and
this line ends the comment, */
but this line is not inside a comment at all */
最初の 2 つの行のコメントに、2 番目の開始区切り文字 (/*) が含まれています。 EGL が 3 番目の行をソース・コードとして解釈しようとした場合にのみエラーになります。
以下は有効です。
a = b; /* this line starts a comment // and
this line ends the comment */
最後の例の二重スラッシュ (//) は、それ自体が外側のコメントの一部になっています。