|
TCL ADA SHELL |
|||
|
Demonstration Programs |
|||
To build and run these demo programs, cd to the tash841a/demos directory and execute make all test. Build and Execute freq ProgramThe freq demo program is a frequency counter. The Tcl code version is in freq.tcl; the Ada source code is in freq.adb. This program demonstrates the use of several Tcl features, including hash tables, in an Ada program. Build and Execute timer ProgramThe timer program was adapted from the timer demo program provided in the Tk distribution. It implements a simple stopwatch. A Tcl script version of this program is also provided (timer.tcl) so you can compare it to the TASH version. Execute the Tcl script version by entering the command, wish -f timer.tcl. Notice that there are no apparent differences in appearance or performance between the Ada and Tcl versions. Build and Execute futurevalue ProgramThe purpose of the futurevalue program is to demonstrate the capability of TASH to use Ada to read, process, and update data in a GUI application. When running this program, try entering an expression in any of the data entry fields (e.g. 10*10) instead of 100 for the Monthly Savings Amount.
|