Malady is an implementation of mal that compiles to Rubinius bytecode.
$ gem install malady
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>
Malady requires Rubinius.
Install dependencies with bundle
$ bundle install
To run tests, use rspec
$ rspec
- Data structures
- Lists
- Hashes
- Symbols
- Macros
- Import mal's test cases
Bug reports and pull requests are welcome on GitHub at https://github.com/jsyeo/malady.
Inspired by lani, a programming language in Rubinius.
The gem is available as open source under the terms of the MIT License.