31.12.2013 Views

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>PASCAL</strong> DATA TYPES<br />

When you specify the tag field in the first form (tag name tag<br />

type), you should reference on] y the fields in the currently val i(]<br />

variant. The following example shows the use of this form:<br />

TYPE Name ~<br />

D a '.:~ ;;;: (M 0 n ~ T 1..1 (~~ y W p (j ~ T h IJ, F l' i ) ;<br />

~~ t () C k ::" F< E C Cl F< 1:1<br />

F'd r t : 1.. (;9 (J 9 ,<br />

PACKED ARRAY [1 •• <strong>20</strong>J OF CHAR,<br />

Stoc~_Quantit~<br />

: INTEGER,<br />

f:>upp J if:" r : Name;<br />

CASE Onorde1' : BOOLEAN OF<br />

T"HUE :(P1'omi~:;pd: Da~:I;<br />

o T' d f.~ T' _. (J u ant i t ~~<br />

Price: REAL);<br />

FALf:;C<br />

END,<br />

: (l..ast .... :~hipmf.·~nt<br />

F

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

Saved successfully!

Ooh no, something went wrong!