| clover | clover-std | clover-cli |
|---|---|---|
a scripting language created in Rust
still in development~
- bytecode
- first class function
- error handling
You can go to examples directory for more examples
function main()
print("hello world!")
endrectangle.luck
public model Rectangle
width
height
end
implement Rectangle
function area(this)
this.width * this.height
end
endmain.luck
include Rectangle from "./rectangle.luck"
function main()
local rect = Rectangle(20, 30)
print(rect.area())
endUse Clover VSCode Support for code highlighting in Visual Studio Code
let result = create_state_by_filename("example/main.luck");
match result {
Ok(mut state) => {
state.execute();
}
}see clover-std
use Cargo to install the clover-cli
cargo install clover-cliclover examples/main.luck