TAL Reference Manual
Compiler Directives
TAL Reference Manual—526371-001
16-92
SYNTAX Directive
END;
?NOSYMBOLS !Stop saving symbols
SYNTAX Directive
SYNTAX checks the syntax of the source text without producing an object file.
Usage Considerations
SYNTAX can appear in the compilation command or anywhere in the source code.
You can use the compiler to detect syntax errors before you code large portions of the
source code. If SYNTAX is in effect, the compiler checks the syntax of the source text
without producing an object file.
BINSERV is not needed if no object file is produced.
•
SYNTAX in the compilation command prevents BINSERV from starting.
•
SYNTAX early in the source text stops BINSERV after it starts.
SYNTAX does not affect the CROSSREF directive. The compiler can generate a
cross-reference listing even if it produces no object file.
Checking Saved Global Data Declarations
To check the syntax of saved global data declarations, you can use the SYNTAX,
SAVEGLOBALS, and USEGLOBALS directives. If the syntax check finds errors in the
global data declarations, you can correct them and recompile the source file using
SAVEGLOBALS. For more information on how these directives interact, see the
SAVEGLOBALS Directive
on page 16-75.
Examples of SYNTAX Directive
1. This compilation command checks the syntax of global data declarations in source
file MYPROG and saves the declarations in file TALSYM for use in subsequent
compilations:
TAL /IN myprog/; SAVEGLOBALS talsym, SYNTAX
2. This compilation command checks for the syntax of the code or data in source file
MYPROG. In this compilation, USEGLOBALS retrieves global data declarations
saved in the compilation shown in Example 1. (Because the previous compilation
VST1662.vsd
SYNTAX