next up previous
Next: 4.6 apply (xleval.c) Up: 4 Xlispの組込み関数の定義 Previous: 4.4 cond

4.5 eval (xleval.c)

組込み関数のevalに対応するCの関数xevalは以下のように なっています.引数を得て,xlevalを呼び出す形に なっています.

/* xeval - the built-in function 'eval' */
LVAL xeval()
{
  LVAL expr;
  
  /* get the expression to evaluate */
  expr = xlgetarg();
  xllastarg();
  
  /* evaluate the expression */
  return (xleval(expr));
}


generated through LaTeX2HTML. M.Inaba 平成18年5月6日