comp.lang.ada
 help / color / mirror / Atom feed
* Looking for Ada tool.
@ 1991-11-11 21:58 elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!skit
  0 siblings, 0 replies; only message in thread
From: elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!skit @ 1991-11-11 21:58 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1991-11-11 21:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-11-11 21:58 Looking for Ada tool elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!skit

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