Print

Print


RAPID has now been updated to use the new TASH binding.  Available from
ftp://ftp.usafa.af.mil/pub/dfcs/carlisle/usafa/rapid, or in a day or two
from the mirror at
http://wuarchive.wustl.edu/languages/ada/usafa/rapid/index.html

--Martin

-----Original Message-----
From: Terry Westley [mailto:[log in to unmask]]
Sent: Tuesday, November 16, 1999 7:54 AM
To: [log in to unmask]
Subject: Announcing: new version of TASH and new website


A new version of TASH which supports Tcl/Tk 8.2 and
the preliminary release of a new thick binding is
now available (and still free) at the new TASH website:

         http://www.adatcl.com

As part of this release, TASH was tested to work on
Red Hat Linux 5.2, Sun Solaris 2.5.1, Windows 95,
Windows 98, and Windows NT 4.0, compiling with GNAT 3.11p.

TASH now has a new thick binding whose purpose is to:

 - simplify and "Ada-fy" the capabilities of the Tcl
   scripting language,
 - make access to Tcl facilities task-safe, and
 - manage memory allocation of TASH (Tcl) objects.

Among other features, this binding makes it easy, in Ada,
to perform regular expression pattern matching and C-style
printf.

Here's an example of using regular expression pattern matching:

   if Tash.Regexp.Match (File_Name, "\.(a|ada|ads|adb)$") then
      Ada.Text_IO.Put_Line (File_Name & " is an Ada source file");
   end if;

Here's an example of using C-style printf in Ada:

   Ada.Text_IO.Put_Line (
      Tash.Lists.Format ("%s is %10.2f (%08x)",
         Tash.Lists.To_Tash_List (+"Half a pi", +1.5708, +82)));

First, we make a Tash list composed of three Tash objects,
a string, a float, and an integer.  Then, we call Format
to create and return a string with the formatted data
embedded per the format string.

This release of TASH does not include Windows binary
libraries.  These are built by GNAT with the Windows TASH
makefiles.  But, if you need them, I can build them and
make them available for download on the website.

The earlier thin binding is still part of TASH.
It comes in two parts:

 - one with C data types and integer return codes, and
 - the other with Ada data types and use of exceptions.

They both provide direct support for those data types
and functions available in tcl.h and tk.h.

--
Terry J. Westley, Software Systems Engineering Supervisor
Veridian Engineering, Calspan Operations
[log in to unmask]   http://www.veridian.com/
-------------------------------------------------------
Author of TASH, an Ada binding to Tcl/Tk.
Visit the TASH web site at http://www.adatcl.com.
-------------------------------------------------------