Raven’s installation instructions are straightforward. However, on macOS Catalina, I had to use
sudo when making a copy of the Chez Scheme compiler, i.e.,
sudo cp chez scheme.
When starting a new project,
raven init will prompt you to provide the content to populate a
package.sc1 file with the metadata for your project.
raven init also creates a
lib folder for housing the packages you install in your project with
raven install PACKAGENAME. It is not necessary to run
raven init first.
raven install PACKAGENAME will also create a
lib folder and
package.sc file that you can then edit with your favorite text editor.
chez-stats itself has no dependencies, but the tests depend on the
srfi package (
srfi 64) and
chez-stats. Thus, the test folder is a separate project within the
chez-stats repository with its own
package.sc file.2 From within the tests folder, you can run
raven install, which will read
package.sc and create the
lib folder with the dependencies installed. Then
raven run tests.ss will run the tests.3
I’ve only covered basic Raven functionality. See the documentation to learn about the full capabilities.
If you add
.gitattributesfor a repository, then GitHub will associate your
.scfiles as Scheme, not Scala, files.↩︎
Alternatively, you could run the tests with
chez tests.ss --libdirs "./lib:".↩︎