home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / sozobon / scsrc20 / jas / scan.h < prev    next >
C/C++ Source or Header  |  1991-02-22  |  875b  |  39 lines

  1.  
  2. /*
  3.  * Copyright (c) 1988,1991 by Sozobon, Limited.  Author: Joseph M Treat
  4.  *
  5.  * Permission is granted to anyone to use this software for any purpose
  6.  * on any computer system, and to redistribute it freely, with the
  7.  * following restrictions:
  8.  * 1) No charge may be made other than reasonable charges for reproduction.
  9.  * 2) Modified versions must be clearly marked as such.
  10.  * 3) The authors are not responsible for any harmful consequences
  11.  *    of using this software, even if they result from defects in it.
  12.  */
  13.  
  14. struct reserved {
  15.     char *name;
  16.     int token;
  17.     int value;
  18. };
  19.  
  20. struct lexacts {
  21.     unsigned acts;
  22.     int retval;
  23. };
  24.  
  25. struct lextab {
  26.     int select;
  27.     struct lexacts action;
  28. };
  29.  
  30. /*
  31.  * Types of actions
  32.  */
  33. #define L_SKIP  0x0
  34. #define L_TOKEN 0x01
  35. #define L_EXTRA 0x02
  36. #define L_BEGID 0x04
  37. #define L_MIDID 0x08
  38. #define L_DIGIT 0x10
  39.