From Phil Blundell:
[official-gcc.git] / gcc / ch / lex.h
blobdf533425a1c1e11e3be925a5e2cd8e00078f3493
1 /* Define constants for communication with the CHILL parser.
2 Copyright (C) 1992, 93, 1994 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
23 enum rid
25 RID_UNUSED, /* keep this one first, please */
26 RID_ALL,
27 RID_ASSERTFAIL,
28 RID_ASSOCIATION,
29 RID_BIN,
30 RID_BIT,
31 RID_BOOL,
32 RID_BOOLS,
33 RID_BYTE,
34 RID_CHAR,
35 RID_CHARS,
36 RID_DOUBLE,
37 RID_DURATION,
38 RID_DYNAMIC,
39 RID_ELSE,
40 RID_EMPTY,
41 RID_FALSE,
42 RID_FLOAT,
43 RID_GENERAL,
44 RID_IN,
45 RID_INLINE,
46 RID_INOUT,
47 RID_INSTANCE,
48 RID_INT,
49 RID_LOC,
50 RID_LONG,
51 RID_LONG_REAL,
52 RID_NULL,
53 RID_OUT,
54 RID_OVERFLOW,
55 RID_PTR,
56 RID_RANGE,
57 RID_RANGEFAIL,
58 RID_READ,
59 RID_REAL,
60 RID_RECURSIVE,
61 RID_SHORT,
62 RID_SIMPLE,
63 RID_TIME,
64 RID_TRUE,
65 RID_UBYTE,
66 RID_UINT,
67 RID_ULONG,
68 RID_UNSIGNED,
69 RID_USHORT,
70 RID_VOID,
71 RID_MAX /* Last element */
74 #define NORID RID_UNUSED
76 #define RID_FIRST_MODIFIER RID_UNSIGNED
78 /* The elements of `ridpointers' are identifier nodes
79 for the reserved type names and storage classes.
80 It is indexed by a RID_... value. */
81 extern tree ridpointers[(int) RID_MAX];
83 extern char *token_buffer; /* Pointer to token buffer. */
85 extern tree make_pointer_declarator PROTO((tree, tree));
86 extern void reinit_parse_for_function PROTO((void));
87 extern int yylex PROTO((void));
89 extern tree default_grant_file;
90 extern tree current_grant_file;
92 extern tree current_seize_file;
94 extern int chill_at_module_level;
95 extern tree chill_initializer_name;
97 extern void finish_chill_seizes ();
99 extern void prepare_paren_colon PROTO((void));