| Implications of APL2 grammar |
| Full text |
Pdf
(895 KB)
|
| Source
|
International Conference on APL
archive
Proceedings of the international conference on APL: APL in transition
table of contents
Dallas, Texas, United States
Pages: 329 - 336
Year of Publication: 1987
ISBN:0-89791-226-8
Also published in ...
|
|
Author
|
|
J. Philip Benkard
|
Module Manufacturing Engineering, International Business Machines Corporation, Dept 262 / Bldg 416, P. O. Box 950, Poughkeepsie, New York
|
|
| Sponsor |
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 0, Downloads (12 Months): 17, Citation Count: 3
|
|
|
ABSTRACT
A subtle but pervasive feature of APL2 is its new way of describing syntax. It is based on an ordered list of ordered pairs of syntactic classes. Position in the list corresponds to the strength of the syntactic bond between objects of the classes in the pair. The single rule of execution is to scan from the right until the binding drops and then evaluate the pair of objects just scanned.
The new simple view of syntax suggests some straightforward extensions to the language which do not complicate the syntax and address such areas as:
- specifying a variable number of iterations of EACH in a manner analogous to the way a power operator can specify iterations of a function.
- using similar and similarly simple expressions to apply structural functions and operators, for example (2 3 ↑)″ A B C and (2 3 /)″ A B C require, respectively, that the named objects be of rank 2 and of length 2 (after scalar extension). The first expression is, of course, not valid today; the second is, and the parentheses are redundant.
- creating arrays of objects other than data, a subject treated in several papers in recent years
- a number of identities involving functions and operators, including some which provide compact notation for concepts of elementary arithmetic.
- the elevators of Landaeta, which are only possible if a language contains identically structured expressions for objects of different symbolic classes, provide a way of describing analogues of an operation in different syntactic classes. These lead to an interesting new diagrammatic way of expressing identities.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
APL2
|
IBM Corporation, APL2 Language Manual, Order 5820-9227.
|
 |
Be84
|
|
 |
BG84
|
|
 |
Bk83
|
|
 |
Bk84
|
|
 |
Bk85
|
|
 |
Bk86
|
|
| |
Bk87
|
J.P. Benkard, "Replicate Each, Anyone?", these Proesedings. 16. No. 4 (July 19861,
|
| |
Iv78
|
K. E. Iverson* Operators and Functions. IBM Research Rsport RC7091.
|
 |
Iv79
|
|
 |
Iv82
|
|
| |
Iv85
|
K. E. Ivsrson. "A Concise Dictionary of APL", I. P. Sharp Associates.
|
| |
Iv86
|
K. E. Ivarsonr "Core APL", in Suppleaent to iuforral Voluae for APL86 (July 19861, pp. - .
|
 |
Ka83
|
|
 |
La86
|
|
|