Katana VentraIP

APL syntax and symbols

The programming language APL is distinctive in being symbolic rather than lexical: its primitives are denoted by symbols, not words. These symbols were originally devised as a mathematical notation to describe algorithms.[1] APL programmers often assign informal names when discussing functions and operators (for example, "product" for ×/) but the core functions and operators provided by the language are denoted by non-textual symbols.

Monadic and dyadic functions[edit]

Most symbols denote functions or operators. A monadic function takes as its argument the result of evaluating everything to its right. (Moderated in the usual way by parentheses.) A dyadic function has another argument, the first item of data on its left. Many symbols denote both monadic and dyadic functions, interpreted according to use. For example, ⌊3.2 gives 3, the largest integer not above the argument, and 3⌊2 gives 2, the lower of the two arguments.

Fonts[edit]

The Unicode Basic Multilingual Plane includes the APL symbols in the Miscellaneous Technical block,[17] which are thus usually rendered accurately from the larger Unicode fonts installed with most modern operating systems. These fonts are rarely designed by typographers familiar with APL glyphs. So, while accurate, the glyphs may look unfamiliar to APL programmers or be difficult to distinguish from one another.


Some Unicode fonts have been designed to display APL well: APLX Upright, APL385 Unicode, and SimPL.


Before Unicode, APL interpreters were supplied with fonts in which APL characters were mapped to less commonly used positions in the ASCII character sets, usually in the upper 128 code points. These mappings (and their national variations) were sometimes unique to each APL vendor's interpreter, which made the display of APL programs on the Web, in text files and manuals - frequently problematic.

Polivka, Raymond P.; Pakin, Sandra (1975). APL: The Language and Its Usage. Prentice-Hall.  978-0-13-038885-8.

ISBN

Reiter, Clifford A.; Jones, William R. (1990). APL with a Mathematical Accent (1 ed.). Taylor & Francis.  978-0534128647.

ISBN

Thompson, Norman D.; Polivka, Raymond P. (2013). APL2 in Depth (Springer Series in Statistics) (Paperback) (Reprint of the original 1st ed.). Springer.  978-0387942131.

ISBN

Gilman, Leonard; Rose, Allen J. (1976). (Paperback) (3rd ed.). Wiley. ISBN 978-0471093046.

A. P. L.: An Interactive Approach

– Unicode block including APL keys

Miscellaneous Technical

– More modern APL keyboard layout information

APL (codepage) § Keyboard layout

APL character reference: , Page 2, Page 3, Page 4

Page 1

British APL Association fonts page

aka the APL code page on mainframes

IBM code page 293

on the APL wiki

General information about APL chars

extending APL and its keyboard-symbols-operators.

Lee, Xah. . Retrieved 13 January 2015.

"How to Create an APL or Math Symbols Keyboard Layout"