1 03/06/80  apl_get_list_nums_ external function
 2 
 3 Function: reads and converts a segment containing PL/I or FORTRAN numbers
 4 (in character form) into an APL vector.
 5 
 6 
 7 Usage:
 8    )MFN GET_LIST_NUMS APL_GET_LIST_NUMS_
 9    RESULT -^H< GET_LIST_NUMS 'PATH'
10 
11 
12 Arguments:
13 PATH
14    is the pathname of the text segment to be read. It can be relative or
15    absolute.
16 
17 RESULT
18    is the numeric vector that is returned by the function. The length of
19    the vector is the number of values that were read.
20 
21 
22 Notes:
23 The data in the segment must be in a form suitable for reading by PL/I list
24 directed input. The segment (or multisegment file) is opened for stream input
25 and read using list directed input until all of the data has been read.
26 A message is printed give the (1 origin) index of any values that cannot be
27 converted, along with the bad value itself. A zero is substituted in the result
28 vector for these bad values.
29 
30 PL/I list directed input permits any white space character (blank, tab, new
31 line, new page) to be used as a delimiter between values. Also, a comma may
32 be used to separate values. Two adjacent commas cause a zero to be returned.
33 Any of the forms of PL/I (or FORTRAN) constants may be used; the value may be
34 signed, may have a decimal point, may have a (signed) exponent, and may be
35 binary or decimal, fixed or float. Only the real part of any complex values
36 is used. Since blanks are a delimiter, no blanks may appear within a single
37 value.
38 
39 This function can print non-APL error messages; therefore it is advisable to
40 run in )ERRS LONG mode.