After ensuring c:\usr\bin is early in you path, simply type "make" to build all of the examples. ----------------------------------------------------------------------------- This is the Gnat Examples Directory. Our goal is to provide the gnat user some pieces of code that are easy to understand, easy to modify and to play with, and which demonstrate either : - some classic Ada features - some new Ada'95 features - some good pedagogical programming exercises - some language features and packages If you are insterested in sharing your own programs with the Gnat community, please tune them with the latest Gnat version and send it with appropriate documentation (and bug reports) to gnat-report@cs.nyu.edu On unix or Windows systems -- a simple "make" should build and execute theses programs. 1- test_cl.adb get and print command line arguments e.g. test_cl a_arg another-arg 3.57 2- hello.adb text_io_example.adb trivial demonstrations of a use of text_io. 3- use_of_import.adb imported_function.c trivial example of calling a C function from an Ada program. 4- tgef.adb a simple test of the GEF (Generic Elementary Functions) package of the Ada Numerics annex. The example produces a classical Sin wave. 5- tef.adb similar to tgef except here we use the Elementary_Functions package which is not generic and therefore requires no instantiation. It is defined for type Float. The example produces three overlayed graphs of Sin, Cos and Arctan. 6- demo1.adb gen_list.ads gen_list.adb instr.ads instr.adb A very simple simulation of car dashboard instruments. Demonstrates simple type extension, dispatching and child unit. 2 main programs are provided, demo1 and demo2. 7- demo2.adb above plus instr-child.ads instr-child.adb similar to demo1 but uses child package and requires input 8- cal.adb Prints the current Calendar Date and Time using the package Calendar 9- except.adb Shows exception handling. 10- task_test.adb shows an example of tasking