TutorialName-based Browsing




Prev | Up | Next | Back | Forward | Tutorial Top

Ada-ASSURED can locate Ada definitions in a library. The feature uses a names database created by the utility program aa.tags.

Name browsing is illustrated using a sample database contained in file aahome/Ada-ASSURED/files/demo.tags.

(This database is created by aa-tags as part of the Ada-ASSURED release. To browse the names in your own programs, you must first run aa-tags to create your own database.)

A dialog box appears displays all entries in the database that match the criteria for the search. One of the criteria is the name to look for. This can be the wildcard character ?, which matches all names. We will first display all entries in the database.

The dialog box displays all entries in the database. You can load any of these by selecting it and clicking on Open.

The file will be loaded, and the selection will be positioned at the definition of Diners. The list of matches in the dialog box can be refreshed with respect to a name in file.

There are two matches for Open_The_Room, the entry specification and the entry definition.

Hypertext browsing from a use of a name to its definition and/or specification is provided by find-spec (menu: Tools/Names Browsing/Find Spec   X: Alt+SELECT   NT: mouse MENU/Find Spec) and find-definition (menu: Tools/Names Browsing/Find Definition   X: ^SELECT   NT: mouse MENU/Find Definition).

The declaration is selected.

By default, the library names browser opens files in TEXT mode. The default mode can be changed by toggling Tools/Names Browsing/Browse as TEXT. The remainder of the tutorial assumes that buffer line.a has syntactic mode compilation.


Forward