home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / adav313.zip / gnat-3_13p-os2-bin-20010916.zip / emx / gnat / examples / README < prev    next >
Text File  |  2000-07-19  |  2KB  |  43 lines

  1. This is the Gnat Examples Directory. Our goal is to provide the gnat user some
  2. pieces of code that are easy to understand, easy to modify and to play with,
  3. and which demonstrate either :
  4.     - some classic Ada features
  5.     - some new Ada 95 features
  6.     - some good pedagogical programming exercises
  7. If you are insterested in sharing your own programs with the Gnat community,
  8. please tune them with the latest Gnat version and send it with appropriate
  9. documentation (and bug reports) to report@gnat.com.
  10.  
  11. On unix systems -- a simple "make" should build and execute theses programs.
  12.  
  13. 1- simple_io
  14.  
  15.   provides (extremely) basic Input-Output facilities with a text_io-like
  16.   syntax. A "Hello World" program is used as main unit.
  17.  
  18.   Note: this uses the s-io.ads/adb package and the file a-cio.c which has
  19.   already been compiled as part of the GNAT Run Time Library therefore that
  20.   do not need to be compiled again or mentioned on the gnatbl command. To
  21.   examine these sources look in the RTL source directory (see gnat-intro
  22.   for details).
  23.  
  24. 2- text_io_example
  25.   trivial demonstration of a use of text_io.
  26.  
  27. 3- use_of_import
  28.   trivial example of calling a C function from an Ada program.
  29.  
  30. 4- tgef - a simple test of the GEF (Generic Elementary Functions) package
  31.    of the Ada Numerics annex. The example produces a classical Sin wave.
  32.  
  33. 5- tef - similar to tgef except here we use the Elementary_Functions package
  34.    which is not generic and therefore requires no instantiation. It is defined
  35.    for type Float.  The example produces three overlayed graphs of Sin, Cos and
  36.    Arctan.
  37.  
  38. 6- instruments
  39.  
  40.   A very simple simulation of car dashboard instruments. Demonstrates
  41.   simple type extension, dispatching and child unit. 2 main programs are
  42.   provided, demo1 and demo2. 
  43.