home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / parse < prev    next >
Encoding:
Text File  |  1997-04-23  |  1.2 KB  |  42 lines

  1.     
  2.     _P_a_r_s_e _E_x_p_r_e_s_s_i_o_n_s
  3.     
  4.          parse(file="", n=NULL, text=NULL, prompt=NULL,
  5.                  white=FALSE)
  6.     
  7.     _A_r_g_u_m_e_n_t_s:
  8.     
  9.             file : the name of a file to read the expressions
  10.                    from.  If the file is "" and text is missing
  11.                    or NULL then input is taken from the key-
  12.                    board.
  13.     
  14.                n : the number of statements to parse.  If n is
  15.                    negative the file is parsed in its entirety.
  16.                    When parsing takes place from the keyboard, n
  17.                    is always 1.
  18.     
  19.             text : text to parse, quoted.
  20.     
  21.           prompt : the prompt to print when parseing from the
  22.                    keyboard
  23.     
  24.            white : if TRUE then any white space separates
  25.                    expressions otherwise only newlines or semi-
  26.                    colons do.
  27.     
  28.     _D_e_s_c_r_i_p_t_i_o_n:
  29.     
  30.          parse returns the parsed but unevaluated expressions in
  31.          a list. Each element of the list is of mode expression.
  32.     
  33.     _S_e_e _A_l_s_o:
  34.     
  35.          scan, source, eval.
  36.     
  37.     _E_x_a_m_p_l_e_s:
  38.     
  39.          # parse 5 statements from the file "foo"
  40.          parse(file="foo",n=5)
  41.     
  42.