OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / ada / treepr.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                               T R E E P R                                --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --                                                                          --
10 --          Copyright (C) 1992-2002 Free Software Foundation, Inc.          --
11 --                                                                          --
12 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
13 -- terms of the  GNU General Public License as published  by the Free Soft- --
14 -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
15 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
18 -- for  more details.  You should have  received  a copy of the GNU General --
19 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
20 -- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
21 -- MA 02111-1307, USA.                                                      --
22 --                                                                          --
23 -- GNAT was originally developed  by the GNAT team at  New York University. --
24 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
25 --                                                                          --
26 ------------------------------------------------------------------------------
27
28 with Types; use Types;
29 package Treepr is
30
31 --  This package provides printing routines for the abstract syntax tree
32 --  These routines are intended only for debugging use.
33
34    procedure Tree_Dump;
35    --  This routine is called from the GNAT main program to dump trees as
36    --  requested by debug options (including tree of Standard if requested).
37
38    procedure Print_Tree_Node (N : Node_Id; Label : String := "");
39    --  Prints a single tree node, without printing descendants. The Label
40    --  string is used to preface each line of the printed output.
41
42    procedure Print_Tree_List (L : List_Id);
43    --  Prints a single node list, without printing the descendants of any
44    --  of the nodes in the list
45
46    procedure Print_Tree_Elist (E : Elist_Id);
47    --  Prints a single node list, without printing the descendants of any
48    --  of the nodes in the list
49
50    procedure Print_Node_Subtree (N : Node_Id);
51    --  Prints the subtree routed at a specified tree node, including all
52    --  referenced descendants.
53
54    procedure Print_List_Subtree (L : List_Id);
55    --  Prints the subtree consisting of the given node list and all its
56    --  referenced descendants.
57
58    procedure Print_Elist_Subtree (E : Elist_Id);
59    --  Prints the subtree consisting of the given element list and all its
60    --  referenced descendants.
61
62    procedure pe (E : Elist_Id);
63    pragma Export (Ada, pe);
64    --  Debugging procedure (to be called within gdb)
65    --  same as Print_Tree_Elist
66
67    procedure pl (L : List_Id);
68    pragma Export (Ada, pl);
69    --  Debugging procedure (to be called within gdb)
70    --  same as Print_Tree_List
71
72    procedure pn (N : Node_Id);
73    pragma Export (Ada, pn);
74    --  Debugging procedure (to be called within gdb)
75    --  same as Print_Tree_Node with Label = ""
76
77    procedure pt (N : Node_Id);
78    pragma Export (Ada, pt);
79    --  Debugging procedure (to be called within gdb)
80    --  same as Print_Node_Subtree
81
82 end Treepr;