Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

VAXTPU COMPILE — VMS 5.2

 COMPILE

    Converts the statements in a string, range, or buffer into an internal
    compiled format; optionally returns a program.  If you compile a buffer
    containing executable statements, VAXTPU returns a program storing
    these executable statements.  If the buffer contains procedure
    definitions, VAXTPU compiles the procedures and lists them in the
    procedure definition table so you can call them later (for example, by
    using them in other procedures or by using the EVE command TPU).

    To see the compiler messages, use SET (INFORMATIONAL, ON) before
    compiling.

 Syntax

    [program := ] COMPILE ({string | range | buffer})

 Parameters

    string     A string that is a VAXTPU procedure or statement.

    range      A range containing VAXTPU procedures or statements.

    buffer     A buffer containing VAXTPU procedures or statements.

 Examples

    1.  user_program := COMPILE (main_buffer);

        Compiles the contents of the main buffer.

    2.  godown :== COMPILE ("MOVE_VERTICAL (+1)");

        Stores in the variable GODOWN the compiled statement.  You can then
        use that variable with the EXECUTE built-in to move the cursor down
        one line.

 Related topics

    EXECUTE   SET(INFORMATIONAL)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026