rocks-lang 0.2.2

Rust implementation of Crafting Interpreters' Lox Language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Bound methods have identity equality.
class Foo {
  method() {}
}

var foo = Foo();
var fooMethod = foo.method;

// Same bound method.
print fooMethod == fooMethod; // expect: true

// Different closurizations.
// this is expect false but doesn't work right now
// print foo.method == foo.method; // expect: false