Компилятор 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-21 23:20 (UTC)Попадался такой проект, но он заглох, похоже: https://github.com/RobJTingay/PL1GCC