List of Figures  D.a  Syntax diagram for  Program  ...........................  4  D.b  Syntax diagram for  Block  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  ..  4  D.c  Block Structure  .....................................  5  I.a  Syntax diagram for  Letter  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  ..  11  l.b  Syntax diagram for  Digit  ..............................  11  I.c  Syntax diagram for  Identifier  . . . . . . . . . . . . . . . . . . . . . . . . .  ..  11  l.d  Syntax diagram for  UnsignedInteger  and  DigitSequence  . . . .  ..  12  I.e  Syntax diagram for  UnsignedNumber  ....................  12  l.f  Syntax diagram for  CharacterString  .....................  13  I.g  Syntax diagram for  Directive  ...........................  13  2.a  Type Taxonomy of Data Types  ........................  14  2.b  Type Taxonomy of Simple Data Types  ...................  15  2.c  Syntax diagram for  SimpleType  .........................  15  2.d  Syntax diagram for  OrdinalType  . . . . . . . . . . . . . . . . . . . . . . .  ..  16  3.a  Syntax diagram for  Program  ...........................  21  3.b  Syntax diagram for  Block.  . . . . . . . . . . . . . . . . . . . . . . . . . . .  ..  21  3.c  Syntax diagram for  StatementPart  . . . . . . . . . . . . . . . . . . . . .  ..  22  3.d  Syntax diagram for  ProgramHeading  . . . . . . . . . . . . . . . . . . .  ..  22  3.e  Syntax diagram for  LabelDeclarationPart  . . . . . . . . . . . . . . .  ..  22  3.f  Syntax diagram for  ConstantDefinitionPart  . . . . . . . . . . . . . .  ..  23  3.g  Syntax diagram for  Constant  ...........................  23  3.h  Syntax diagram for  TypeDefinitionPart  ...................  24  3.i  Syntax diagram for  Type  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  ..  24  3.j.  Syntax diagram for  VariableDeclarationPart  . . . . . . . . . . . . .  ..  25  4.a  Syntax diagram for  Statement.  . . . . . . . . . . . . . . . . . . . . . . . .  ..  29  4.b  Syntax diagram for  AssignmentStatement  .................  29  4.c  Syntax diagram for  Variable  . . . . . . . . . . . . . . . . . . . . . . . . . .  ..  3D  4.d  Syntax diagram for  Factor  . . . . . . . . . . . . . . . . . . . . . . . . . . .  ..  3D  4.e  Syntax diagram for  UnsignedConstant  . . . . . . . . . . . . . . . . . .  ..  31  4.f  Syntax diagram for  Term  ..............................  31  4.g  Syntax diagram for  SimpleExpression  ....................  31  4.h  Syntax diagram for  Expression  . . . . . . . . . . . . . . . . . . . . . . . .  ..  32  4.i  Syntax diagram for  CompoundStatement  . . . . . . . . . . . . . . . .  ..  34  4.j  Syntax diagram for  WhileStatement  . . . . . . . . . . . . . . . . . . . .  ..  35  4.k  Syntax diagram for  RepeatStatement  . . . . . . . . . . . . . . . . . . .  ..  35  4.1  Syntax diagram for  F orStatement  . . . . . . . . . . . . . . . . . . . . . .  ..  38  4.m  Syntax diagram for  IjStatement  .........................  43  4.n  Syntax diagram for  CaseStatement  . . . . . . . . . . . . . . . . . . . . .  ..  46  4.0  Syntax diagram for  GotoStatement  . . . . . . . . . . . . . . . . . . . . .  ..  47  xv 