Skip to content
vic

taw/rlisp

RLisp is a Lisp dialect naturally embedded in Ruby

taw/rlisp.json
{
"createdAt": "2012-06-29T17:28:28Z",
"defaultBranch": "master",
"description": "RLisp is a Lisp dialect naturally embedded in Ruby",
"fullName": "taw/rlisp",
"homepage": null,
"language": "Ruby",
"name": "rlisp",
"pushedAt": "2023-08-24T08:55:03Z",
"stargazersCount": 19,
"topics": [],
"updatedAt": "2024-07-29T23:12:01Z",
"url": "https://github.com/taw/rlisp"
}

RLisp is a Lisp dialect naturally embedded in Ruby

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 :-)

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).