contents.gifprev1.gifnext1.gif

EXECUTE

Description:

EXECUTE programs, learn sequences, and commands. In EXECUTE, if text is passed as the first parameter, only valid nu/TPU statements may be contained in the string, range, or buffer. If the first parameter is a keyword, the key with a matching keyname and the action bound to that matching key is executed. A second, optional parameter specifies the key-map or key-map-list to be used when locating the key.

Syntax:

EXECUTE ( executable )

EXECUTE ( keyname [, {key-map-list-name | key-map-name} ] )

Valid executable types are: Buffer, Learn, Range, Program, or String.

Example:

The following runs the code located in the current buffer as defined by the nu/TPU CURRENT_BUFFER built-in.

EXECUTE (CURRENT_BUFFER);

Errors:

TPU$_COMPILEFAIL Compilation incomplete due to syntax errors.

TPU$_CONTROLC Execution aborted by [CTRL-C].

TPU$_EXECUTEFAIL Execution halted.

TPU$_NOKEYMAP The string is not a key-map.

TPU$_RECURLEARN Learn recursion is illegal.

Related Builtins:

COMPILE