ALGOL W

ALGOL W，一種程式語言，為ALGOL家族的一份子。它基於尼克勞斯·維爾特與東尼·霍爾在提出的 草案而設計，希望能作為ALGOL 60的後繼者。經過小幅度的修改，在史丹福大學，尼克勞斯·維爾特利用IBM System/360機器，以PL360實作出第一版的ALGOL W
。

它的編譯器是用尼克勞斯·維爾特所設計的PL360組語所寫成。

例子 

下面例子展示ALGOL W的记录类型设施：

RECORD PERSON (
    STRING(20) NAME; 
    INTEGER AGE; 
    LOGICAL MALE; 
    REFERENCE(PERSON) FATHER, MOTHER, YOUNGESTOFFSPRING, ELDERSIBLING
);

REFERENCE(PERSON) PROCEDURE YOUNGESTUNCLE (REFERENCE(PERSON) R);
BEGIN
    REFERENCE(PERSON) P, M;
    P := YOUNGESTOFFSPRING(FATHER(FATHER(R)));
    WHILE (P ¬= NULL) AND (¬ MALE(P)) OR (P = FATHER(R)) DO
        P := ELDERSIBLING(P);
    M := YOUNGESTOFFSPRING(MOTHER(MOTHER(R)));
    WHILE (M ¬= NULL) AND (¬ MALE(M)) DO
        M := ELDERSIBLING(M);
    IF P = NULL THEN 
        M 
    ELSE IF M = NULL THEN 
        P 
    ELSE 
        IF AGE(P) < AGE(M) THEN P ELSE M
END

引用

外部链接 
aw2c – ALGOL W compiler for Linux
awe – aw2c updated version
ALGOL W @ Everything2  – informal but detailed description of the language by a former user, with sidebars extolling ALGOL W over Pascal as an educational programming language
1969 ALGOL W compiler listing at bitsavers.org
 The Michigan Terminal System Manuals, Volume 16: ALGOL W in MTS
Algol W materials More than 200 Algol W programs and documentation

过程式编程语言
ALGOL程式語言家族
1966年建立的程式語言