home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xc212os2.zip / ISODEF / convtype.def < prev    next >
Text File  |  1994-12-22  |  1KB  |  27 lines

  1. DEFINITION MODULE ConvTypes;
  2.  
  3.   (* Common types used in the string conversion modules *)
  4.  
  5. TYPE
  6.   ConvResults =     (* Values of this type are used to express the format of a string *)
  7.   (
  8.     strAllRight,    (* the string format is correct for the corresponding conversion *)
  9.     strOutOfRange,  (* the string is well-formed but the value cannot be represented *)
  10.     strWrongFormat, (* the string is in the wrong format for the conversion *)
  11.     strEmpty        (* the given string is empty *)
  12.   );
  13.  
  14.   ScanClass =  (* Values of this type are used to classify input to finite state scanners *)
  15.   (
  16.     padding,   (* a leading or padding character at this point in the scan - ignore it *)
  17.     valid,     (* a valid character at this point in the scan - accept it *)
  18.     invalid,   (* an invalid character at this point in the scan - reject it *)
  19.     terminator (* a terminating character at this point in the scan (not part of token) *)
  20.   );
  21.  
  22.   ScanState =  (* The type of lexical scanning control procedures *)
  23.     PROCEDURE (CHAR, VAR ScanClass, VAR ScanState);
  24.  
  25. END ConvTypes.
  26.  
  27.