[BACK]Return to misc.texi CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-doc / parts / builtin

Diff for /OpenXM/src/asir-doc/parts/builtin/misc.texi between version 1.15 and 1.18

version 1.15, 2003/10/21 05:16:35 version 1.18, 2003/12/21 17:36:29
Line 1 
Line 1 
 @comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/misc.texi,v 1.14 2003/10/19 04:57:00 ohara Exp $  @comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/misc.texi,v 1.17 2003/12/18 10:26:20 ohara Exp $
 \BJP  \BJP
 @node $B$=$NB>(B,,, $BAH$_9~$_H!?t(B  @node $B$=$NB>(B,,, $BAH$_9~$_H!?t(B
 @section $B$=$NB>(B  @section $B$=$NB>(B
Line 16 
Line 16 
 * time::  * time::
 * cputime tstart tstop::  * cputime tstart tstop::
 * timer::  * timer::
   * currenttime::
   * sleep::
 * heap::  * heap::
 * version::  * version::
 * shell::  * shell::
Line 91  on $B$N;~(B, $BH!?t$N:FDj5A;~$K%a%C%;!<%8$rI=<($9$k
Line 93  on $B$N;~(B, $BH!?t$N:FDj5A;~$K%a%C%;!<%8$rI=<($9$k
 0 $B$N$H$-%W%m%s%W%H$rI=<($7$J$$(B. 1 $B$N$H$-I8=`%W%m%s%W%H$rI=<((B.  0 $B$N$H$-%W%m%s%W%H$rI=<($7$J$$(B. 1 $B$N$H$-I8=`%W%m%s%W%H$rI=<((B.
 C $B%9%?%$%k$N%U%)%^%C%HJ8;zNs$r$b$A$$$k$H%f!<%6Dj5A$N%W%m%s%W%H(B.  C $B%9%?%$%k$N%U%)%^%C%HJ8;zNs$r$b$A$$$k$H%f!<%6Dj5A$N%W%m%s%W%H(B.
 $BNc(B(asirgui $B$G$OIT2D(B):  $BNc(B(asirgui $B$G$OIT2D(B):
 @code{ ctrl("prompt",asciitostr([0x1b])+"[32m[%d]:= "+asciitostr([0x1b])+"[0m")}  @code{ ctrl("prompt","\033[32m[%d]:= \033[0m")}
 @item hex  @item hex
 1 $B$N$H$-(B, $B@0?t$O(B 0x $B$G;O$^$k(B 16 $B?J?t$H$7$FI=<($5$l$k(B. -1 $B$N$H$-(B, 16 $B?J?t$O(B,  1 $B$N$H$-(B, $B@0?t$O(B 0x $B$G;O$^$k(B 16 $B?J?t$H$7$FI=<($5$l$k(B. -1 $B$N$H$-(B, 16 $B?J?t$O(B,
 $B4V$K(B @samp{|} $B$r$O$5$s$G(B 8 $B7e$4$H$K6h@Z$C$FI=<($5$l$k(B.  $B4V$K(B @samp{|} $B$r$O$5$s$G(B 8 $B7e$4$H$K6h@Z$C$FI=<($5$l$k(B.
Line 169  If the value is 0, then prompt is not output.
Line 171  If the value is 0, then prompt is not output.
 If the value is 1, then the standard prompt is output.  If the value is 1, then the standard prompt is output.
 Asir prompt can be customized by giving a C-style format string.  Asir prompt can be customized by giving a C-style format string.
 Example (for unix asir);  Example (for unix asir);
 @code{ ctrl("prompt",asciitostr([0x1b])+"[32m[%d]:= "+asciitostr([0x1b])+"[0m")}  @code{ ctrl("prompt","\033[32m[%d]:= \033[0m")}
   
 @item hex  @item hex
 If 1 is set, integers are displayed as hexadecimal numbers with prefix  If 1 is set, integers are displayed as hexadecimal numbers with prefix
 @code{0x}. if -1 is set, hexadecimal numbers are displayed with  @code{0x}. if -1 is set, hexadecimal numbers are displayed with
Line 487  for a reply to interruption prompting are added to the
Line 490  for a reply to interruption prompting are added to the
 @table @t  @table @t
 \JP @item $B;2>H(B  \JP @item $B;2>H(B
 \EG @item References  \EG @item References
 @fref{cputime tstart tstop}.  @fref{cputime tstart tstop}, @fref{currenttime}.
 @end table  @end table
   
 \JP @node cputime tstart tstop,,, $B$=$NB>(B  \JP @node cputime tstart tstop,,, $B$=$NB>(B
Line 584  the debug-mode and execute @code{cputime(1)}.
Line 587  the debug-mode and execute @code{cputime(1)}.
 @table @t  @table @t
 \JP @item $B;2>H(B  \JP @item $B;2>H(B
 \EG @item References  \EG @item References
 @fref{time}, @fref{ctrl}.  @fref{time}, @fref{currenttime}, @fref{ctrl}.
 @end table  @end table
   
 \JP @node timer,,, $B$=$NB>(B  \JP @node timer,,, $B$=$NB>(B
Line 595  the debug-mode and execute @code{cputime(1)}.
Line 598  the debug-mode and execute @code{cputime(1)}.
 @table @t  @table @t
 @item timer(@var{interval},@var{expr},@var{val})  @item timer(@var{interval},@var{expr},@var{val})
 \JP :: $B@)8B;~4V$D$-$G7W;;$r<B9T$9$k(B.  \JP :: $B@)8B;~4V$D$-$G7W;;$r<B9T$9$k(B.
 \BEG  \EG :: Compute an expression under the interval timer.
 :: Compute an expression under the interval timer.  
 \E  
 @end table  @end table
   
 @table @var  @table @var
Line 652  interval timer expired (VTALRM)
Line 653  interval timer expired (VTALRM)
 [11]  [11]
 @end example  @end example
   
   \JP @node currenttime,,, $B$=$NB>(B
   \EG @node currenttime,,, Miscellaneouses
   @subsection @code{currenttime}
   @findex currenttime
   
   @table @t
   @item currenttime()
   \JP :: $B8=:_;~9o$r<hF@(B
   \EG :: Get current time.
   @end table
   
   @table @var
   @item return
   \JP 1970$BG/(B1$B7n(B1$BF|(B0$B;~(B0$BJ,(B0$BIC$+$i$N7P2aIC?t(B.
   \EG UNIX time.
   @end table
   
   @itemize @bullet
   
   @item
   \JP @code{currenttime()} $B$O8=:_;~9o$rJV$9(B.  UNIX $B$N>l9g(B, time(3) $B$r8F$s$G$$$k$@$1$G$"$k(B.
   \EG See also time(3) in UNIX manuals.
   
   @end itemize
   
   @example
   [0] currenttime();
   1071639228
   [1]
   @end example
   
   \JP @node sleep,,, $B$=$NB>(B
   \EG @node sleep,,, Miscellaneouses
   @subsection @code{sleep}
   @findex sleep
   
   @table @t
   @item sleep(@var{interval})
   \JP :: $B%W%m%;%9$N<B9T$rDd;_(B
   \EG :: Suspend computation for an interval.
   @end table
   
   @table @var
   @item return
   1
   
   @item interval
   \JP $BDd;_;~4V(B ($B%^%$%/%mIC(B)
   \EG interval (micro second)
   @end table
   
   @itemize @bullet
   
   @item
   \JP @code{sleep()} $B$O(B, $B%W%m%;%9$N<B9T$rDd;_$9$k(B.  UNIX $B$N>l9g(B, usleep $B$r8F$s$G$$$k$@$1$G$"$k(B.
   \EG See also usleep(3) in UNIX manuals.
   
   @end itemize
   
   @example
   [0] sleep(1000);
   1
   [1]
   @end example
   
 \JP @node heap,,, $B$=$NB>(B  \JP @node heap,,, $B$=$NB>(B
 \EG @node heap,,, Miscellaneouses  \EG @node heap,,, Miscellaneouses
 @subsection @code{heap}  @subsection @code{heap}
Line 760  at the activation of @b{Asir}. (@xref{Command line opt
Line 826  at the activation of @b{Asir}. (@xref{Command line opt
 @b{Asir} $B$N%P!<%8%g%s$r<+A3?t$GJV$9(B.  @b{Asir} $B$N%P!<%8%g%s$r<+A3?t$GJV$9(B.
 \E  \E
 \BEG  \BEG
 Command @code{version()} returns the version identification number  @item
 , an integer of @b{Asir} in use.  Command @code{version()} returns the version identification number,
   an integer of @b{Asir} in use.
 \E  \E
 @end itemize  @end itemize
   
Line 859  cyclic        is            r             sugar
Line 926  cyclic        is            r             sugar
 @var{arg0} $B$,%j%9%H(B, $B%Y%/%H%k(B, $B9TNs0J30$N>l9g(B, $BC1$K(B @var{arg0},  @var{arg0} $B$,%j%9%H(B, $B%Y%/%H%k(B, $B9TNs0J30$N>l9g(B, $BC1$K(B @var{arg0},
 @var{arg1}, ... $B$r0z?t$H$7$F(B @var{function} $B$r8F$S=P$7$=$N(B  @var{arg1}, ... $B$r0z?t$H$7$F(B @var{function} $B$r8F$S=P$7$=$N(B
 $B7k2L$rJV$9(B.  $B7k2L$rJV$9(B.
   @item
   @code{map} $B$N0z?t(B @var{function} $B$GM?$($i$l$kH!?t$O(B, $BFbItE*$K$bH!?t$H(B
   $B$7$F<BAu$5$l$F$$$J$1$l$P$J$i$J$$(B.  $B$=$&$G$J$1$l$P(B parse error $B$K$J$k(B.
   $BNc$($P(B @code{map} $B<+?H$d(B @code{car}, @code{cdr} $B$J$I$OFbItE*$K$OH!?t$G(B
   $B$O$J$/(B, Asir $B$NJ8K!$K$*$1$k%-!<%o!<%I$H$7$F<BAu$5$l$F$$$k(B.  $B$7$?$,$C$F(B
   @code{map} $B$N0z?t$K(B @code{map} $B$r$H$k$3$H$O$G$-$J$$(B.
 \E  \E
 \BEG  \BEG
 @item  @item

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.18

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>