home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 10 / Fresh_Fish_10_2352.bin / new / dev / lang / sgmls / src / context.h < prev    next >
C/C++ Source or Header  |  1994-07-10  |  996b  |  20 lines

  1. /* context.h */
  2.  
  3. #define M      pos[0].g       /* Index of current token in model. */
  4. #ifdef P
  5. #undef P
  6. #endif
  7. #define P      pos[0].t       /* Index of current group in pos. */
  8. #define G      pos[P].g       /* Index of current group in model. */
  9. #define T      pos[P].t       /* Index of current token in its group. */
  10. #define Tstart pos[P].tstart  /* Index of starting token in its group
  11.                  for AND group testing. */
  12. #define H      pos[P].h       /* Pointer to hit bits for current group. */
  13. #define GHDR   mod[G]         /* Current group header. */
  14. #define TOKEN  mod[M]         /* Current token. */
  15. #define TTYPE (GET(TOKEN.ttype, TTMASK))  /* Token type of current token. */
  16. #define TOCC  (GET(TOKEN.ttype, TOREP))   /* Occurrence for current token. */
  17. #define GTYPE (GET(GHDR.ttype, TTMASK))   /* Token type of current group. */
  18. #define GOCC  (GET(GHDR.ttype, TOREP))    /* Occurrence for current group. */
  19. #define GNUM  GHDR.tu.tnum                /* Number of tokens in current grp. */
  20.