home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / id-utils-3.2-src.tgz / tar.out / fsf / id-utils / libidu / tokflags.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  1KB  |  36 lines

  1. /* tokflags.h -- decls for per-token flags
  2.    Copyright (C) 1995, 1996 Free Software Foundation, Inc.
  3.    Written by Greg McGary <gkm@gnu.ai.mit.edu>
  4.  
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 2, or (at your option)
  8.    any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.    GNU General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. */
  19.  
  20. #ifndef _tokflags_h_
  21. #define _tokflags_h_
  22.  
  23. #define TOK_VECTOR    0x01    /* 1 = hits are stored as a vector
  24.                    0 = hits are stored as a 8-way tree of bits
  25.                    mkid chooses whichever is more compact.
  26.                    vector is more compact for tokens with few hits */
  27. #define TOK_NUMBER    0x02    /* occurs as a number */
  28. #define TOK_NAME    0x04    /* occurs as a name */
  29. #define TOK_STRING    0x08    /* occurs in a string */
  30. #define TOK_LITERAL    0x10    /* occurs as a literal */
  31. #define TOK_COMMENT    0x20    /* occurs in a comment */
  32. #define TOK_UNUSED_1    0x40
  33. #define TOK_SHORT_COUNT    0x80    /* count is two bytes */
  34.  
  35. #endif /* not _tokflags_h_ */
  36.