Muddy Scheme is an implementation of the Scheme language in Tcl.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE
README.md
ReadChar.tcl
TODO
clean
debug.scm
muddy.tcl
prof
test.scm
test.tcl

README.md

Introduction

Muddy Scheme is an implementation of the Scheme language in Tcl.

This interpreter tries to follow the awesome "Scheme from Scratch" articles written by Peter Michaux.

Requeriments

Muddy Scheme needs Tcl8.6 and tcllib (struct::stack)

Example of use

$ muddy.tcl
Welcome to Muddy Scheme, Copyright (c) 2010 Franciso José Marín Pérez
Use ctrl-c to exit.

> #t
#t
> -123
123
> #\c
#\c
> "asdf"
"asdf"
> (quote ())
()
> (quote (0 . 1))
(0 . 1)
> (quote (0 1 2 3))
(0 1 2 3)
> (quote asdf)
asdf
> (define a 1)
ok
> a
1
> (sert a 2)
ok
> a
2
> (if #t 1 2)
1
> (+ 1 2 3)
6
> + 
#<primitive>
>^c
$