comp.lang.ada
 help / color / mirror / Atom feed
From: elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!skit
Subject: Looking for Ada tool.
Date: 11 Nov 91 21:58:07 GMT	[thread overview]
Message-ID: <1991Nov11.165808.84@skvax1.dseg.ti.com> (raw)

I am posting this for a friend.  Please reply directly to:


 Tom Creed
 creed@lvis.dseg.ti.com    -- internet


Thanks

John Anderson

--  -----------------------------------------------------------                
                     
In conjunction with automating some source maintenance procedures, I have the
following need :

   Given an ADA identifier, locate the statements within multiple source files
   where the identifier is used. Ultimately determine what ADA object(s)
   is(are) declared using the given identifier.

For example (this is contrived of course) :

  given :

    HIGH : constant positive := 10 ; -- an identifier of interest.

    -- source statements to be examined for occurrances of the identifier.

    LOW : constant positive := 1 ; 

    type PROCESS_RECORD ( MAX : positive ) is
     record
      CAPCITY : integer  := 0   ;
      SPEED   : positive := MAX ;
     end record ;

    type PROCESS_ARRAY is array ( positive ) of PROCESS_RECORD ;
   
  find statements like the following :

    PROCESS   : PROCESS_RECORD ( HIGH ) ;
    PROCESSES : PROCESS_ARRAY ( 0 .. 3 ) :=
      ( 0 => ( 0 , LOW  ) ,
        1 => ( 1 , HIGH ) ,
        2 => ( 2 , LOW  ) 
      ) ;

  and determine that the objects declared with the identifier "HIGH" are 
  "PROCESS" and "PROCESSES".


It is easy enough to locate the statements where the identifier occurs by
employing a VMS search command or equivalent. It is rather difficult - using
simple VMS DCL commands or equivalents - to identify the actual objects in a
wide range of ADA statement syntaxs.

If anyone is aware of a public domain (or otherwise easily accessable) utility
that can do some of all of the above, please reply to :

 Tom Creed
 LVIPL::CREED              -- VAX mail
 creed@lvis.dseg.ti.com    -- internet

Thanks.

                 reply	other threads:[~1991-11-11 21:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox