{"id":16743288,"url":"https://github.com/abiriadev/dyn","last_synced_at":"2025-07-24T07:39:47.849Z","repository":{"id":203223167,"uuid":"705541858","full_name":"abiriadev/dyn","owner":"abiriadev","description":"Highly dynamic and powerful scripting language","archived":false,"fork":false,"pushed_at":"2024-12-04T18:36:57.000Z","size":713,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T03:32:33.062Z","etag":null,"topics":["programming-language","scripting-language"],"latest_commit_sha":null,"homepage":"https://abiriadev.github.io/dyn/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abiriadev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-16T08:08:19.000Z","updated_at":"2024-10-04T11:28:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"da8acda4-37f2-4043-a932-24b1af1fe3a6","html_url":"https://github.com/abiriadev/dyn","commit_stats":null,"previous_names":["abiriadev/dyn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abiriadev/dyn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiriadev%2Fdyn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiriadev%2Fdyn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiriadev%2Fdyn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiriadev%2Fdyn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abiriadev","download_url":"https://codeload.github.com/abiriadev/dyn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiriadev%2Fdyn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266808556,"owners_count":23987450,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["programming-language","scripting-language"],"created_at":"2024-10-13T01:26:34.526Z","updated_at":"2025-07-24T07:39:47.821Z","avatar_url":"https://github.com/abiriadev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003edyn\u003c/h1\u003e\n\u003cp align=\"center\"\u003eHighly dynamic and powerful scripting language\u003c/p\u003e\n\n## Example\n\n```dyn\nprint(\"Hello, world!\")\n```\n\n## Syntax Overview\n\n### Comments\n\n```dyn\n// single line comment\n\n/* block comment */\n```\n\n### Arithmetics\n\nYou can perform basic arithmetics like addition, subtraction, multiplication, etc.\n\n```dyn\n1 + 2\n5 - 10\n3 * 4\n50 / 7\n36 % 5\n```\n\n### Variable declaration\n\nUse `let` keyword to declare an immutable variable.\n\n```dyn\nlet x = 5\nlet y = x + 10\nprint(y) // 15\n```\n\nYou can add `!` to make the variable mutable.\n\n```dyn\nlet! a = 0\na = 5\nprint(a) // 5\na += 2\nprint(a) // 7\n```\n\n### Conditional statements\n\nUse `if` expression to execute a block based on conditions.\n\n```dyn\nlet x = 10\nif x \u003e 5 {\n\tprint(\"x is greater than 5\")\n}\n```\n\nYou can use `else` to handle the other case.\n\n```dyn\nlet today = \"Monday\"\nif today == \"Saturday\" || today == \"Sunday\" {\n\tprint(\"It's weekend!\")\n} else {\n    print(\"It's weekday :(\")\n}\n```\n\n### Loop\n\nUse `iter` and `of` keywords to iterate over an array.\n\n```dyn\nlet friends = [\n\t\"abiria\"\n\t\"andjsrk\"\n\t\"kangjun\"\n\t\"ensuta\"\n]\n\niter friends of person {\n\tprint(\"Hello, \" + person + \"!\")\n}\n```\n\n## Build\n\n```sh\n$ git clone https://github.com/abiriadev/dyn \u0026\u0026 cd dyn\n$ cargo install --path ./crates/cli\n```\n\n### Run REPL\n\n```sh\n$ dyn\n# if you want to execute a script, pass the file path as an argument\n$ dyn ./examples/hello.dyn\n```\n\n## TODO\n\n-   [x] REPL\n-   [x] Closure\n-   [ ] LSP\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabiriadev%2Fdyn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabiriadev%2Fdyn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabiriadev%2Fdyn/lists"}