home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples1.exe / smc / tokens.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.4 KB  |  57 lines

  1. /*****************************************************************************/
  2. #ifndef _TOKENS_H_
  3. #define _TOKENS_H_
  4. /*****************************************************************************
  5.  *
  6.  *  Define the token kind enum. Note that all entries from the keyword
  7.  *  table are defined first, such that the first entry has the value 0.
  8.  */
  9.  
  10. enum tokens
  11. {
  12.     /*
  13.         tkKwdCount  yields the number of keyword table entries
  14.         tkKwdLast   yields the last entry in the keyword table
  15.      */
  16.  
  17.     #define KEYWORD(str, nam, info, prec2, op2, prec1, op1, mod) nam,
  18.     #define KWD_MAX(str, nam, info, prec2, op2, prec1, op1, mod) nam, tkKwdCount, tkKwdLast = tkKwdCount-1,
  19.     #define KWD_OP1(str, nam, info, prec2, op2, prec1, op1, mod) nam, tkFirstOper =nam,
  20.     #include "keywords.h"
  21.  
  22.     tkCount,
  23.  
  24.     /* The following values only used for token recording */
  25.  
  26.     tkPragma,
  27.  
  28.     tkIntConM,
  29.     tkIntCon0,
  30.     tkIntCon1,
  31.     tkIntCon2,
  32.     tkIntConB,
  33.  
  34.     tkLnoAdd1,
  35.     tkLnoAdd2,
  36.     tkLnoAdd3,
  37.     tkLnoAdd4,
  38.     tkLnoAdd5,
  39.     tkLnoAdd6,
  40.     tkLnoAdd7,
  41.     tkLnoAdd8,
  42.     tkLnoAdd9,
  43.     tkLnoAddB,
  44.     tkLnoAddI,
  45.  
  46.     tkBrkSeq,
  47.     tkEndSeq,
  48.  
  49.     tkLastValue,
  50.  
  51.     tkNoToken = 0x12345678          // force allocation of a full int
  52. };
  53.  
  54. /*****************************************************************************/
  55. #endif
  56. /*****************************************************************************/
  57.