Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A JavaScript implementation for the Rubinius VM

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 config
Octocat-spinner-32 eg
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.