Компилятор Simula 67
2023-03-19 20:05![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Отрихтовал компилятор Simula 67: https://github.com/sergev/simula-compiler
Теперь легко собирается и устанавливается на маке или линуксе. Выглядит так:
Теперь легко собирается и устанавливается на маке или линуксе. Выглядит так:
В папке examples есть несколько примеров. Запускаем простейший hello world:git clone https://github.com/sergev/simula-compiler.git
cd simula-compiler
cmake -Bbuild
make -Cbuild install
Документация по языку Simula 67:$ cd examples
$ cat hello.sim
begin
outtext("Hello, World!");
end;
$ gnucim hello.sim
Compiling hello.sim:
gcc -g -O2 -Wno-unsequenced -c hello.c
gcc -g -O2 -o hello hello.o -L/usr/local/lib -lcim
$ ./hello
Hello, World!
- Статья "Introduction To OOP In Simula" от J.Sklenar
- Книга "An Introduction to Programming in Simula" от Rob Pooley
- Она же в формате PDF
no subject
Date: 2023-03-20 07:34 (UTC)Рехнуться можно, и Симула теперь! Поздравляю.
no subject
Date: 2023-03-20 18:50 (UTC)https://amturing.acm.org/award_winners/nygaard_5916220.cfm
https://amturing.acm.org/award_winners/dahl_6917600.cfm