Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (22 sloc) 0.594 kb
387feed @matthewd Initial commit
authored
1 # Capuchin
2
3 A JavaScript implementation, running on the Rubinius VM.
4
5
6 ## Usage
7
8 Given `eg/nest.js`:
9
10 function a(n) {
11 n = n + 4;
12 function b(n) {
13 n = n + 5;
14 return n * 2;
15 }
16 return n + b(7);
17 }
18
19 print(a(3));
20
21 Run:
22
23 bin/capuchin eg/nest.js
24
25 And you'll see:
26
27 (Loads of debug information that I haven't turned off yet, and...)
28 31
29
30 (Which isn't very exciting, but is correct, and demonstrates that the
31 inner `n` parameter correctly shadows the outer.)
32
33 Alternatively, run something more interesting, and then fix whatever
34 breaks.
35
Something went wrong with that request. Please try again.