History
ARexx was first created in 1987, developed for the Amiga byARexx was developed on an Amiga 1000 computer with 512k bytes of
memory and two floppy disk drives. The language prototype was
developed in C usingLattice C The Lattice C Compiler was released in June 1982 by Lifeboat Associates and was the first C compiler for the IBM Personal Computer. The compiler sold for $500 and would run on PC DOS or MS-DOS (which at the time were the same product with differe ..., and the production version was written
in assembly-language using the Metacomco assembler. The documentation
was created using the TxEd editor, and was set in TeX using AmigaTeX.
This is a 100% Amiga product.
Characteristics
ARexx is a programming language that can communicate with other applications. Using ARexx, for example, one could request data from a database application and send it to a spreadsheet application. To support this facility, an application must be "ARexx compatible" by being able to receive commands from ARexx and execute them. A database program might have commands to search for, retrieve, and save data — the MicroFiche Filer database has an extensive ARexx command set. A text editor might have ARexx commands corresponding to its editing command set — the Textra editor supplied with JForth can be used to provide an integrated programming environment. The AmigaVision multimedia presentation program also has ARexx port built in and can control other programs using ARexx. ARexx can increase the power of a computer by combining the capabilities of various programs. Because of the popularity of a stand-alone ARexx package, Commodore included it with Release 2 of AmigaDOS. Like all REXX implementations, ARexx uses ''typeless'' data representation. Other programming languages made distinctions between integers, floating point numbers, strings, characters, vectors, ''etc''. In contrast, REXX systems treat all data as strings of characters, making it simpler to write expressions and algorithms. As is often the case in dynamically scoped languages, variables are not declared before using them, they come into being on their first use. ARexx scripts benefit from an error handling system which monitors execution and responds accordingly. The programmer can choose to suspend and resume the execution of the program as needed. The ARexx command set is simple, but in addition to the commands there are the functions of its Amiga reference library (rexxsyslib.library). It is also easy to add other libraries or individual functions. ARexx scripts can also be invoked as functions from other ARexx scripts. Any Amiga program which has an ARexx port built in can share its functions with ARexx scripts.Examples of ARexx solutions to common problems
Implementing new features and capabilities via scripts
If end user is using a program which builds animations by joining various bitmap image files but which lacks image processing capabilities, he could write an ARexx script which performs these actions: #ARexx locates the image files in their directories #ARexx loads first image #ARexx loads paint program #The image is loaded into paint program which performs modifications to file #The modified image is stored into another directory #ARexx repeats procedure on any image in the directory #The paint program is closed and the animation program is loaded #The animation is built #The animation is saved in its directory #The animation program is closedAvoiding repetitive procedures
EqFiles.rexx is a well-known example of a simple ARexx script written to automate repetitive and boring procedures. This script uses the ALeXcompare program to compare files, and then finds all duplicates in a set of files and returns output by highlighting any results in a different color.Expand AmigaOS capabilities
One of the main features of ARexx is the fact it could expand the capabilities of the AmigaOS by adding some procedures the OS lacked. For example, a simple ARexx program could be written to print a warning message on the screen of the monitor, or play an audio alert signal if a certain Amiga program stops, faults or has finished its scheduled job. The following script is a minimal ARexx script that displays warnings depending on events that take place.See also
* REXXReferences
;Notes * *External links