{"id":24594609,"url":"https://github.com/vwh/crust","last_synced_at":"2025-04-30T13:11:15.227Z","repository":{"id":273879232,"uuid":"913680990","full_name":"vwh/Crust","owner":"vwh","description":"Simple toy scripting language","archived":false,"fork":false,"pushed_at":"2025-01-23T13:32:30.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T14:29:01.062Z","etag":null,"topics":["language-design","programing-language","scripting-language"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/vwh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-08T06:39:11.000Z","updated_at":"2025-01-23T13:32:33.000Z","dependencies_parsed_at":"2025-01-23T14:39:19.268Z","dependency_job_id":null,"html_url":"https://github.com/vwh/Crust","commit_stats":null,"previous_names":["vwh/crust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vwh%2FCrust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vwh%2FCrust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vwh%2FCrust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vwh%2FCrust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vwh","download_url":"https://codeload.github.com/vwh/Crust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235426461,"owners_count":18988420,"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":["language-design","programing-language","scripting-language"],"created_at":"2025-01-24T11:15:37.866Z","updated_at":"2025-04-30T13:11:15.220Z","avatar_url":"https://github.com/vwh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crust scripting language\n\nCrust Simple toy scripting language, JavaScript-like programming language.\n\n## Features\n\n### Currently Implemented\n\n- Variables and Constants (`set` and `keep`)\n- Functions and closures with lexical scoping\n- Control Flow (`if`, `elif`, `else`, `while`)\n- Break and Continue statements\n- Basic Data Types\n  - Numbers ( Integers and Floating Points )\n  - Strings\n  - Booleans\n  - Null\n  - Objects\n  - Arrays\n- Operators\n  - Arithmetic (`+`, `-`, `*`, `/`, `%`, `**`, `//`)\n  - Comparison (`==`, `!=`, `\u003c`, `\u003e`, `\u003c=`, `\u003e=`)\n  - Compound Assignment (`+=`, `-=`, `*=`, `/=`, `%=`, `**=`, `//=`)\n  - Logical (`\u0026\u0026`, `!!`)\n  - Unary (`!`, `-`, `+`)\n- Exceptions handling with (`try`, `catch`, `throw`)\n- Native Functions Support\n- Standard Library\n\n### Code Examples\n\n```crust\n# Variables\nset x = 10\nkeep PI = Math.PI\n\n# Functions\nfn add(x, y) {\n  return x + y\n}\n\n# Objects\nset person = {\n  name: \"John\",\n  age: 30\n}\n\n# Control flow\nif x \u003e 5 {\n  output(\"x is greater than 5\")\n} elif x \u003c 5 {\n  output(\"x is less than 5\")\n} else {\n  output(\"x is equal to 5\")\n}\n\n# While loops\nwhile x \u003e 0 {\n  x = x - 1\n  if x == 5 {\n    continue\n  }\n  output(x)\n}\n```\n\n## TODO List\n\n- [x] Comments\n- [x] Float numbers\n- [x] Arrays with proper array methods\n- [x] String methods and operations\n- [x] For loops\n- [x] Error handling\n- [ ] Module/import system\n- [x] Implement standard library\n- [ ] Template strings\n- [ ] Add async/await support\n- [ ] JavaScript block\n- [ ] Optimization\n- [ ] Documentation and Web Playground\n- [x] VSCode extension for syntax highlighting\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvwh%2Fcrust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvwh%2Fcrust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvwh%2Fcrust/lists"}