While writing your program, you can use the COMPILE and REVIEW
commands to compile your code and review compilation errors without
leaving the editing session.
Supported VMS language compilers generate a file of compile-time
diagnostic information that LSE can use to review compilation errors.
The diagnostic information is generated with the /DIAGNOSTICS
qualifier.
The COMPILE command issues a DCL command in a subprocess to invoke
the appropriate compiler. LSE checks to see if the language provides
/DIAGNOSTICS capabilities. If so, LSE appends the /DIAGNOSTICS
qualifier onto the compilation command.
For example, if you issue the COMPILE command while in the buffer
TEST.ADA, the resulting DCL command is as follows:
$ ADA DEV:[DIRECTORY]TEST.ADA/DIAGNOSTICS=DEV:[DIRECTORY]TEST.DIA
LSE supports all of the compiler's command qualifiers as well as
user-supplied command procedures. You can specify DCL qualifiers,
such as /LIBRARY, when invoking the compiler from LSE. (See the
Command Dictionary for details on the COMPILE command.)
The REVIEW command displays any diagnostic messages that resulted
from a compilation. LSE displays the compilation errors in one
window, with the corresponding source code displayed in a second
window.
This multiwindow capability allows you to review your errors while
examining the associated source code. This eliminates tedious steps
in the error correction process and helps ensure that all the errors
are fixed before looping back through the compilation process.
LSE provides several commands to help you review errors and exam your
source code. The following lists these commands and their default
key bindings.
COMPILE/REVIEW
compiles and reviews the content of the current buffer.
END REVIEW
terminates the current review session.
GOTO SOURCE
uses the current cursor position in $REVIEW to select
the diagnostic in the source buffer. This command is
bound to CTRL/G.
NEXT ERROR
selects the next diagnostic message from $REVIEW.
NEXT STEP
selects the next diagnostic message from $REVIEW.
This command is bound to CTRL/F.
PREVIOUS ERROR
selects the previous diagnostic message from $REVIEW.
PREVIOUS STEP
selects the previous diagnostic message from $REVIEW.
This command is bound to CTRL/B.
REVIEW
displays the diagnostic messages resulting from a
compilation.