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
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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