Skip to content

randym/mruby-avl

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

#mruby-Avl#

A sensible Avl Tree implementation for mruby. - which means you should be sensible when you use it!

Fast Food

  1. First - get your self some mruby. It tastes great!
git clone git https://github.com/mruby/mruby.git

1.2. Read the recipie and start your preparations.

cd mruby
less INSTALL
ruby minirake all test

1.3. Have a taste!

./bin/mruby -e 'p "Hello mruby!!"'

(For the sake of convenience, you might want to add mruby/bin to your path)

  1. Grab some greens
cd ..
git clone git https://github.com/randym/mruby-avl

2.1 Add the greens to your dish.

vim mruby/build_config.rb

...

# Use AvlTree class
conf.gem "~/mruby-avl"

(Note, I used ~ there because I cloned mruby-avl to my home directory so be sure to season to taste.)

  1. Finish the presentation.
cd mruby
ruby minirake clean all test
  1. Enjoy your meal!
mirb
tree = AvlTree.new
tree.insert 'F', 1
tree.insert 'boo', :foo
tree['boo'] => :foo
tree.delete 'F'
# I think you get the flavor!

About

mruby gem providing a sensible avl tree implementation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages