annotate gcc/ada/stand.ads @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ------------------------------------------------------------------------------
kono
parents:
diff changeset
2 -- --
kono
parents:
diff changeset
3 -- GNAT COMPILER COMPONENTS --
kono
parents:
diff changeset
4 -- --
kono
parents:
diff changeset
5 -- S T A N D --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- S p e c --
kono
parents:
diff changeset
8 -- --
kono
parents:
diff changeset
9 -- Copyright (C) 1992-2015, Free Software Foundation, Inc. --
kono
parents:
diff changeset
10 -- --
kono
parents:
diff changeset
11 -- GNAT is free software; you can redistribute it and/or modify it under --
kono
parents:
diff changeset
12 -- terms of the GNU General Public License as published by the Free Soft- --
kono
parents:
diff changeset
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
kono
parents:
diff changeset
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
kono
parents:
diff changeset
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
kono
parents:
diff changeset
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
kono
parents:
diff changeset
17 -- --
kono
parents:
diff changeset
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
kono
parents:
diff changeset
19 -- additional permissions described in the GCC Runtime Library Exception, --
kono
parents:
diff changeset
20 -- version 3.1, as published by the Free Software Foundation. --
kono
parents:
diff changeset
21 -- --
kono
parents:
diff changeset
22 -- You should have received a copy of the GNU General Public License and --
kono
parents:
diff changeset
23 -- a copy of the GCC Runtime Library Exception along with this program; --
kono
parents:
diff changeset
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
kono
parents:
diff changeset
25 -- <http://www.gnu.org/licenses/>. --
kono
parents:
diff changeset
26 -- --
kono
parents:
diff changeset
27 -- GNAT was originally developed by the GNAT team at New York University. --
kono
parents:
diff changeset
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
kono
parents:
diff changeset
29 -- --
kono
parents:
diff changeset
30 ------------------------------------------------------------------------------
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 -- This package contains the declarations of entities in package Standard,
kono
parents:
diff changeset
33 -- These values are initialized either by calling CStand.Create_Standard,
kono
parents:
diff changeset
34 -- or by calling Stand.Tree_Read.
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 with Types; use Types;
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 package Stand is
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 -- Warning: the entities defined in this package are written out by the
kono
parents:
diff changeset
41 -- Tree_Write routine, and read back in by the Tree_Read routine, so be
kono
parents:
diff changeset
42 -- sure to modify these two routines if you add entities that are not
kono
parents:
diff changeset
43 -- part of Standard_Entity.
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 type Standard_Entity_Type is (
kono
parents:
diff changeset
46 -- This enumeration type contains an entry for each name in Standard
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 -- Package names
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 S_Standard,
kono
parents:
diff changeset
51 S_ASCII,
kono
parents:
diff changeset
52
kono
parents:
diff changeset
53 -- Types and subtypes defined in package Standard (in the order in which
kono
parents:
diff changeset
54 -- they appear in the RM, so that the declarations are in the right
kono
parents:
diff changeset
55 -- order for the purposes of ASIS traversals
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 S_Boolean,
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59 S_Short_Short_Integer,
kono
parents:
diff changeset
60 S_Short_Integer,
kono
parents:
diff changeset
61 S_Integer,
kono
parents:
diff changeset
62 S_Long_Integer,
kono
parents:
diff changeset
63 S_Long_Long_Integer,
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 S_Natural,
kono
parents:
diff changeset
66 S_Positive,
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 S_Short_Float,
kono
parents:
diff changeset
69 S_Float,
kono
parents:
diff changeset
70 S_Long_Float,
kono
parents:
diff changeset
71 S_Long_Long_Float,
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 S_Character,
kono
parents:
diff changeset
74 S_Wide_Character,
kono
parents:
diff changeset
75 S_Wide_Wide_Character,
kono
parents:
diff changeset
76
kono
parents:
diff changeset
77 S_String,
kono
parents:
diff changeset
78 S_Wide_String,
kono
parents:
diff changeset
79 S_Wide_Wide_String,
kono
parents:
diff changeset
80
kono
parents:
diff changeset
81 S_Duration,
kono
parents:
diff changeset
82
kono
parents:
diff changeset
83 -- Enumeration literals for type Boolean
kono
parents:
diff changeset
84
kono
parents:
diff changeset
85 S_False,
kono
parents:
diff changeset
86 S_True,
kono
parents:
diff changeset
87
kono
parents:
diff changeset
88 -- Exceptions declared in package Standard
kono
parents:
diff changeset
89
kono
parents:
diff changeset
90 S_Constraint_Error,
kono
parents:
diff changeset
91 S_Numeric_Error,
kono
parents:
diff changeset
92 S_Program_Error,
kono
parents:
diff changeset
93 S_Storage_Error,
kono
parents:
diff changeset
94 S_Tasking_Error,
kono
parents:
diff changeset
95
kono
parents:
diff changeset
96 -- Binary Operators declared in package Standard
kono
parents:
diff changeset
97
kono
parents:
diff changeset
98 S_Op_Add,
kono
parents:
diff changeset
99 S_Op_And,
kono
parents:
diff changeset
100 S_Op_Concat,
kono
parents:
diff changeset
101 S_Op_Concatw,
kono
parents:
diff changeset
102 S_Op_Concatww,
kono
parents:
diff changeset
103 S_Op_Divide,
kono
parents:
diff changeset
104 S_Op_Eq,
kono
parents:
diff changeset
105 S_Op_Expon,
kono
parents:
diff changeset
106 S_Op_Ge,
kono
parents:
diff changeset
107 S_Op_Gt,
kono
parents:
diff changeset
108 S_Op_Le,
kono
parents:
diff changeset
109 S_Op_Lt,
kono
parents:
diff changeset
110 S_Op_Mod,
kono
parents:
diff changeset
111 S_Op_Multiply,
kono
parents:
diff changeset
112 S_Op_Ne,
kono
parents:
diff changeset
113 S_Op_Or,
kono
parents:
diff changeset
114 S_Op_Rem,
kono
parents:
diff changeset
115 S_Op_Subtract,
kono
parents:
diff changeset
116 S_Op_Xor,
kono
parents:
diff changeset
117
kono
parents:
diff changeset
118 -- Unary operators declared in package Standard
kono
parents:
diff changeset
119
kono
parents:
diff changeset
120 S_Op_Abs,
kono
parents:
diff changeset
121 S_Op_Minus,
kono
parents:
diff changeset
122 S_Op_Not,
kono
parents:
diff changeset
123 S_Op_Plus,
kono
parents:
diff changeset
124
kono
parents:
diff changeset
125 -- Constants defined in package ASCII (with value in hex).
kono
parents:
diff changeset
126 -- First the thirty-two C0 control characters)
kono
parents:
diff changeset
127
kono
parents:
diff changeset
128 S_NUL, -- 16#00#
kono
parents:
diff changeset
129 S_SOH, -- 16#01#
kono
parents:
diff changeset
130 S_STX, -- 16#02#
kono
parents:
diff changeset
131 S_ETX, -- 16#03#
kono
parents:
diff changeset
132 S_EOT, -- 16#04#
kono
parents:
diff changeset
133 S_ENQ, -- 16#05#
kono
parents:
diff changeset
134 S_ACK, -- 16#06#
kono
parents:
diff changeset
135 S_BEL, -- 16#07#
kono
parents:
diff changeset
136 S_BS, -- 16#08#
kono
parents:
diff changeset
137 S_HT, -- 16#09#
kono
parents:
diff changeset
138 S_LF, -- 16#0A#
kono
parents:
diff changeset
139 S_VT, -- 16#0B#
kono
parents:
diff changeset
140 S_FF, -- 16#0C#
kono
parents:
diff changeset
141 S_CR, -- 16#0D#
kono
parents:
diff changeset
142 S_SO, -- 16#0E#
kono
parents:
diff changeset
143 S_SI, -- 16#0F#
kono
parents:
diff changeset
144 S_DLE, -- 16#10#
kono
parents:
diff changeset
145 S_DC1, -- 16#11#
kono
parents:
diff changeset
146 S_DC2, -- 16#12#
kono
parents:
diff changeset
147 S_DC3, -- 16#13#
kono
parents:
diff changeset
148 S_DC4, -- 16#14#
kono
parents:
diff changeset
149 S_NAK, -- 16#15#
kono
parents:
diff changeset
150 S_SYN, -- 16#16#
kono
parents:
diff changeset
151 S_ETB, -- 16#17#
kono
parents:
diff changeset
152 S_CAN, -- 16#18#
kono
parents:
diff changeset
153 S_EM, -- 16#19#
kono
parents:
diff changeset
154 S_SUB, -- 16#1A#
kono
parents:
diff changeset
155 S_ESC, -- 16#1B#
kono
parents:
diff changeset
156 S_FS, -- 16#1C#
kono
parents:
diff changeset
157 S_GS, -- 16#1D#
kono
parents:
diff changeset
158 S_RS, -- 16#1E#
kono
parents:
diff changeset
159 S_US, -- 16#1F#
kono
parents:
diff changeset
160
kono
parents:
diff changeset
161 -- Here are the ones for Colonel Whitaker's O26 keypunch
kono
parents:
diff changeset
162
kono
parents:
diff changeset
163 S_Exclam, -- 16#21#
kono
parents:
diff changeset
164 S_Quotation, -- 16#22#
kono
parents:
diff changeset
165 S_Sharp, -- 16#23#
kono
parents:
diff changeset
166 S_Dollar, -- 16#24#
kono
parents:
diff changeset
167 S_Percent, -- 16#25#
kono
parents:
diff changeset
168 S_Ampersand, -- 16#26#
kono
parents:
diff changeset
169
kono
parents:
diff changeset
170 S_Colon, -- 16#3A#
kono
parents:
diff changeset
171 S_Semicolon, -- 16#3B#
kono
parents:
diff changeset
172
kono
parents:
diff changeset
173 S_Query, -- 16#3F#
kono
parents:
diff changeset
174 S_At_Sign, -- 16#40#
kono
parents:
diff changeset
175
kono
parents:
diff changeset
176 S_L_Bracket, -- 16#5B#
kono
parents:
diff changeset
177 S_Back_Slash, -- 16#5C#
kono
parents:
diff changeset
178 S_R_Bracket, -- 16#5D#
kono
parents:
diff changeset
179 S_Circumflex, -- 16#5E#
kono
parents:
diff changeset
180 S_Underline, -- 16#5F#
kono
parents:
diff changeset
181 S_Grave, -- 16#60#
kono
parents:
diff changeset
182
kono
parents:
diff changeset
183 S_LC_A, -- 16#61#
kono
parents:
diff changeset
184 S_LC_B, -- 16#62#
kono
parents:
diff changeset
185 S_LC_C, -- 16#63#
kono
parents:
diff changeset
186 S_LC_D, -- 16#64#
kono
parents:
diff changeset
187 S_LC_E, -- 16#65#
kono
parents:
diff changeset
188 S_LC_F, -- 16#66#
kono
parents:
diff changeset
189 S_LC_G, -- 16#67#
kono
parents:
diff changeset
190 S_LC_H, -- 16#68#
kono
parents:
diff changeset
191 S_LC_I, -- 16#69#
kono
parents:
diff changeset
192 S_LC_J, -- 16#6A#
kono
parents:
diff changeset
193 S_LC_K, -- 16#6B#
kono
parents:
diff changeset
194 S_LC_L, -- 16#6C#
kono
parents:
diff changeset
195 S_LC_M, -- 16#6D#
kono
parents:
diff changeset
196 S_LC_N, -- 16#6E#
kono
parents:
diff changeset
197 S_LC_O, -- 16#6F#
kono
parents:
diff changeset
198 S_LC_P, -- 16#70#
kono
parents:
diff changeset
199 S_LC_Q, -- 16#71#
kono
parents:
diff changeset
200 S_LC_R, -- 16#72#
kono
parents:
diff changeset
201 S_LC_S, -- 16#73#
kono
parents:
diff changeset
202 S_LC_T, -- 16#74#
kono
parents:
diff changeset
203 S_LC_U, -- 16#75#
kono
parents:
diff changeset
204 S_LC_V, -- 16#76#
kono
parents:
diff changeset
205 S_LC_W, -- 16#77#
kono
parents:
diff changeset
206 S_LC_X, -- 16#78#
kono
parents:
diff changeset
207 S_LC_Y, -- 16#79#
kono
parents:
diff changeset
208 S_LC_Z, -- 16#7A#
kono
parents:
diff changeset
209
kono
parents:
diff changeset
210 S_L_BRACE, -- 16#7B#
kono
parents:
diff changeset
211 S_BAR, -- 16#7C#
kono
parents:
diff changeset
212 S_R_BRACE, -- 16#7D#
kono
parents:
diff changeset
213 S_TILDE, -- 16#7E#
kono
parents:
diff changeset
214
kono
parents:
diff changeset
215 -- And one more control character, all on its own
kono
parents:
diff changeset
216
kono
parents:
diff changeset
217 S_DEL); -- 16#7F#
kono
parents:
diff changeset
218
kono
parents:
diff changeset
219 subtype S_Types is
kono
parents:
diff changeset
220 Standard_Entity_Type range S_Boolean .. S_Duration;
kono
parents:
diff changeset
221
kono
parents:
diff changeset
222 subtype S_Exceptions is
kono
parents:
diff changeset
223 Standard_Entity_Type range S_Constraint_Error .. S_Tasking_Error;
kono
parents:
diff changeset
224
kono
parents:
diff changeset
225 subtype S_ASCII_Names is
kono
parents:
diff changeset
226 Standard_Entity_Type range S_NUL .. S_DEL;
kono
parents:
diff changeset
227
kono
parents:
diff changeset
228 subtype S_Binary_Ops is
kono
parents:
diff changeset
229 Standard_Entity_Type range S_Op_Add .. S_Op_Xor;
kono
parents:
diff changeset
230
kono
parents:
diff changeset
231 subtype S_Unary_Ops is
kono
parents:
diff changeset
232 Standard_Entity_Type range S_Op_Abs .. S_Op_Plus;
kono
parents:
diff changeset
233
kono
parents:
diff changeset
234 type Standard_Entity_Array_Type is array (Standard_Entity_Type) of Node_Id;
kono
parents:
diff changeset
235
kono
parents:
diff changeset
236 Standard_Entity : Standard_Entity_Array_Type;
kono
parents:
diff changeset
237 -- This array contains pointers to the Defining Identifier nodes for each
kono
parents:
diff changeset
238 -- of the visible entities defined in Standard_Entities_Type. The array is
kono
parents:
diff changeset
239 -- initialized by the Create_Standard procedure.
kono
parents:
diff changeset
240
kono
parents:
diff changeset
241 Standard_Package_Node : Node_Id;
kono
parents:
diff changeset
242 -- Points to the N_Package_Declaration node for standard. Also
kono
parents:
diff changeset
243 -- initialized by the Create_Standard procedure.
kono
parents:
diff changeset
244
kono
parents:
diff changeset
245 -- The following Entities are the pointers to the Defining Identifier
kono
parents:
diff changeset
246 -- nodes for some visible entities defined in Standard_Entities_Type.
kono
parents:
diff changeset
247
kono
parents:
diff changeset
248 SE : Standard_Entity_Array_Type renames Standard_Entity;
kono
parents:
diff changeset
249
kono
parents:
diff changeset
250 Standard_Standard : Entity_Id renames SE (S_Standard);
kono
parents:
diff changeset
251
kono
parents:
diff changeset
252 Standard_ASCII : Entity_Id renames SE (S_ASCII);
kono
parents:
diff changeset
253 Standard_Character : Entity_Id renames SE (S_Character);
kono
parents:
diff changeset
254 Standard_Wide_Character : Entity_Id renames SE (S_Wide_Character);
kono
parents:
diff changeset
255 Standard_Wide_Wide_Character : Entity_Id renames SE (S_Wide_Wide_Character);
kono
parents:
diff changeset
256 Standard_String : Entity_Id renames SE (S_String);
kono
parents:
diff changeset
257 Standard_Wide_String : Entity_Id renames SE (S_Wide_String);
kono
parents:
diff changeset
258 Standard_Wide_Wide_String : Entity_Id renames SE (S_Wide_Wide_String);
kono
parents:
diff changeset
259
kono
parents:
diff changeset
260 Standard_Boolean : Entity_Id renames SE (S_Boolean);
kono
parents:
diff changeset
261 Standard_False : Entity_Id renames SE (S_False);
kono
parents:
diff changeset
262 Standard_True : Entity_Id renames SE (S_True);
kono
parents:
diff changeset
263
kono
parents:
diff changeset
264 Standard_Duration : Entity_Id renames SE (S_Duration);
kono
parents:
diff changeset
265
kono
parents:
diff changeset
266 Standard_Natural : Entity_Id renames SE (S_Natural);
kono
parents:
diff changeset
267 Standard_Positive : Entity_Id renames SE (S_Positive);
kono
parents:
diff changeset
268
kono
parents:
diff changeset
269 Standard_Constraint_Error : Entity_Id renames SE (S_Constraint_Error);
kono
parents:
diff changeset
270 Standard_Numeric_Error : Entity_Id renames SE (S_Numeric_Error);
kono
parents:
diff changeset
271 Standard_Program_Error : Entity_Id renames SE (S_Program_Error);
kono
parents:
diff changeset
272 Standard_Storage_Error : Entity_Id renames SE (S_Storage_Error);
kono
parents:
diff changeset
273 Standard_Tasking_Error : Entity_Id renames SE (S_Tasking_Error);
kono
parents:
diff changeset
274
kono
parents:
diff changeset
275 Standard_Short_Float : Entity_Id renames SE (S_Short_Float);
kono
parents:
diff changeset
276 Standard_Float : Entity_Id renames SE (S_Float);
kono
parents:
diff changeset
277 Standard_Long_Float : Entity_Id renames SE (S_Long_Float);
kono
parents:
diff changeset
278 Standard_Long_Long_Float : Entity_Id renames SE (S_Long_Long_Float);
kono
parents:
diff changeset
279
kono
parents:
diff changeset
280 Standard_Short_Short_Integer : Entity_Id renames SE (S_Short_Short_Integer);
kono
parents:
diff changeset
281 Standard_Short_Integer : Entity_Id renames SE (S_Short_Integer);
kono
parents:
diff changeset
282 Standard_Integer : Entity_Id renames SE (S_Integer);
kono
parents:
diff changeset
283 Standard_Long_Integer : Entity_Id renames SE (S_Long_Integer);
kono
parents:
diff changeset
284 Standard_Long_Long_Integer : Entity_Id renames SE (S_Long_Long_Integer);
kono
parents:
diff changeset
285
kono
parents:
diff changeset
286 Standard_Op_Add : Entity_Id renames SE (S_Op_Add);
kono
parents:
diff changeset
287 Standard_Op_And : Entity_Id renames SE (S_Op_And);
kono
parents:
diff changeset
288 Standard_Op_Concat : Entity_Id renames SE (S_Op_Concat);
kono
parents:
diff changeset
289 Standard_Op_Concatw : Entity_Id renames SE (S_Op_Concatw);
kono
parents:
diff changeset
290 Standard_Op_Concatww : Entity_Id renames SE (S_Op_Concatww);
kono
parents:
diff changeset
291 Standard_Op_Divide : Entity_Id renames SE (S_Op_Divide);
kono
parents:
diff changeset
292 Standard_Op_Eq : Entity_Id renames SE (S_Op_Eq);
kono
parents:
diff changeset
293 Standard_Op_Expon : Entity_Id renames SE (S_Op_Expon);
kono
parents:
diff changeset
294 Standard_Op_Ge : Entity_Id renames SE (S_Op_Ge);
kono
parents:
diff changeset
295 Standard_Op_Gt : Entity_Id renames SE (S_Op_Gt);
kono
parents:
diff changeset
296 Standard_Op_Le : Entity_Id renames SE (S_Op_Le);
kono
parents:
diff changeset
297 Standard_Op_Lt : Entity_Id renames SE (S_Op_Lt);
kono
parents:
diff changeset
298 Standard_Op_Mod : Entity_Id renames SE (S_Op_Mod);
kono
parents:
diff changeset
299 Standard_Op_Multiply : Entity_Id renames SE (S_Op_Multiply);
kono
parents:
diff changeset
300 Standard_Op_Ne : Entity_Id renames SE (S_Op_Ne);
kono
parents:
diff changeset
301 Standard_Op_Or : Entity_Id renames SE (S_Op_Or);
kono
parents:
diff changeset
302 Standard_Op_Rem : Entity_Id renames SE (S_Op_Rem);
kono
parents:
diff changeset
303 Standard_Op_Subtract : Entity_Id renames SE (S_Op_Subtract);
kono
parents:
diff changeset
304 Standard_Op_Xor : Entity_Id renames SE (S_Op_Xor);
kono
parents:
diff changeset
305
kono
parents:
diff changeset
306 Standard_Op_Abs : Entity_Id renames SE (S_Op_Abs);
kono
parents:
diff changeset
307 Standard_Op_Minus : Entity_Id renames SE (S_Op_Minus);
kono
parents:
diff changeset
308 Standard_Op_Not : Entity_Id renames SE (S_Op_Not);
kono
parents:
diff changeset
309 Standard_Op_Plus : Entity_Id renames SE (S_Op_Plus);
kono
parents:
diff changeset
310
kono
parents:
diff changeset
311 Last_Standard_Node_Id : Node_Id;
kono
parents:
diff changeset
312 -- Highest Node_Id value used by Standard
kono
parents:
diff changeset
313
kono
parents:
diff changeset
314 Last_Standard_List_Id : List_Id;
kono
parents:
diff changeset
315 -- Highest List_Id value used by Standard (including those used by
kono
parents:
diff changeset
316 -- normal list headers, element list headers, and list elements)
kono
parents:
diff changeset
317
kono
parents:
diff changeset
318 Boolean_Literals : array (Boolean) of Entity_Id;
kono
parents:
diff changeset
319 -- Entities for the two boolean literals, used by the expander
kono
parents:
diff changeset
320
kono
parents:
diff changeset
321 -------------------------------------
kono
parents:
diff changeset
322 -- Semantic Phase Special Entities --
kono
parents:
diff changeset
323 -------------------------------------
kono
parents:
diff changeset
324
kono
parents:
diff changeset
325 -- The semantic phase needs a number of entities for internal processing
kono
parents:
diff changeset
326 -- that are logically at the level of Standard, and hence defined in this
kono
parents:
diff changeset
327 -- package. However, they are never visible to a program, and are not
kono
parents:
diff changeset
328 -- chained on to the Decls list of Standard. The names of all these
kono
parents:
diff changeset
329 -- types are relevant only in certain debugging and error message
kono
parents:
diff changeset
330 -- situations. They have names that are suitable for use in such
kono
parents:
diff changeset
331 -- error messages (see body for actual names used).
kono
parents:
diff changeset
332
kono
parents:
diff changeset
333 Standard_Void_Type : Entity_Id;
kono
parents:
diff changeset
334 -- This is a type used to represent the return type of procedures
kono
parents:
diff changeset
335
kono
parents:
diff changeset
336 Standard_Exception_Type : Entity_Id;
kono
parents:
diff changeset
337 -- This is a type used to represent the Etype of exceptions
kono
parents:
diff changeset
338
kono
parents:
diff changeset
339 Standard_A_String : Entity_Id;
kono
parents:
diff changeset
340 -- An access to String type used for building elements of tables
kono
parents:
diff changeset
341 -- carrying the enumeration literal names.
kono
parents:
diff changeset
342
kono
parents:
diff changeset
343 Standard_A_Char : Entity_Id;
kono
parents:
diff changeset
344 -- Access to character, used as a component of the exception type to denote
kono
parents:
diff changeset
345 -- a thin pointer component.
kono
parents:
diff changeset
346
kono
parents:
diff changeset
347 Standard_Debug_Renaming_Type : Entity_Id;
kono
parents:
diff changeset
348 -- A zero-size subtype of Integer, used as the type of variables used to
kono
parents:
diff changeset
349 -- provide the debugger with name encodings for renaming declarations.
kono
parents:
diff changeset
350
kono
parents:
diff changeset
351 Predefined_Float_Types : Elist_Id;
kono
parents:
diff changeset
352 -- Entities for predefined floating point types. These are used by
kono
parents:
diff changeset
353 -- the semantic phase to select appropriate types for floating point
kono
parents:
diff changeset
354 -- declarations. This list is ordered by preference. All types up to
kono
parents:
diff changeset
355 -- Long_Long_Float_Type are considered for plain "digits N" declarations,
kono
parents:
diff changeset
356 -- while selection of later types requires a range specification and
kono
parents:
diff changeset
357 -- possibly other attributes or pragmas.
kono
parents:
diff changeset
358
kono
parents:
diff changeset
359 -- The entities labeled Any_xxx are used in situations where the full
kono
parents:
diff changeset
360 -- characteristics of an entity are not yet known, e.g. Any_Character
kono
parents:
diff changeset
361 -- is used to label a character literal before resolution is complete.
kono
parents:
diff changeset
362 -- These entities are also used to construct appropriate references in
kono
parents:
diff changeset
363 -- error messages ("expecting an integer type").
kono
parents:
diff changeset
364
kono
parents:
diff changeset
365 Any_Id : Entity_Id;
kono
parents:
diff changeset
366 -- Used to represent some unknown identifier. Used to label undefined
kono
parents:
diff changeset
367 -- identifier references to prevent cascaded errors.
kono
parents:
diff changeset
368
kono
parents:
diff changeset
369 Any_Type : Entity_Id;
kono
parents:
diff changeset
370 -- Used to represent some unknown type. Any_Type is the type of an
kono
parents:
diff changeset
371 -- unresolved operator, and it is the type of a node where a type error
kono
parents:
diff changeset
372 -- has been detected. Any_Type plays an important role in avoiding cascaded
kono
parents:
diff changeset
373 -- errors, because it is compatible with all other types, and is propagated
kono
parents:
diff changeset
374 -- to any expression that has a subexpression of Any_Type. When resolving
kono
parents:
diff changeset
375 -- operators, Any_Type is the initial type of the node before any of its
kono
parents:
diff changeset
376 -- candidate interpretations has been examined. If after examining all of
kono
parents:
diff changeset
377 -- them the type is still Any_Type, the node has no possible interpretation
kono
parents:
diff changeset
378 -- and an error can be emitted (and Any_Type will be propagated upwards).
kono
parents:
diff changeset
379
kono
parents:
diff changeset
380 Any_Access : Entity_Id;
kono
parents:
diff changeset
381 -- Used to resolve the overloaded literal NULL
kono
parents:
diff changeset
382
kono
parents:
diff changeset
383 Any_Array : Entity_Id;
kono
parents:
diff changeset
384 -- Used to represent some unknown array type
kono
parents:
diff changeset
385
kono
parents:
diff changeset
386 Any_Boolean : Entity_Id;
kono
parents:
diff changeset
387 -- The context type of conditions in IF and WHILE statements
kono
parents:
diff changeset
388
kono
parents:
diff changeset
389 Any_Character : Entity_Id;
kono
parents:
diff changeset
390 -- Any_Character is used to label character literals, which in general
kono
parents:
diff changeset
391 -- will not have an explicit declaration (this is true of the predefined
kono
parents:
diff changeset
392 -- character types).
kono
parents:
diff changeset
393
kono
parents:
diff changeset
394 Any_Composite : Entity_Id;
kono
parents:
diff changeset
395 -- The type Any_Composite is used for aggregates before type resolution.
kono
parents:
diff changeset
396 -- It is compatible with any array or non-limited record type.
kono
parents:
diff changeset
397
kono
parents:
diff changeset
398 Any_Discrete : Entity_Id;
kono
parents:
diff changeset
399 -- Used to represent some unknown discrete type
kono
parents:
diff changeset
400
kono
parents:
diff changeset
401 Any_Fixed : Entity_Id;
kono
parents:
diff changeset
402 -- Used to represent some unknown fixed-point type
kono
parents:
diff changeset
403
kono
parents:
diff changeset
404 Any_Integer : Entity_Id;
kono
parents:
diff changeset
405 -- Used to represent some unknown integer type
kono
parents:
diff changeset
406
kono
parents:
diff changeset
407 Any_Modular : Entity_Id;
kono
parents:
diff changeset
408 -- Used to represent the result type of a boolean operation on an integer
kono
parents:
diff changeset
409 -- literal. The result is not Universal_Integer, because it is only legal
kono
parents:
diff changeset
410 -- in a modular context.
kono
parents:
diff changeset
411
kono
parents:
diff changeset
412 Any_Numeric : Entity_Id;
kono
parents:
diff changeset
413 -- Used to represent some unknown numeric type
kono
parents:
diff changeset
414
kono
parents:
diff changeset
415 Any_Real : Entity_Id;
kono
parents:
diff changeset
416 -- Used to represent some unknown real type
kono
parents:
diff changeset
417
kono
parents:
diff changeset
418 Any_Scalar : Entity_Id;
kono
parents:
diff changeset
419 -- Used to represent some unknown scalar type
kono
parents:
diff changeset
420
kono
parents:
diff changeset
421 Any_String : Entity_Id;
kono
parents:
diff changeset
422 -- The type Any_String is used for string literals before type resolution.
kono
parents:
diff changeset
423 -- It corresponds to array (Positive range <>) of character where the
kono
parents:
diff changeset
424 -- component type is compatible with any character type, not just
kono
parents:
diff changeset
425 -- Standard_Character.
kono
parents:
diff changeset
426
kono
parents:
diff changeset
427 Raise_Type : Entity_Id;
kono
parents:
diff changeset
428 -- The type Raise_Type denotes the type of a Raise_Expression. It is
kono
parents:
diff changeset
429 -- compatible with all other types, and must eventually resolve to a
kono
parents:
diff changeset
430 -- concrete type that is imposed by the context.
kono
parents:
diff changeset
431 --
kono
parents:
diff changeset
432 -- Historical note: we used to use Any_Type for this purpose, but the
kono
parents:
diff changeset
433 -- confusion of meanings (Any_Type normally indicates an error) caused
kono
parents:
diff changeset
434 -- difficulties. In particular some needed expansions were skipped since
kono
parents:
diff changeset
435 -- the nodes in question looked like they had an error.
kono
parents:
diff changeset
436
kono
parents:
diff changeset
437 Universal_Integer : Entity_Id;
kono
parents:
diff changeset
438 -- Entity for universal integer type. The bounds of this type correspond
kono
parents:
diff changeset
439 -- to the largest supported integer type (i.e. Long_Long_Integer). It is
kono
parents:
diff changeset
440 -- the type used for runtime calculations in type universal integer.
kono
parents:
diff changeset
441
kono
parents:
diff changeset
442 Universal_Real : Entity_Id;
kono
parents:
diff changeset
443 -- Entity for universal real type. The bounds of this type correspond to
kono
parents:
diff changeset
444 -- to the largest supported real type (i.e. Long_Long_Float). It is the
kono
parents:
diff changeset
445 -- type used for runtime calculations in type universal real. Note that
kono
parents:
diff changeset
446 -- this type is always IEEE format.
kono
parents:
diff changeset
447
kono
parents:
diff changeset
448 Universal_Fixed : Entity_Id;
kono
parents:
diff changeset
449 -- Entity for universal fixed type. This is a type with arbitrary
kono
parents:
diff changeset
450 -- precision that can only appear in a context with a specific type.
kono
parents:
diff changeset
451 -- Universal_Fixed labels the result of multiplication or division of
kono
parents:
diff changeset
452 -- two fixed point numbers, and has no specified bounds (since, unlike
kono
parents:
diff changeset
453 -- universal integer and universal real, it is never used for runtime
kono
parents:
diff changeset
454 -- calculations).
kono
parents:
diff changeset
455
kono
parents:
diff changeset
456 Standard_Integer_8 : Entity_Id;
kono
parents:
diff changeset
457 Standard_Integer_16 : Entity_Id;
kono
parents:
diff changeset
458 Standard_Integer_32 : Entity_Id;
kono
parents:
diff changeset
459 Standard_Integer_64 : Entity_Id;
kono
parents:
diff changeset
460 -- These are signed integer types with the indicated sizes. Used for the
kono
parents:
diff changeset
461 -- underlying implementation types for fixed-point and enumeration types.
kono
parents:
diff changeset
462
kono
parents:
diff changeset
463 Standard_Short_Short_Unsigned : Entity_Id;
kono
parents:
diff changeset
464 Standard_Short_Unsigned : Entity_Id;
kono
parents:
diff changeset
465 Standard_Unsigned : Entity_Id;
kono
parents:
diff changeset
466 Standard_Long_Unsigned : Entity_Id;
kono
parents:
diff changeset
467 Standard_Long_Long_Unsigned : Entity_Id;
kono
parents:
diff changeset
468 -- Unsigned types with same Esize as corresponding signed integer types
kono
parents:
diff changeset
469
kono
parents:
diff changeset
470 Standard_Unsigned_64 : Entity_Id;
kono
parents:
diff changeset
471 -- An unsigned type, mod 2 ** 64, size of 64 bits.
kono
parents:
diff changeset
472
kono
parents:
diff changeset
473 Abort_Signal : Entity_Id;
kono
parents:
diff changeset
474 -- Entity for abort signal exception
kono
parents:
diff changeset
475
kono
parents:
diff changeset
476 Standard_Op_Rotate_Left : Entity_Id;
kono
parents:
diff changeset
477 Standard_Op_Rotate_Right : Entity_Id;
kono
parents:
diff changeset
478 Standard_Op_Shift_Left : Entity_Id;
kono
parents:
diff changeset
479 Standard_Op_Shift_Right : Entity_Id;
kono
parents:
diff changeset
480 Standard_Op_Shift_Right_Arithmetic : Entity_Id;
kono
parents:
diff changeset
481 -- These entities are used for shift operators generated by the expander
kono
parents:
diff changeset
482
kono
parents:
diff changeset
483 -----------------
kono
parents:
diff changeset
484 -- Subprograms --
kono
parents:
diff changeset
485 -----------------
kono
parents:
diff changeset
486
kono
parents:
diff changeset
487 procedure Tree_Read;
kono
parents:
diff changeset
488 -- Initializes entity values in this package from the current tree file
kono
parents:
diff changeset
489 -- using Tree_IO. Note that Tree_Read includes all the initialization that
kono
parents:
diff changeset
490 -- is carried out by Create_Standard.
kono
parents:
diff changeset
491
kono
parents:
diff changeset
492 procedure Tree_Write;
kono
parents:
diff changeset
493 -- Writes out the entity values in this package to the current tree file
kono
parents:
diff changeset
494 -- using Tree_IO.
kono
parents:
diff changeset
495
kono
parents:
diff changeset
496 end Stand;