aboutsummaryrefslogtreecommitdiff
path: root/gcc/ch/lex.h
blob: 61c46b79a01a0f9ad8fb87e5b0409c3ea66a2132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/* Define constants for communication with the CHILL parser.
   Copyright (C) 1992, 93, 1994 Free Software Foundation, Inc.

This file is part of GNU CC.

GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING.  If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */



enum rid
{
  RID_UNUSED,  /* keep this one first, please */
  RID_ALL,
  RID_ASSERTFAIL,
  RID_ASSOCIATION,
  RID_BIN,
  RID_BIT,
  RID_BOOL,
  RID_BOOLS,
  RID_BYTE,
  RID_CHAR,
  RID_CHARS,
  RID_DOUBLE,
  RID_DURATION,
  RID_DYNAMIC,
  RID_ELSE,
  RID_EMPTY,
  RID_FALSE,
  RID_FLOAT,
  RID_GENERAL,
  RID_IN,
  RID_INLINE,
  RID_INOUT,
  RID_INSTANCE,
  RID_INT,
  RID_LOC,
  RID_LONG,
  RID_LONG_REAL,
  RID_NULL,
  RID_OUT,
  RID_OVERFLOW,
  RID_PTR,
  RID_RANGE,
  RID_RANGEFAIL,
  RID_READ,
  RID_REAL,
  RID_RECURSIVE,
  RID_SHORT,
  RID_SIMPLE,
  RID_TIME,
  RID_TRUE,
  RID_UBYTE,
  RID_UINT,
  RID_ULONG,
  RID_UNSIGNED,
  RID_USHORT,
  RID_VOID,
  RID_MAX /* Last element */
};

#define NORID RID_UNUSED

#define RID_FIRST_MODIFIER RID_UNSIGNED

/* The elements of `ridpointers' are identifier nodes
   for the reserved type names and storage classes.
   It is indexed by a RID_... value.  */
extern tree ridpointers[(int) RID_MAX];

extern char *token_buffer;	/* Pointer to token buffer.  */

extern tree make_pointer_declarator PROTO((tree, tree));
extern void reinit_parse_for_function PROTO((void));
extern int yylex PROTO((void));

extern tree default_grant_file;
extern tree current_grant_file;

extern tree current_seize_file;

extern int chill_at_module_level;
extern tree chill_initializer_name;

extern void finish_chill_seizes ();

extern void prepare_paren_colon PROTO((void));