home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / LANGUAGS / PASCAL-P / PP319DOC.LBR / ERRMSGS.MZN / ERRMSGS.MAN
Text File  |  2000-06-30  |  2KB  |  44 lines

  1. .macro chttl = Compiler Error Messages
  2. .ch .chttl
  3. .hl 1 General
  4. The  compiler  produces error codes,  and lists them after the  offending
  5. line on both output and pasclist formal files.   If the L- option is in effect
  6. output  to pasclist is suppressed.   If the translation file  (formally  "ef",
  7. normally EF.  under CPM) is available a
  8. list of error code translations follows.   Note that the position indicated in
  9. the  source line is that in which the error was detected,  and that the actual
  10. error may occur earlier. 
  11.  
  12. .hl 1 Action after errors
  13. If any errors are found the compiler will set JCW (job control word)
  14. to the error state, and
  15. if  warnings  are  found it will set JCW to the warn state.  See the procedure
  16. SETJCW under Extensions.  This is very useful when executing long compilations
  17. under the various batch mechanisms .bb (JOB or SUBMIT under CPM).  Under CP/M
  18. SETJCW  to  a
  19. negative  value causes any submit job to be cancelled on program  termination,
  20. and the warn state is ignored. .eb
  21.  
  22. .hl 1 Some conditions causing errors/warnings
  23. The  compiler will always generate a warning if the standard files  INPUT
  24. or OUTPUT are reset or rewritten (or the equivalent).  These files are 
  25. normally  the  user console,  and cannot be reread nor can the effects  
  26. of  previous writes be erased.
  27.  
  28. While  NIL is implemented as a predefined type,  the compiler will forbid
  29. any attempts to redefine it, thus giving it the effective status of a reserved
  30. word.
  31.  
  32. In  general the compiler will generate warnings where the actual  meaning
  33. is  unambiguous (e.g.  use of a feature in the wrong mode,  attempts to  reset
  34. input,  etc.) and errors wherever the possibility of a mis-spelling or  faulty
  35. punctuation exists.
  36.  
  37. .hl 1 Accessing Error Messages
  38. Under  CPM the error message file is accessed as file "EF" with a  blank
  39. extension.   If  this file is not on the default or system disks it should  be
  40. specified on the command line with the appropriate disk identifier,  otherwise
  41. no  translation  will occur.
  42. The error message file may be modified freely  (one
  43. line per error) to install other languages, clarify errors, etc.
  44. ˢ