Scheme Programming/Using a Scheme interpreter

From Wikibooks, open books for an open world
< Scheme Programming
Jump to: navigation, search
← What defines Scheme? Using a Scheme Interpreter A taste of Scheme →

On most Unix machines, 'scm' can be installed. This is a Scheme interpreter which adheres to R5RS very well. At the time of writing, I have no experience with other Scheme interpreters on other operating systems.

To invoke the interpreter, simply type 'scm' at the command line. It is common to write your programs into a text file using Vim or emacs, and then load them in using the 'load command':

$ scm
> (load "myFile.scm")
#<unspecified>
>
Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export