3 ms·
> ...Since Florian actually got it working, my instinct is to just import Florian's version into git. Does that seem reasonable? Bringing the original code to
by zoomablemind 5y ago
> ...Since Florian actually got it working, my instinct is to just import Florian's version into git. Does that seem reasonable?
Bringing the original code to a runnable state is fairly straightforward using the latest gcc with mostly default options. Either with or without -Wstringop-overflow=0 (to take care of the string type design). Just the three funky lvalue decrements need to be untangled. Well, and the newlines added in the help.c
However, getting the resulting interpreter to pass the available tests (make test) could be a challenge. Not sure if anyone interested got these tests pass fully, which are mainly array and hash tests. It'd be helpful to have the included examples also run properly.
This may need either a code review or in-depth debugging to figure out the problems. Before embarking on extensive cleanup, modernization, porting to other platforms.