=================================================================== RCS file: /home/cvs/OpenXM/src/asir-doc/parts/asir.texi,v retrieving revision 1.5 retrieving revision 1.7 diff -u -p -r1.5 -r1.7 --- OpenXM/src/asir-doc/parts/asir.texi 2000/09/23 07:53:24 1.5 +++ OpenXM/src/asir-doc/parts/asir.texi 2003/04/20 08:01:25 1.7 @@ -1,4 +1,4 @@ -@comment $OpenXM: OpenXM/src/asir-doc/parts/asir.texi,v 1.4 2000/01/26 01:37:32 noro Exp $ +@comment $OpenXM: OpenXM/src/asir-doc/parts/asir.texi,v 1.6 2002/09/03 01:50:57 noro Exp $ \BJP @node ユーザ言語 Asir,,, Top @chapter ユーザ言語 Asir @@ -576,7 +576,7 @@ def afo(X) @{ @samp{/*} がいくつあっても最初のもののみが有効となり, 最初に現れた @samp{*/} でコメントは終了したと見なされる. プログラムなどで, コメント を含む可能性がある部分をコメントアウトした場合には, @code{#if 0}, -@code{#endif}を使えばよい. (@xref{プリプロセッサ}) +@code{#endif}を使えばよい. (@xref{プリプロセッサ}.) \E \BEG A comment can span to several lines, but it cannot be nested. @@ -585,7 +585,7 @@ in the subsequent text exist, and the comment terminat @samp{*/}. In order to comment out a program part that may contain comments in it, -use the pair, @code{#if 0} and @code{#endif}. (@xref{preprocessor}) +use the pair, @code{#if 0} and @code{#endif}. (@xref{preprocessor}.) \E @example @@ -652,7 +652,7 @@ S = sum(N); \BJP のように, 式に終端記号 (@samp{;} または @samp{$}) をつけたものである. この単文及び類似の @code{return} 文, @code{break} 文などが文の最小構成 -単位となる. @code{if} 文や @code{for} 文の定義 (@xref{文法の詳細}) を見れ +単位となる. @code{if} 文や @code{for} 文の定義 (@ref{文法の詳細}) を見れ ばわかる通り, それらの本体は, 単なる一つの文として定義されている. 通常 は, 本体には複数の文が書けることが必要となる. このような場合, @samp{@{} と @samp{@}} で文の並びを括って, 一つの文として扱うことがで @@ -890,7 +890,7 @@ infinite loop. @example \JP for ( 式並び-1; 式; 式並び-2 ) 文 -\EG for ( expression list-1; expression; expression list-2 ) statement +\EG for ( expr list-1; expr; expr list-2 ) statement @end example \JP で, これは @@ -905,10 +905,10 @@ while ( 式 ) @{ @} \E \BEG -expression list-1 (transformed into a sequence of simple statement) -while ( expression ) @{ +expr list-1 (transformed into a sequence of simple statement) +while ( expr ) @{ statement - expression list-2 (transformed into a sequence of simple statement) + expr list-2 (transformed into a sequence of simple statement) @} \E @end example @@ -1137,7 +1137,7 @@ There are special assignments combined with arithmetic @example \JP A = 2 A *= 3 (これは A = A*3 と同じ; その他の演算子も同様) -\EG A = 2 A *= 3 (the same as A = A*3; The other combination are alike.) +\EG A = 2 A *= 3 (the same as A = A*3; The others are alike.) @end example @item \JP 函数呼び出し @@ -1163,8 +1163,8 @@ A-- 値は元の A の値, A = A-1 \BEG A++ the expression value is the previous value of A, and A = A+1 A-- the expression value is the previous value of A, and A = A-1 -++A A = A+1, and the expression value is the value after increment of A ---A A = A-1, and the expression value is the value after decrement of A +++A A = A+1, and the value is the one after increment of A +--A A = A-1, and the value is the one after decrement of A \E @end example