vak: (Default)
[personal profile] vak
Отрихтовал компилятор Simula 67: https://github.com/sergev/simula-compiler

Теперь легко собирается и устанавливается на маке или линуксе. Выглядит так:
git clone https://github.com/sergev/simula-compiler.git
cd simula-compiler
cmake -Bbuild
make -Cbuild install
В папке examples есть несколько примеров. Запускаем простейший hello world:
$ 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!
Документация по языку Simula 67: