Skip to content

Wodan58/Joy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Joy

Build Linux Windows Coverity
status GitHub CI build status AppVeyor CI build status Coverity Scan Build 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 such. 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

cmake --build . --config Release
copy Release\joy.exe

copy ..\lib\usrlib.joy %HOMEPATH%
mkdir %HOMEPATH%\usrlib
copy ..\lib\*.* %HOMEPATH%\usrlib

Then manually change the path to inilib.joy in %HOMEPATH%\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 loaded 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
Comparison (PDF)
Maintenance Manual (PDF)