There were three things going wrong there:
- uLisp makes any variable starting with ‘:’ evaluate to itself, so:
> :integer
:integer
I’m not sure why yours is evaluating to 0, but perhaps you can fix it with defvar.
- The correct command to compile your fib function is:
(compile 'fib)
- In the version of the RISC-V compiler on the website I had inadvertently called the compile function “compiler”. I’ve fixed it now (or you can just type compiler).
Then it should work!