Crafting Interpreters in Nim
nimble build
to compile and then run the resulting binary
File: hello.craft
class Hello {
greet() {
print "hello";
}
}
var h = Hello();
h.greet();
crafty hello.craft
=> hello
nimble build
to compile and then run the resulting binary
File: hello.craft
class Hello {
greet() {
print "hello";
}
}
var h = Hello();
h.greet();
crafty hello.craft
=> hello