[comp.lang.ada] Ada Code Browsing

lrs@esl.ESL.COM (Lynn Slater) (12/21/88)

> I would like to hear from anyone who has developed an on-line Ada
> browser (either standalone, or part of another tool, such as Emacs).

Ada Gnu emacs with tags up will find the code for you.  it is only as
smart as the tags generator (vendor specific).

> In particular, what I am interested in is how your browser expects to
> find comments associated with an Ada declaration.

So far, it relies on screen scrolling.  A simple change would be to
start the top line of the window at the first of those comment lines
which preceed the declaration but without any non-blank breaks.
You will then see as much as your window will hold.

An enhancement of this could merge ada mode and outline mode to hide
all but the declaration and associated comments.

> The
> browser can make use of the 'Reserved comment words' "Purpose,
> Pre-Conditions, Post-Conditions, and Exceptions" in some manner.

Unless this header is some sort of non-proprietary and generally
accepted standard, you will have to do this yourself.  (This is not
difficult.)

-- Lynn
===============================================================
Lynn Slater -- lrs@esl.com
ESL/TRW 495 Java Drive, Box 3510, Sunnyvale, Ca 94088-3510
Office (408) 738-2888 x 4482; Home (415) 796-4149 
===============================================================