Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A nearly half-decent scheme-like language.
Scala C VimL Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.ensime
.gitignore
.vimrc
README.md
build.sbt
emitted.c
schemer
schemer.h
test.lisp

README.md

This is a half decent scheme-like programming language. Please do not use it for anything important.

USAGE

./schemer - execute files sequentially ./schemer - read from stdin

Example Code

(define (factorial n)
  (cond ((eq? n 0) 1)
        (else (* n (factorial (- n 1))))))

(factorial 10) ;; Returns 3628800.0

Things that are implemented:

  • define, for both variables and functions
  • if, and cond
  • cons, car, cdr, and cadr
  • quote
  • eq?, true?, false?, not
  • math functions (+, -, *, /)

Notable things that aren't implemented:

  • let
  • Quoting with '(<quoted list>)
  • set! and its derivatives
  • Decent backtraces
  • Loading of external files.
  • Macros
Something went wrong with that request. Please try again.