{"id":15907989,"url":"https://github.com/ippan/clover","last_synced_at":"2025-10-17T14:44:26.051Z","repository":{"id":15361163,"uuid":"18092130","full_name":"ippan/clover","owner":"ippan","description":"a scripting language created in Rust~","archived":false,"fork":false,"pushed_at":"2022-07-24T09:09:29.000Z","size":316,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T04:46:42.184Z","etag":null,"topics":["clover","language","rust","rust-lang","script","scripting-language"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ippan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-25T07:26:14.000Z","updated_at":"2023-09-08T21:44:37.000Z","dependencies_parsed_at":"2022-07-20T21:32:16.449Z","dependency_job_id":null,"html_url":"https://github.com/ippan/clover","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ippan%2Fclover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ippan%2Fclover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ippan%2Fclover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ippan%2Fclover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ippan","download_url":"https://codeload.github.com/ippan/clover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244874391,"owners_count":20524577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clover","language","rust","rust-lang","script","scripting-language"],"created_at":"2024-10-06T14:08:35.264Z","updated_at":"2025-10-17T14:44:21.016Z","avatar_url":"https://github.com/ippan.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clover\n\n| clover | clover-std | clover-cli |\n| ----------- | ------- | ----------- |\n| [![crates.io](https://img.shields.io/crates/v/clover.svg)](https://crates.io/crates/clover) | [![crates.io](https://img.shields.io/crates/v/clover-std.svg)](https://crates.io/crates/clover-std)  | [![crates.io](https://img.shields.io/crates/v/clover-cli.svg)](https://crates.io/crates/clover-cli)  |\n\n[![CI](https://github.com/ippan/clover/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/ippan/clover/actions/workflows/build_and_test.yml)\n![Crates.io](https://img.shields.io/crates/l/clover)\n\na scripting language created in Rust\n\nstill in development~\n\n## Features\n* bytecode\n* first class function\n* error handling\n\n## Example\n\nYou can go to [examples](https://github.com/ippan/clover/tree/master/examples) directory for more examples\n\n### Hello World\n\n```ruby\nfunction main()\n    print(\"hello world!\")\nend\n```\n\n### Include other file\n\nrectangle.luck\n```ruby\npublic model Rectangle\n    width\n    height\nend\n\nimplement Rectangle\n    function area(this)\n        this.width * this.height\n    end\nend\n```\n\nmain.luck\n```ruby\ninclude Rectangle from \"./rectangle.luck\"\n\nfunction main()\n    local rect = Rectangle(20, 30)\n    print(rect.area())\nend\n```\n\n## Editor support\n\n### Visual Studio Code\n\nUse [Clover VSCode Support](https://github.com/ippan/vscode-clover) for code highlighting in [Visual Studio Code](https://code.visualstudio.com/)\n\n## Integrate to your project\n\n### Example\n\n```rust\nlet result = create_state_by_filename(\"example/main.luck\");\n\nmatch result {\n  Ok(mut state) =\u003e {\n    state.execute();\n  }\n}\n```\n\n### Export native function/struct to Clover\n\nsee [clover-std](https://github.com/ippan/clover/tree/master/crates/clover-std) \n\n## CLI\n\n### Install\n\nuse [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) to install the clover-cli\n\n```shell\ncargo install clover-cli\n```\n\n### Usage\n\n```shell\nclover examples/main.luck\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fippan%2Fclover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fippan%2Fclover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fippan%2Fclover/lists"}