RL

Syntax

READLIST

RL

Explanation

READLIST outputs in the form of a list the next line (up to a carriage return) from the input stream. If no line is waiting to be read, READLIST waits for input from the keyboard.

See also READ, READCHAR, READLINE and READQUOTE.

Example

? TO ASKIT

> PR [WHAT ARE YOUR FAVORITE FOODS?]

> MAKE "FOODS READLIST

> PR [I KNOW A RESTAURANT WHERE THEY SERVE]

> PR :FOODS

> PR [THAT WOULD MAKE YOUR MOUTH WATER.]

> END

ASKIT defined.

? ASKIT

WHAT ARE YOUR FAVORITE FOODS?

? JAM, PEACHES, AND BEEF JERKY

I KNOW A RESTAURANT WHERE THEY SERVE

JAM, PEACHES, AND BEEF JERKY

THAT WOULD MAKE YOUR MOUTH WATER.

?