Debian Codegraph @

libidu/tokflags.h

raw symbols SCIP
1 /* tokflags.h -- decls for per-token flags
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 Written by Greg McGary <[email protected]>
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 3, 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, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef _tokflags_h_
20 #define _tokflags_h_
21
22 #define TOK_VECTOR 0x01 /* 1 = hits are stored as a vector
23 0 = hits are stored as a 8-way tree of bits
24 mkid chooses whichever is more compact.
25 vector is more compact for tokens with few hits */
26 #define TOK_NUMBER 0x02 /* occurs as a number */
27 #define TOK_NAME 0x04 /* occurs as a name */
28 #define TOK_STRING 0x08 /* occurs in a string */
29 #define TOK_LITERAL 0x10 /* occurs as a literal */
30 #define TOK_COMMENT 0x20 /* occurs in a comment */
31 #define TOK_UNUSED_1 0x40
32 #define TOK_SHORT_COUNT 0x80 /* count is two bytes */
33
34 #endif /* not _tokflags_h_ */