CONVTYPE.DEF 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. DEFINITION MODULE ConvTypes;
  2. (* Proposed BSI/ISO Standard Modula-2 I/O Library
  3. * Copyright Roger Henry, University of Nottingham
  4. * Version WG/4.01, February 1989
  5. * Permission is given to copy this Definition Module, with the
  6. * copyright notice intact, for the purposes of evaluation and test.
  7. * At the stage of a formal draft standard, Copyright will be transferred
  8. * to BSI (and through BSI to other recognised standards bodies).
  9. * Status: for review by BSI/IST/5/13;
  10. for review by ISO/IEC JTC1/SC22/WG13
  11. -- * This copy editted to conform to D105 by kjg September 1989 *--
  12. *)
  13. (* result of a conversion operation *)
  14. TYPE
  15. ConvResults = (
  16. allRight, (* data is as expected or as required *)
  17. outOfRange, (* data cannot be represented *)
  18. wrongFormat, (* data not in expected format *)
  19. noData, (* no data or insufficient data *)
  20. noRoom); (* no room to store input data *)
  21. (* types for lexical scanners *)
  22. TYPE
  23. ScanProgress = (
  24. ignore, (* leading or padding character *)
  25. accept, (* character that was expected *)
  26. reject, (* character that was not expected *)
  27. stop); (* character that terminates the item *)
  28. ScanProc = PROCEDURE(CHAR, VAR ScanProgress, VAR ScanProc);
  29. (* type and constants for alignment of text *)
  30. Alignment = (left, centre, right);
  31. END ConvTypes.