Adaquery is an experimental cross referencing tool for Ada95. I developped this program to get autocompletion and easy navigation for ada projects in Vim (see https://github.com/rsaill/vim-ada).
- Make sure you have a recent version of OCaml installed.
- Make sure you have Menhir installed (if not Opam is your friend).
make
sudo make install
-
Index the files of your project:
adaquery -p ada-rwth -index ada-rwth/**/*.ads
-
Query the database:
- Search for a package or an object:
adaquery -p myproject -search 'inheritance'
inheritance_mutant
inheritance_child
inheritance_parent
inheritance_parents_parent
- Locate a package or an object :
adaquery -p myproject -locate 'inheritance_mutant.Mutant'
/home/username/repos/ada-rwth/chris/inheritance_mutant.ads
5
- Print the content of a package:
adaquery -p myproject -print 'inheritance_mutant'
Package
Mutant -> Type
test -> Subprog