TEXT

Syntax

TEXT procname

Explanation

TEXT outputs the definition of the procedure named in its input. The form of the output is a list.

The first element of the list is any variable(s) defined in the title line of the procedure. If there are no variables, the first element is the empty list ([]). Each remaining element is a list which consists of one line of the procedure definition.

The output of TEXT is in the same form as the required input for DEFINE. See also PRINTOUT, POPS, and POTS.

Example

? TO PENTA :SIDE

>   SETPC 2

>   REPEAT 5 [FD :SIDE RT 72]

> END

PENTA defined.

? TEXT "PENTA

Result: SIDE][SETPC 2][REPEAT 5 [FD :SIDE RT 72]

?