28.06.2013 Views

ISO Pascal reference manual

ISO Pascal reference manual

ISO Pascal reference manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

*ERROR 145 -- a string constant is required here<br />

Appendix A<br />

The keywords INCLUDE and ALIAS must be followed by a sequence of<br />

characters enclosed in single quotes. INCLUDE and ALIAS are extensions<br />

to standard <strong>Pascal</strong>.<br />

PROGRAM fail(output);<br />

IMPORT PROCEDURE process ALIAS jim(x:integer);<br />

BEGIN<br />

END.<br />

process(123);<br />

*ERROR 146 -- a string constant may not extend over more<br />

than one line<br />

This error is issued when a line-break is found inside a string constant. It is<br />

usually caused by omitting the closing quote of the string.<br />

PROGRAM fail(output);<br />

BEGIN<br />

END.<br />

Writeln('the final quote is missing);<br />

*ERROR 147 -- strings of differing lengths may not be compared<br />

The standard does not permit strings to be compared unless they contain<br />

the same number of characters.<br />

PROGRAM fail(output);<br />

BEGIN<br />

END.<br />

IF 'cat' > 'mouse' THEN writeln('bigger');<br />

*ERROR 159 -- an underline is required between a machine-code<br />

mnemonic and its operands<br />

Assembly language statements embedded in <strong>Pascal</strong> programs must be<br />

written with a underline character between the instruction mnemonic and<br />

the first operand. Machine-code is an extension to standard <strong>Pascal</strong>.<br />

<strong>Pascal</strong> Issue 1 97

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

Saved successfully!

Ooh no, something went wrong!