Notes on Terminology Top CommentsStarting Out Contents

Starting Out

A word of warning: if you require fancy graphically oriented development environments, you will be sorely disappointed in the Scam Programming Language. Scam is programming at its simplest: you place code in a file and ask scam to evaluate it. You create Scam programs using your favorite text editor (mine is vim).

Running Scam

In a terminal window, simply type the command:

    scam <fileName>

where <fileName> is replaced by the name of the file contining your Scam program (i.e. Scam source code). You should be rewarded with the output from your Scam program.

For example, create a file named hello.scm. In it, place the line:

    (println "hello, world!")

Save the file and exit. Now run your program:

    $ scam hello.scm
    hello, world!

The $ represents the system prompt.

Scam options

Scam takes a number of options:


display current memory size, then exit

-m NNN

set the memory size to NNN

-s NNN

set the stack size to NNN


display the Scam version number


display a full error trace for an uncaught exception

At this point, you are ready to proceed to next chapter.

Notes on Terminology Top CommentsStarting Out Contents