

Description:
COMPILE converts nu/TPU source code into executable programs. COMPILE returns
a nu/TPU program containing the procedures and/or statements in the text
passed in the first parameter. A zero length program is returned if the text
provided contains any of the following conditions:
VAX/TPU limits input lines in COMPILE to less than 256 characters. nu/TPU does
not impose a line limitation. For detailed error messages, use the TPU
statement: See differences for specific syntax changes between VAX/TPU and nu/TPU.
SET(INFORMATIONAL, ON);
Syntax:
program := COMPILE ({buffer | range | string})
Examples:
The following defines the variable move_down as a move function:
MOVE$DOWN := COMPILE ("MOVE_VERTICAL (1)");
The following compiles the entire current buffer as defined by the nu/TPU
CURRENT_BUFFER builtin.
PROGRAM$RETURN := COMPILE (CURRENT_BUFFER);
Errors:
TPU$_COMPILEFAIL Compilation incomplete due to syntax errors.
Related Builtins:
COMPILE
NULL programs.
Procedures or statements with syntax errors.
Source code containing only procedure definitions.