typescript | KDF9 Algol | official Algol60 | |
---|---|---|---|
'begin' etc | begin | begin | |
>= | ≥ | ≥ | |
<= | &le | &le | |
!= | ≠ | ≠ | |
% | ÷ | ÷ | integer divide |
* | × | × | multiply |
_ | underline for space in a string (i.e. a * in KDF9 paper tape code) | ||
@ | for end message (because it is involved in message) | ||
{} | curly brackets for underlined square ones (Algol60 string quotes). |
the output (on LP0 with the Findlay system or punch.txt with kdf9) is:EAHZZZZ00APU@ _b_e_g_i_n writetext(30, _[Hello _[s_] World!_]); _e_n_d @
It took a while to find out how to do the space, and where did the exclamation mark go? It is not an Algol Basic Symbol, and all such symbols get printed as asterisk. It is all in upper case because KDF9 printers did not do lowercase - nor exclamation marks.RAN/EL/000M01S/000M01S SIZE 11 HELLO WORLD* RAN/EL/000M00S/000M01S