Compile Time Error Message Format

To understand the compile-time error message format, consider this incorrect source line:

S=B+C        

If this were line 7 of a source file ADD2.m, the compiler reports the compile-time error with the message:

S=B+C 
    ^-----
At column 4, line 7, source module ADD2
 Variable expected in this context

The compile-time error message format consists of three lines. The first two lines tell you the line and location where the error occurred. The last line describes the M syntax error. The positioning accuracy of the carat pointing to the location of an issue in a source line depends on your terminal settings, particularly in UTF-8 mode where character widths are not uniform. If the line exceeds the terminal width as understood by GT.M, it replaces the carat line with an ARROWNTDSP error.

If you requested a listing file, it contains the same information and looks as follows:

.
.
6 .  .  .
7 S=B+C
    ^-----
 Variable expected in this context
8 . . .
.
.