Compiler for "Easy" language from "Etudes for Programmers" book (1978)
1–10 of 10 posts
Re: Compiler for "Easy" language from "Etudes for Programmers" book (1978)
#2Re: Compiler for "Easy" language from "Etudes for Programmers" book (1978)
#3I was assuming it's something similar to PL/0 but the grammar looks quite extensive...
You can probably straightforwardly translate it to Golang by running through a C preprocessor with an obvious set of macros.
Re: Compiler for "Easy" language from "Etudes for Programmers" book (1978)
#4The semicolons are like C.
The "PROGRAM" section is like COBOL.
Re: Compiler for "Easy" language from "Etudes for Programmers" book (1978)
#5Re: Compiler for "Easy" language from "Etudes for Programmers" book (1978)
#6The "FI" for "endif" is like bash. The semicolons are like C. The "PROGRAM" section is like COBOL.
Semicolons were widely used as statement separators in Algol-family languages, but in Easy they seem to be statement terminators, so they are apparently like C rather than like earlier Algol-family languages such as Pascal.
Pascal also had the "program" thing. I'm not sure if earlier Algol languages did?
Re: Compiler for "Easy" language from "Etudes for Programmers" book (1978)
#7The Etudes book is considered a classic, especially among FSU programmers-the book was licensed for a small amount, translated into Russian and used in many classrooms.
Re: Compiler for "Easy" language from "Etudes for Programmers" book (1978)
#8The "FI" for "endif" is like bash. The semicolons are like C. The "PROGRAM" section is like COBOL.
The "fi" thing arose during the Algol-68 process, which Steve Bourne participated in, which is why he put it in his shell. (He would have put "od" there too to terminate "do" if it wasn't already used for a hexdumper.) You also find it in, for example, Dijkstra's Discipline of Programming . Semicolons were widely used as statement separators in Algol-family languages, but in Easy they seem to be statement terminators…
Re: Compiler for "Easy" language from "Etudes for Programmers" book (1978)
#9Earlier quoted context omitted.
The "fi" thing arose during the Algol-68 process, which Steve Bourne participated in, which is why he put it in his shell. (He would have put "od" there too to terminate "do" if it wasn't already used for a hexdumper.) You also find it in, for example, Dijkstra's Discipline of Programming . Semicolons were widely used as statement separators in Algol-family languages, but in Easy they seem to be statement terminators…
COBOL precedes Pascal.
Re: Compiler for "Easy" language from "Etudes for Programmers" book (1978)
#10The "FI" for "endif" is like bash. The semicolons are like C. The "PROGRAM" section is like COBOL.
(From the Bourne Shell source): https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh...