Crates.io | clover |
lib.rs | clover |
version | 0.1.3 |
source | src |
created_at | 2020-10-04 13:43:31.134818 |
updated_at | 2022-07-16 14:27:52.130389 |
description | A scripting language. |
homepage | |
repository | https://github.com/ippan/clover |
max_upload_size | |
id | 296032 |
size | 168,881 |
a scripting language created in Rust
still in development~
You can go to examples directory for more examples
function main()
print("hello world!")
end
rectangle.luck
public model Rectangle
width
height
end
implement Rectangle
function area(this)
this.width * this.height
end
end
main.luck
include Rectangle from "./rectangle.luck"
function main()
local rect = Rectangle(20, 30)
print(rect.area())
end
Use 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-cli
clover examples/main.luck