TEXT
Syntax TEXT procedurename 
 
Explanation TEXT takes a quoted procedure name as input and reports the definition of that procedure. 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 that 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.

Examples 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]]] 

TopIndex