x  Table of Contents  CHAPTER 4  CHAPTER 6  CHAPTER 7  The Program Heading and the Declaration Part .........  21  3.A. Program Heading  ...............................  22  3.B. Label Declaration Part ............................  22  3.C. Constant Definition Part  ..........................  23  3.D. Type Definition Part  .............................  24  3.E. Variable Declaration Part ..........................  25  3.F. Procedure and Function Declaration Part  .............  27  3.0. Scope of Identifiers and Labels .....................  27  The Concept of Action  ..............................  28  4.A. The Assignment Statement and Expressions  ..........  28  4.B. The Procedure Statement  .........................  33  4.C. The Compound Statement and the Empty Statement  ....  34  4.D. Repetitive Statements  ............................  35  4.D.l  The While Statement  ....................  35  4.D.2  The Repeat Statement  ....................  35  4.D.3  The For Statement .......................  37  4.E Conditional Statements  ...........................  43  4.E.l  The If Statement  ........................  43  4.E.2  The Case Statement  .....................  46  4.F. The With Statement  ..............................  47  4.0. The Ooto Statement  .............................  47  CHAPTER 3  Enumerated and Sub range Types  .....................  50  5.A. Enumerated Types  ...............................  50  5.B. Subrange Types  .................................  53  Structured Types in General - Array Types in Particular  55  6.A. The Array Type  .................................  56  6.B. String Types ....................................  63  6.C. Pack and Unpack ................................  64  CHAPTER 5  Record Types  ......................................  65 