Skip to content

Releases: ElisStaaf/myscheme

MyScheme 1.0.0

03 Jan 11:15
Compare
Choose a tag to compare

Welcome to MyScheme! The Scheme interpreter that works when it wants to! It's written in fairly basic C++ and has both ability
to read from stdin, but also from a file! E.g you can both start the REPL:

myscm

And run a file:

myscm <file>

It also includes a debug mode activated by using the -d flag!

Examples

"Hello World!":

(define msg "Hello World!")
(write msg)

Functions, my beloved!:

(define (facto n)
    (if (integer? n)
        (if (eq? n 1)
            1 
            n * facto(n - 1))
    "null"))

(write (int->str (facto 5)) ; "120"

You can find more examples here.

Install

git clone https://github.com/ElisStaaf/myscheme scm
cd scm
sudo make

Full Changelog: "Initial commit"..1.0.0