General Parameter-Passing in FORTRAN and Pascal. . . . . . . . 167

Procedure Calls: FORTRAN-Pascal . . . . . . . . . . . . . . . . . . . . . . . 168

Variable Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168

Value Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180

Pointers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183

Function Return Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

Procedure Calls: Pascal-FORTRAN . . . . . . . . . . . . . . . . . . . . . . . 185

Variable Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186

Value Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197

Pointers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200

Function Return Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201

Routines as Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202

9. Error Diagnostics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205

Compiler Syntax Errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 Illegal Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 String Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 Digits in Real Numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 Replacements, Insertions, and Deletions . . . . . . . . . . . . . . . 207 Undefined or Improper Identifiers . . . . . . . . . . . . . . . . . . . . 208 Expected Symbols and Malformed Constructs . . . . . . . . . . 208 Expected and Unexpected End-of-file. . . . . . . . . . . . . . . . . . 209

Compiler Semantic Errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210

Format of the Error Diagnostics. . . . . . . . . . . . . . . . . . . . . . . 210

Incompatible Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210

Contents

xi