0.0
No commit activity in last 3 years
No release in over 3 years
Simple Ruby interpreter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

UbyInterpreter

Ruby-like interpreter implementation.

Based on a talk by Ryan Davis.

Features

  • Basic numeric types, true, false, strings, arrays, hashes and nil
  • Conditional branching and looping
  • Primitive and user defined functions
  • Local variables and variable scoping
  • Test-driven, extensible, patterns-based design
  • ~130 LOC for implementation, ~70 LOC for tests
  • Fits in one head

Installation

Add this line to your application's Gemfile:

gem 'uby_interpreter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install uby_interpreter

Usage

Comes with executable.

Run a file with

$ uby /path/to/your/file

Or simply run

$ ./bin/uby example.rb

to see what this little fellow can do!

Running tests

$ rake

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request