1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- $Revision: 1.1.16.1 $
11 -- Copyright (C) 1992-1997 Free Software Foundation, Inc. --
13 -- GNAT is free software; you can redistribute it and/or modify it under --
14 -- terms of the GNU General Public License as published by the Free Soft- --
15 -- ware Foundation; either version 2, or (at your option) any later ver- --
16 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
17 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
18 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
19 -- for more details. You should have received a copy of the GNU General --
20 -- Public License distributed with GNAT; see file COPYING. If not, write --
21 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
22 -- MA 02111-1307, USA. --
24 -- GNAT was originally developed by the GNAT team at New York University. --
25 -- Extensive contributions were provided by Ada Core Technologies Inc. --
27 ------------------------------------------------------------------------------
29 -- This file is a template used as input to the utility program XTreeprs,
30 -- which reads this template, and the spec of Sinfo (sinfo.ads) and generates
31 -- the spec for the Treeprs package (file treeprs.ads)
33 -- This package contains the declaration of the string used by the Tree_Print
34 -- package. It must be updated whenever the arrangements of the field names
35 -- in package Sinfo is changed. The utility program XTREEPRS is used to
36 -- do this update correctly using the template treeprs.adt as input.
38 with Sinfo; use Sinfo;
42 --------------------------------
43 -- String Data for Node Print --
44 --------------------------------
46 -- String data for print out. The Pchars array is a long string with the
47 -- the entry for each node type consisting of a single blank, followed by
48 -- a series of entries, one for each Op or Flag field used for the node.
49 -- Each entry has a single character which identifies the field, followed
50 -- by the synonym name. The starting location for a given node type is
51 -- found from the corresponding entry in the Pchars_Pos_Array.
53 -- The following characters identify the field. These are characters
54 -- which could never occur in a field name, so they also mark the
55 -- end of the previous name.
57 subtype Fchar is Character range '#' .. '9';
59 F_Field1 : constant Fchar := '#'; -- Character'Val (16#23#)
60 F_Field2 : constant Fchar := '$'; -- Character'Val (16#24#)
61 F_Field3 : constant Fchar := '%'; -- Character'Val (16#25#)
62 F_Field4 : constant Fchar := '&'; -- Character'Val (16#26#)
63 F_Field5 : constant Fchar := '''; -- Character'Val (16#27#)
64 F_Flag1 : constant Fchar := '('; -- Character'Val (16#28#)
65 F_Flag2 : constant Fchar := ')'; -- Character'Val (16#29#)
66 F_Flag3 : constant Fchar := '*'; -- Character'Val (16#2A#)
67 F_Flag4 : constant Fchar := '+'; -- Character'Val (16#2B#)
68 F_Flag5 : constant Fchar := ','; -- Character'Val (16#2C#)
69 F_Flag6 : constant Fchar := '-'; -- Character'Val (16#2D#)
70 F_Flag7 : constant Fchar := '.'; -- Character'Val (16#2E#)
71 F_Flag8 : constant Fchar := '/'; -- Character'Val (16#2F#)
72 F_Flag9 : constant Fchar := '0'; -- Character'Val (16#30#)
73 F_Flag10 : constant Fchar := '1'; -- Character'Val (16#31#)
74 F_Flag11 : constant Fchar := '2'; -- Character'Val (16#32#)
75 F_Flag12 : constant Fchar := '3'; -- Character'Val (16#33#)
76 F_Flag13 : constant Fchar := '4'; -- Character'Val (16#34#)
77 F_Flag14 : constant Fchar := '5'; -- Character'Val (16#35#)
78 F_Flag15 : constant Fchar := '6'; -- Character'Val (16#36#)
79 F_Flag16 : constant Fchar := '7'; -- Character'Val (16#37#)
80 F_Flag17 : constant Fchar := '8'; -- Character'Val (16#38#)
81 F_Flag18 : constant Fchar := '9'; -- Character'Val (16#39#)
83 -- Note this table does not include entity field and flags whose access
84 -- functions are in Einfo (these are handled by the Print_Entity_Info
85 -- procedure in Treepr, which uses the routines in Einfo to get the
86 -- proper symbolic information). In addition, the following fields are
87 -- handled by Treepr, and do not appear in the Pchars array:
95 -- Is_Controlling_Actual
97 -- Is_Static_Expression
103 -- Raises_Constraint_Error
106 !!TEMPLATE INSERTION POINT