# This function parses and executes the given character string.  The
# string must be a valid expression.  All variable references are at
# global scope.

eval = function (s)
{
  if (exec ("$eval=("+s+");")) {exception ();}
  return $eval;
};


syntax highlighted by Code2HTML, v. 0.9.1