Analyze source for syntax errors

 

When checked the ANAYYZE SOURCE FOR SYNTAX ERRORS checkbox setting causes the compiler to use the WIL Lexical Analyzer module to scan the target script for errors before compilation begins.  If any errors or warnings are found, the Compiler can display a dialog showing a list of errors and warning. Press the "Syntax Analyzer Errors" dialog's "Continue" button to proceed with the compilation or press the "Cancel" button to return to the main Compiler window without compiling the target. This checkbox setting is remembered  for all subsequent compiles of all source files.

 

If the "Analyze source for error" option is selected, the compiler is invoked with the target script as a command line parameter, and the target script's "cmp" file contains the "silent=1" option; the Compiler generates a text file of any found errors.  The syntax error dialog is not displayed.  The compiler also generates an error file instead of displaying the syntax error dialog when it is invoked with a "cmplst" file as a command line parameter.  In both instances, the error file name is the target script's file name with a time stamp and a ".txt" file extension.  The file is placed in the target's location on the file system.

 

Analyzer Note:

The Syntax Analyze does not determine the contents of script variables.  This means that the Analyzer does not perform substitution and cannot accurately determine the syntax of lines containing substitution. This can cause the Analyzer to identify errors in substitution lines that are correct when the substitution is performed by the WIL interpreter.    

 

SOURCE

OPTIONS

TARGET

EXTENDERS

OTHER FILES

ICON

ANALYZE

SETTINGS

VERSION INFO

MULTI

 

WinBatch+Compiler

 

 

 

image\errors.gif

 

 

Each error line in the Analyzer window represents one error. A single line in the script can produce more than one error. Error lines consist of a full path-name of the file being analyzed, the row and column numbers of the error's location in the script, the word "error" or "warning", an error number, and a brief error description.

 

Note that column numbers may not match your editor's column numbers because of your editor's representation of the tab character.

 

Press the CONTINUE button to proceed with the compilation.

 

Press the CANCEL button to return to the compilers main window wihtout compiling the target.