Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

matthewd/capuchin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A JavaScript implementation for the Rubinius VM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published