Rewritten.
[glibc.git] / locale / token.h
blob12279200838b4154e69a9d8cea181b0e4dae290e
1 /* Copyright (C) 1995 Free Software Foundation, Inc.
3 The GNU C Library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Library General Public License as
5 published by the Free Software Foundation; either version 2 of the
6 License, or (at your option) any later version.
8 The GNU C Library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public
14 License along with the GNU C Library; see the file COPYING.LIB. If
15 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
16 Cambridge, MA 02139, USA. */
18 #ifndef _TOKEN_H
19 #define _TOKEN_H 1
21 /* Define those keywords which does not correspond directly to any
22 item in a category. Those already have values. */
24 enum token
26 /* We must make sure that these values do not overlap with the
27 other possible return values of the lexer. */
28 TOK_LAST_USED = _NL_NUM,
30 /* General tokens. */
31 TOK_END, TOK_COMMENT_CHAR, TOK_COPY, TOK_ESCAPE_CHAR, TOK_FROM,
32 TOK_ENDOFLINE, TOK_IDENT, TOK_STRING, TOK_ELLIPSIS, TOK_CHAR,
33 TOK_ILL_CHAR, TOK_NUMBER, TOK_MINUS1,
35 /* Tokens from the collate category. */
36 TOK_IGNORE, TOK_UNDEFINED, TOK_BACKWARD, TOK_FORWARD, TOK_POSITION,
37 TOK_COLLATING_ELEMENT, TOK_COLLATING_SYMBOL, TOK_ORDER_END,
38 TOK_ORDER_START,
40 /* Tokens from the ctype category. */
41 TOK_TOLOWER, TOK_TOUPPER,
42 /* The order here is important. It must correspond to the bits
43 used for indicating the class membership (ctype.h). */
44 TOK_UPPER, TOK_LOWER, TOK_ALPHA, TOK_DIGIT, TOK_XDIGIT, TOK_SPACE,
45 TOK_PRINT, TOK_GRAPH, TOK_BLANK, TOK_CNTRL, TOK_PUNCT,
49 * Local Variables:
50 * mode:c
51 * c-basic-offset:2
52 * End:
54 #endif /* token.h */