OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [ada/] [treeprs.adt] - Blame information for rev 20

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.