home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gnat-2.06-src.tgz / tar.out / fsf / gnat / ada / treepr.ads < prev    next >
Text File  |  1996-09-28  |  3KB  |  68 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT COMPILER COMPONENTS                         --
  4. --                                                                          --
  5. --                               T R E E P R                                --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.11 $                             --
  10. --                                                                          --
  11. --           Copyright (c) 1992,1993,1994 NYU, All Rights Reserved          --
  12. --                                                                          --
  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, 675 Mass Ave, Cambridge, MA 02139, USA. --
  22. --                                                                          --
  23. ------------------------------------------------------------------------------
  24.  
  25. with Types; use Types;
  26. package Treepr is
  27.  
  28. --  This package provides printing routines for the abstract syntax tree
  29. --  These routines are intended only for debugging use.
  30.  
  31.    procedure Tree_Dump;
  32.    --  This routine is called from the GNAT main program to dump trees as
  33.    --  requested by debug options (including tree of Standard if requested).
  34.  
  35.    procedure Print_Tree_Node (N : Node_Id; Label : String := "");
  36.    --  Prints a single tree node, without printing descendants. The Label
  37.    --  string is used to preface each line of the printed output.
  38.  
  39.    procedure Print_Tree_List (L : List_Id);
  40.    --  Prints a single node list, without printing the descendants of any
  41.    --  of the nodes in the list
  42.  
  43.    procedure Print_Tree_Elist (E : Elist_Id);
  44.    --  Prints a single node list, without printing the descendants of any
  45.    --  of the nodes in the list
  46.  
  47.    procedure Print_Node_Subtree (N : Node_Id);
  48.    --  Prints the subtree routed at a specified tree node, including all
  49.    --  referenced descendants.
  50.  
  51.    procedure Print_List_Subtree (L : List_Id);
  52.    --  Prints the subtree consisting of the given node list and all its
  53.    --  referenced descendants.
  54.  
  55.    procedure Print_Elist_Subtree (E : Elist_Id);
  56.    --  Prints the subtree consisting of the given element list and all its
  57.    --  referenced descendants.
  58.  
  59.    procedure PN (N : Node_Id);
  60.    --  Debugging procedure (to be called within gdb)
  61.    --  same as Print_Tree_Node with Label = ""
  62.  
  63.    procedure PT (N : Node_Id);
  64.    --  Debugging procedure (to be called within gdb)
  65.    --  same as Print_Node_Subtree
  66.  
  67. end Treepr;
  68.