![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395234x1.png)
9
When you compile mism.p, the
hostname% pc mism.p |
| |
E | Malformed declaration | |
Unexpected | ||
|
|
|
Compiler Semantic Errors
The following sections explain the typical formats and terminology used in
Pascal error messages.
Format of the Error DiagnosticsIn the example program above, the error diagnostics from the Pascal compiler include the line number in the text of the program, as well as the text of the error message. While this number is most often the line where the error occurred, it can refer to the line number containing a bracketing keyword like end or until. If so, the diagnostic may refer to the previous statement. This diagnostic occurs because of the method the compiler uses for sampling line numbers. The absence of a trailing semicolon (;) in the previous statement causes the line number corresponding to the end or until to become associated with the statement.
As Pascal is a
Since Pascal is a
The Pascal compiler distinguishes among the following type classes in its diagnostics:
array | integer | scalar |
boolean | pointer | string |
char | real | varying |
file | record |
|
|
|
|
210 | Pascal 4.0 User’s Guide |