Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

RLisp is a Lisp dialect naturally embedded in Ruby

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 benchmarks
Octocat-spinner-32 debian
Octocat-spinner-32 doc
Octocat-spinner-32 examples
Octocat-spinner-32 shebang
Octocat-spinner-32 src
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 COPYING
Octocat-spinner-32 README.md
Octocat-spinner-32 RLisp.spec
Octocat-spinner-32 Rakefile
README.md

rlisp

RLisp is a Lisp dialect naturally embedded in Ruby

Usage

Tests in tests/ and examples in examples/ are about the only documentation. You can also check rlisp-related posts on my blog at http://t-a-w.blogspot.com/search/label/rlisp but they might not necessarily be up to date.

For interactive environment use:

$ ./src/rlisp.rb
rlisp> (+ 2 2)
4
rlisp> ^D
$

For running things use:

$ ./src/rlisp.rb tests/fib.rl
(1 2 3 5 8)
$

You can write RLisp one-liners with -e:

$ ./src/rlisp.rb -e '(print (+ 2 40))'
42
$

or with -i -e to print all evaluated expressions:

$ ./src/rlisp.rb -ie '(+ 2 40)'
42
$

Enjoy :-)

Sources

Except for benchmarks/ruby/, the code was written by Tomasz Wegrzanowski Tomasz.Wegrzanowski@gmail.com

The code is available under MIT-like Licence (see doc/COPYING).

Something went wrong with that request. Please try again.