Skip to content
A JavaScript implementation for the Rubinius VM
Ruby JavaScript
Latest commit d47f4b1 Mar 19, 2011 @matthewd Simplify attribute handling.
Trade flexibility for speed... for now.
Failed to load latest commit information.
bin Start converting to a Citrus parser. Jan 14, 2011
config
eg Start converting to a Citrus parser. Jan 14, 2011
lib Simplify attribute handling. Mar 19, 2011
.gitignore Initial commit Dec 8, 2010
Gemfile
LICENSE
README.markdown Initial commit Dec 8, 2010
Rakefile
capuchin.gemspec

README.markdown

Capuchin

A JavaScript implementation, running on the Rubinius VM.

Usage

Given eg/nest.js:

function a(n) {
  n = n + 4;
  function b(n) {
     n = n + 5;
     return n * 2;
  }
  return n + b(7);
}

print(a(3));

Run:

bin/capuchin eg/nest.js

And you'll see:

(Loads of debug information that I haven't turned off yet, and...)
31

(Which isn't very exciting, but is correct, and demonstrates that the inner n parameter correctly shadows the outer.)

Alternatively, run something more interesting, and then fix whatever breaks.

Something went wrong with that request. Please try again.