{"id":50213931,"url":"https://github.com/czajkub/bush","last_synced_at":"2026-05-26T07:04:00.465Z","repository":{"id":349971807,"uuid":"1198295178","full_name":"czajkub/bush","owner":"czajkub","description":"Bash Upgraded SHell - interpreted scripting language serving as an alternative to bash.","archived":false,"fork":false,"pushed_at":"2026-05-03T21:38:44.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-03T23:29:07.910Z","etag":null,"topics":["bash","interpreted-programming-language","language","scripting-language"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/czajkub.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-01T09:38:59.000Z","updated_at":"2026-04-15T10:41:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/czajkub/bush","commit_stats":null,"previous_names":["czajkub/bush"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/czajkub/bush","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czajkub%2Fbush","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czajkub%2Fbush/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czajkub%2Fbush/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czajkub%2Fbush/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czajkub","download_url":"https://codeload.github.com/czajkub/bush/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czajkub%2Fbush/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33508318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T03:12:49.672Z","status":"ssl_error","status_checked_at":"2026-05-26T03:12:47.976Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","interpreted-programming-language","language","scripting-language"],"created_at":"2026-05-26T07:03:58.987Z","updated_at":"2026-05-26T07:04:00.453Z","avatar_url":"https://github.com/czajkub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bush\n\nBash Upgraded SHell\n\n- **Goal:** improve the existing bash shell by removing arcane syntax conventions and simplifying syntax\n- **Language:** Zig\n- **Parser Generator:** Tree-sitter\n\n## Authors\n\n- Jakub Czajka \u003cczajkub@student.agh.edu.pl\u003e\n- Jakub Czyż \u003cjczyz@student.agh.edu.pl\u003e\n\n## Example program\n\n```\n// Operator precedence\n$counter = 1 || 2 \u0026\u0026 3 == 4 + 5 * -(6 + 7)\n\n// function declaration\nfunction add($a, $b) {\n    return $a + $b\n}\n\n// loop\nwhile $counter \u003c 10 {\n    // piped command with redirects\n    cat test | cat \u003e res.txt | cat \u0026\u003e res2.txt\n\n    // function call\n    $counter = $counter + $(add 1 2)\n}\n\n$a = 10\n$b = 20\n$c = $a + $b * 2\n\n$is_equal = $a == 10\n$is_greater = $b \u003e $a\n\n$sum = add($a, $b)\n\n$EXPORT_TEST = 12345\n\necho $EXPORT_TEST\n\n```\n\n## Development\n\n### Prerequisites\n\n- [Zig](https://ziglang.org/) (tested with 0.15.2, notoriously very unstable :P)\n- [Node.js \u0026 npm](https://nodejs.org/)\n- [Tree-sitter CLI](https://tree-sitter.github.io/tree-sitter/creating-parsers#installation)\n- `libtree-sitter` (system library)\n\n### Generate Parser\n\nTo generate the C parser from `grammar.js`, use the Tree-sitter CLI. You can run it via `npm` (if dependencies are installed) or directly:\n\n```bash\n# Using npm script\nnpm run gen\n\n# Using npx (uses the tree-sitter-cli package)\nnpx tree-sitter-cli generate -o tree-sitter-config\n\n# Using global tree-sitter CLI\ntree-sitter generate -o tree-sitter-config\n```\n\nThe `-o tree-sitter-config` flag is required to keep the generated code separated from the Zig source.\n\n### Build \u0026 Run\n\nTo build the library and run the example application:\n\n```bash\n# using npm script\nnpm run bush test.bush\n\n# using zig directly (-- is for passing arguments)\nzig build run -- test.bush\n```\n\n### Run Tests\n\n```bash\nzig build test\n```\n\n## Documentation\n\n- [Language Tokens](docs/TOKENS.md)\n- [Grammar Rules](docs/GRAMMAR.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczajkub%2Fbush","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczajkub%2Fbush","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczajkub%2Fbush/lists"}