You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
@JeNeSuisPasDave
That's because picrin is R7RS implementation. Unlike R5RS, R7RS scheme separates functions into libraries and you need to explicitly import them. To run your example, put import like below,
(scheme base) is the basis library and (scheme write) is a IO library. This is R7RS way.
However, if you want to learn R5RS scheme, you can use (scheme r5rs) library, which is compat library to R5RS scheme,
This simple example from Teach Yourself Scheme in Fixnum Days does not work.
If I put the code in a "hello.scm" file and run
picrin hello.scm
I get this:If I type the code into the REPL, I get this:
Yep, I'm trying to learn Scheme. Perhaps picrin isn't the best tool for that ...
The text was updated successfully, but these errors were encountered: