readList
HC
Communication
Receivers
readList
readList
rL
reads a line from the read stream (initially the terminal) and outputs that line as a list. The line is separated into members as though it were typed in square brackets in an instruction. If the read stream is a file, and the end of file is reached, READLIST outputs the empty word (not the empty list). READLIST processes backslash, vertical bar, and tilde characters in the read stream; the output list will not contain these characters but they will have had their usual effect. READLIST does not, however, treat semicolon as a comment character.
Example:
readList
a b c (1+2)*3 ;[a b c (1+2)*3] ;-)
|
See also:
Examples:
References:
Tokenization(6), rL(5), setReaderPos(3), openUpdate(2), parse(2), readChar(2), readChars(2), Control Structures, KeyP, Shell, setReader