{"id":15435421,"url":"https://github.com/neuodev/mybash","last_synced_at":"2026-02-27T19:08:15.396Z","repository":{"id":59203248,"uuid":"534547252","full_name":"neuodev/mybash","owner":"neuodev","description":"A very minimalistic programming language built with Rust","archived":false,"fork":false,"pushed_at":"2022-09-27T18:08:29.000Z","size":100,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T02:48:49.252Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/neuodev.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}},"created_at":"2022-09-09T07:41:19.000Z","updated_at":"2023-05-05T20:54:15.000Z","dependencies_parsed_at":"2023-01-18T20:23:45.459Z","dependency_job_id":null,"html_url":"https://github.com/neuodev/mybash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuodev%2Fmybash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuodev%2Fmybash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuodev%2Fmybash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuodev%2Fmybash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neuodev","download_url":"https://codeload.github.com/neuodev/mybash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978277,"owners_count":20703678,"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":[],"created_at":"2024-10-01T18:44:15.496Z","updated_at":"2026-02-27T19:08:10.378Z","avatar_url":"https://github.com/neuodev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyBash\n\nA very minimalistic programming language built with Rust\n\n\u003cp align=\"center\"\u003e \n    \u003cimg src=\"./mybash.png\" alt=\"My Bash\" title=\"My Bash\"\u003e\n\u003c/p\u003e\n\n## Example\n\n```bash\n# mybash ./foo.mb bar baz\n# This is a comment\n# If statments and exper evaluation\nif $1 = \"bar\"\ndo echo \"I got bar\"\nelse\ndo echo \"I got baz\"\nendif\n\n# Variables\nname: str = \"Jone\"\nage: int = 31\nis_awesome: bool = true\nmath_expr = 12 / 2 + 1 # 7\necho math_expr\n```\n\n## Examples\n\n\u003cdetails\u003e\n\u003csummary\u003eVariable declaration with basic if statment\u003c/summary\u003e\n\n```bash\n# mybash script.mb\n\nage: int = 30\necho age\nif age \u003e 40\ndo echo \"I am old\"\nelse\ndo echo \"I am still young\"\nendif\n```\n\n#### Output\n\n```bash\n30\nI am still young\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eAccess positional arguments and echo it to the stdout\u003c/summary\u003e\n\n```bash\n# mybash script_5.mb me\necho $1\n\nif $1 == 'me'\ndo echo \"Hello, Ahmed\"\nelse\ndo echo \"Hi, :) ${1} ✋\"\nendif\n```\n\n#### Output\n\n```bash\nAhmed\nHi, :) Ahmed ✋\n```\n\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003eAccess evn variables (with comments)\u003c/summary\u003e\n\n```bash\n# Echo env variables to the stdout\n# example: mybash ./sript_6.mb foo bar baz\necho $PATH\necho $PWD # Current working directory\n\necho $0  # Should display the script name  (script_6.mb)\necho $1  # Should display the first arg (foo)\necho $2  # Should display the second arg (bar)\n\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eEvaluate math expressions and echo it to the stdout\u003c/summary\u003e\n\n```bash\nres: int = (12 + 12) / 4\necho \"(12 + 12) / 4 ⏬\"\necho res\n```\n\n#### Output\n\n```bash\n(12 + 12) / 4 ⏬\n6\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eVariable expansion with echo statments\u003c/summary\u003e\n\n```bash\nname: str = \"Jone\"\n\necho \"Hello, $name 🙌\"\n\necho \"PATH = ${PATH}\"\necho \"HOME = $HOME\"\necho \"PWD = $PWD\"\necho \"HOSTNAME = $HOSTNAME\"\necho \"HOSTTYPE = $HOSTTYPE\"\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eVariable concatenation\u003c/summary\u003e\n\n```bash\nf_name: str = \"Jone\"\nl_name: str = \"doe\"\n\nfull_name: str = \"${f_name} ${l_name}\"\n\necho \"My full name is $full_name\"\n```\n\n#### Output\n\n```bash\nMy full name is Jone doe\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eRead stdin\u003c/summary\u003e\n\n```bash\nname: string = input(\"What is your name? \")\nage: string = input(\"What is your age? \")\naddr: string = input(\"What is your address? \")\n\necho \"My name is $name\"\necho \"My age is $age\"\necho \"I live in $addr\"\n```\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneuodev%2Fmybash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneuodev%2Fmybash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneuodev%2Fmybash/lists"}