Project

malady

0.0
No commit activity in last 3 years
No release in over 3 years
An implementation of lisp that compiles to rubinius bytecode.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.10
~> 10.0
 Project Readme

Malady Build Status

Malady is an implementation of mal that compiles to Rubinius bytecode.

Installation

$ gem install malady

Usage

Use the malady binary provided in the bin directory to start the malady repl.

$ malady
malady> (+ 42 88)
130
malady> (def! fib (fn* [x]
          (if (< x 2)
              1
              (+ (fib (- x 1)) (fib (- x 2))))))
#<Rubinius::BlockEnvironment:0x30ac>
malady> (fib 8)
34
malady>

Development

Malady requires Rubinius.

Install dependencies with bundle

$ bundle install

To run tests, use rspec

$ rspec

To Do:

  • Data structures
    • Lists
    • Hashes
    • Symbols
  • Macros
  • Import mal's test cases

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jsyeo/malady.

Credits

Inspired by lani, a programming language in Rubinius.

License

The gem is available as open source under the terms of the MIT License.