FANDOM


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

?

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.