ALGOL W
ALGOL W is a programming language.[4] It is based on a proposal for ALGOL X by Niklaus Wirth and Tony Hoare as a successor to ALGOL 60.[1] ALGOL W is a relatively simple upgrade of the original ALGOL 60, adding string, bitstring, complex number and reference to record data types and call-by-result passing of parameters, introducing the while statement, replacing switch with the case statement, and generally tightening up the language.[3] Wirth's entry was considered too little of an advance over ALGOL 60, and the more complex entry from Adriaan van Wijngaarden that would later become ALGOL 68 was selected in a highly contentious meeting.[5] Wirth later published his version as A contribution to the development of ALGOL.[1] With a number of small additions, this eventually became ALGOL W.[src] Wirth supervised a high-quality implementation for the IBM System/360 at Stanford University that was widely distributed.[src] The implementation was written in PL360, an ALGOL-like assembly language designed by Wirth.[1] The implementation includes influential debugging and profiling abilities.[src] ALGOL W served as the basis for the Pascal language, and the syntax of ALGOL W will be immediately familiar to anyone with Pascal experience.…[4]
ALGOL W is a programming language.[4] It is based on a proposal for ALGOL X by Niklaus Wirth and Tony Hoare as a successor to ALGOL 60.[1] ALGOL W is a relatively simple upgrade of the original ALGOL 60, adding string, bitstring, complex number and reference to record data types and call-by-result passing of parameters, introducing the while statement, replacing switch with the case statement, and generally tightening up the language.[3] Wirth's entry was considered too little of an advance over ALGOL 60, and the more complex entry from Adriaan van Wijngaarden that would later become ALGOL 68 was selected in a highly contentious meeting.[5] Wirth later published his version as A contribution to the development of ALGOL.[1] With a number of small additions, this eventually became ALGOL W.[src] Wirth supervised a high-quality implementation for the IBM System/360 at Stanford University that was widely distributed.[src] The implementation was written in PL360, an ALGOL-like assembly language designed by Wirth.[1] The implementation includes influential debugging and profiling abilities.[src] ALGOL W served as the basis for the Pascal language, and the syntax of ALGOL W will be immediately familiar to anyone with Pascal experience.[4] The key differences are improvements to record handling in Pascal, and, oddly, the loss of ALGOL W's ability to define the length of an array at runtime, which was one of original Pascal's most-complained-about features.[4] ==Example== This demonstrates ALGOL W's record type facility, including use of the null reference.[3] 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) ==References== ==External links== aw2c – ALGOL W compiler for Linux by Glyn Webster awe – current version by Glyn Webster 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[4]
23 sentences · 23 cited inline · 5 references stored
References
- Wirth, Niklaus. A contribution to the development of ALGOL . June 1966. · retrieved 2026-09-03 · rev 1373115449
Cite this reference
MLA "Wirth, Niklaus. A contribution to the development of ALGOL . June 1966." Wirth, Niklaus. 2026-09-03. https://en.wikipedia.org/w/index.php?oldid=1373115449. Accessed 01 December 2026.
Chicago "Wirth, Niklaus. A contribution to the development of ALGOL . June 1966." Wirth, Niklaus. 2026-09-03. https://en.wikipedia.org/w/index.php?oldid=1373115449.
APA Wirth, Niklaus. (2026). Wirth, Niklaus. A contribution to the development of ALGOL . June 1966. Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373115449
- Bauer, Henry R. www-db.stanford.edu . March 1968. · retrieved 2026-09-03 · rev 1373115449
Cite this reference
MLA "Bauer, Henry R. www-db.stanford.edu . March 1968." Bauer, Henry R. 2026-09-03. https://en.wikipedia.org/w/index.php?oldid=1373115449. Accessed 01 December 2026.
Chicago "Bauer, Henry R. www-db.stanford.edu . March 1968." Bauer, Henry R. 2026-09-03. https://en.wikipedia.org/w/index.php?oldid=1373115449.
APA Bauer, Henry R. (2026). Bauer, Henry R. www-db.stanford.edu . March 1968. Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373115449
- Sites, Richard. ALGOL W Reference Manual . i.stanford.edu . · retrieved 2026-09-03 · rev 1373115449
Cite this reference
MLA "Sites, Richard. ALGOL W Reference Manual . i.stanford.edu ." Sites, Richard. 2026-09-03. https://en.wikipedia.org/w/index.php?oldid=1373115449. Accessed 01 December 2026.
Chicago "Sites, Richard. ALGOL W Reference Manual . i.stanford.edu ." Sites, Richard. 2026-09-03. https://en.wikipedia.org/w/index.php?oldid=1373115449.
APA Sites, Richard. (2026). Sites, Richard. ALGOL W Reference Manual . i.stanford.edu . Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373115449
- In these ways, ALGOL W's syntax resembles that of Pascal (programming language)|Pascal and later languages. The ALGOL W Language Description cite report |last1=Bauer |first1=Henry R. |last2= . · retrieved 2026-09-03 · rev 1373115449
Cite this reference
MLA "In these ways, ALGOL W's syntax resembles that of Pascal (programming language)|Pascal and later languages. The ALGOL W Language Description cite report |last1=Bauer |first1=Henry R. |last2= ." In these ways, ALGOL W's syntax resembles that of Pascal (programming language)|Pascal and later languages. 2026-09-03. https://en.wikipedia.org/w/index.php?oldid=1373115449. Accessed 01 December 2026.
Chicago "In these ways, ALGOL W's syntax resembles that of Pascal (programming language)|Pascal and later languages. The ALGOL W Language Description cite report |last1=Bauer |first1=Henry R. |last2= ." In these ways, ALGOL W's syntax resembles that of Pascal (programming language)|Pascal and later languages. 2026-09-03. https://en.wikipedia.org/w/index.php?oldid=1373115449.
APA In these ways, ALGOL W's syntax resembles that of Pascal (programming language)|Pascal and later languages. (2026). In these ways, ALGOL W's syntax resembles that of Pascal (programming language)|Pascal and later languages. The ALGOL W Language Description cite report |last1=Bauer |first1=Henry R. |last2= . Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373115449
- van Wijngaarden, Adriaan. Orthogonal Design and Description of a Formal Language: MR76 . 22 October 1965. · retrieved 2026-09-03 · rev 1373115449
Cite this reference
MLA "van Wijngaarden, Adriaan. Orthogonal Design and Description of a Formal Language: MR76 . 22 October 1965." van Wijngaarden, Adriaan. 2026-09-03. https://en.wikipedia.org/w/index.php?oldid=1373115449. Accessed 01 December 2026.
Chicago "van Wijngaarden, Adriaan. Orthogonal Design and Description of a Formal Language: MR76 . 22 October 1965." van Wijngaarden, Adriaan. 2026-09-03. https://en.wikipedia.org/w/index.php?oldid=1373115449.
APA van Wijngaarden, Adriaan. (2026). van Wijngaarden, Adriaan. Orthogonal Design and Description of a Formal Language: MR76 . 22 October 1965. Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1373115449
Cite this article
MLA
"ALGOL W." encyclopegia.org, 2026, https://encyclopegia.org/wiki/algol-w. Accessed 01 December 2026.
Chicago
"ALGOL W." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/algol-w.
APA
encyclopegia.org. (2026). ALGOL W. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/algol-w
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON