28.06.2013 Views

ISO Pascal reference manual

ISO Pascal reference manual

ISO Pascal reference manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A<br />

Non-Fatal Compiler error messages<br />

*ERROR 1 -- this is not recognisable as a <strong>Pascal</strong> statement<br />

This message is issued when the compiler cannot make any sense of the<br />

input. It may also be generated as a direct result of previous errors which<br />

cause confusion.<br />

PROGRAM fail;<br />

BEGIN<br />

END.<br />

?Garbage<br />

*ERROR 2 -- the name of the program has been left out<br />

No identifier has been found following the reserved word PROGRAM (or<br />

MODULE).<br />

PROGRAM (output);<br />

BEGIN<br />

END.<br />

writeln('no program name');<br />

*ERROR 3 -- the final item in a program must be a full stop<br />

The end of a program (or module) must be marked by the reserved word<br />

`END' followed by a full stop. Sometimes this message is issued when the<br />

compiler has got out of step with the program because of previous errors.<br />

PROGRAM fail;<br />

BEGIN<br />

END;<br />

<strong>Pascal</strong> Issue 1 47

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!