home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / src / preproc / ptoken.h < prev    next >
C/C++ Source or Header  |  2000-07-29  |  1KB  |  49 lines

  1. /*
  2.  * The #defines for tokens can be overridden by a -DTokDotH=... compiler
  3.  *  option. This specifies a file containing token #defines and is useful
  4.  *  for creating an embedded preprocessor where token definitions are
  5.  *  generated by yacc from a grammar.
  6.  *
  7.  * Otherwise, the default token definitions are RTT's; if NoRTT is
  8.  *  defined, then this file's definitions are used.
  9.  */
  10. #ifdef TokDotH
  11. #include TokDotH
  12. #else                    /* TokDotH */
  13. #ifndef NoRTT
  14. #include "../rtt/ltoken.h"
  15. #else                    /* RTT */
  16. /*
  17.  * These are the numbers for tokens (other than single characters) returned
  18.  *   by the preproccesor and seen by a yacc parser for a C grammar.
  19.  */
  20. #define And 257
  21. #define AndAsgn 258
  22. #define Arrow 259
  23. #define CharConst 260
  24. #define Decr 261
  25. #define DivAsgn 262
  26. #define Ellipsis 263
  27. #define TokEqual 264
  28. #define Geq 265
  29. #define Identifier 266
  30. #define Incr 267
  31. #define LCharConst 268
  32. #define LShft 269
  33. #define LShftAsgn 270
  34. #define LStrLit 271
  35. #define Leq 272
  36. #define MinusAsgn 273
  37. #define ModAsgn 274
  38. #define MultAsgn 275
  39. #define Neq 276
  40. #define Or 277
  41. #define OrAsgn 278
  42. #define PlusAsgn 279
  43. #define RShft 280
  44. #define RShftAsgn 281
  45. #define StrLit 282
  46. #define XorAsgn 283
  47. #endif                    /* NoRTT */
  48. #endif                    /* TokDotH */
  49.