Joy
Joy copied to clipboard
Manfred von Thun's Programming Language Joy
Joy
| Build | Linux | Windows | Coverity |
|---|---|---|---|
| status |
This is the NOBDW version of Joy1. Joy is a decent language and needs a ditto presentation. The original version can be seen here.
Changes
Some changes were done that make ~the build environment~ me happy. One new thing is a portable makefile, following this advice. There is something different in these sources compared to the ones that can be downloaded from the archived original and that is the comments at the start of main.c and of interp.c. Manfred von Thun really wanted those comments in main.c, but the newsgroup did not allow attachments, so it was never published. As for the comments in interp.c, I added them because I like some version history. It proves that the language and the implementation was not done over night. In fact, according to this interview the implementation in C was started in 1995.
Build instructions
mkdir build
cd build
cmake ..
cmake --build .
cp ../lib/usrlib.joy ~
mkdir ~/usrlib
cp ../lib/* ~/usrlib
Then manually change the path to inilib.joy in ~/usrlib.joy from "../lib" to "usrlib".
Build with MSVC
mkdir build
cd build
cmake ..
cmake --build . --config Release
copy Release\joy.exe
copy ..\lib\usrlib.joy %USERPROFILE%
mkdir %USERPROFILE%\usrlib
copy ..\lib\*.* %USERPROFILE%\usrlib
Then manually change the path to inilib.joy in %USERPROFILE%\usrlib.joy from "../lib" to "usrlib".
Running
joy -h
gives an overview of available options.
Testing
cd ../test2
for i in *.joy
do
../build/joy $i >$i.out
done
grep -l false *.out
There are some false positives. The test files assume that usrlib.joy was included successfully.
See also
| Implementation | Dependencies |
|---|---|
| 42minjoy | |
| joy0 | |
| joy1 | BDW garbage collector |
| Foy | BDW garbage collector |
| Moy | BDW garbage collector and Lex & Yacc |
| Documentation |
|---|
| Legacy Docs |
| User Manual |