{"id":15407830,"url":"https://github.com/eliassjogreen/bird","last_synced_at":"2025-10-09T03:16:34.240Z","repository":{"id":109472265,"uuid":"173018027","full_name":"eliassjogreen/Bird","owner":"eliassjogreen","description":"🐦 A programming language written entirely in Microsoft's batch scripting language. Yeah it's stupid","archived":false,"fork":false,"pushed_at":"2019-11-18T17:02:27.000Z","size":96,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-07T15:42:37.797Z","etag":null,"topics":["batch","bird","cmd","compiler","programming-language","scripting-language","windows"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","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/eliassjogreen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-02-28T01:24:42.000Z","updated_at":"2025-09-01T22:40:47.000Z","dependencies_parsed_at":"2023-03-22T04:49:47.392Z","dependency_job_id":null,"html_url":"https://github.com/eliassjogreen/Bird","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"ddde58343985cef3143b7dcc0c707ed11e5f183c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eliassjogreen/Bird","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliassjogreen%2FBird","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliassjogreen%2FBird/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliassjogreen%2FBird/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliassjogreen%2FBird/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eliassjogreen","download_url":"https://codeload.github.com/eliassjogreen/Bird/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliassjogreen%2FBird/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000781,"owners_count":26082911,"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-10-09T02:00:07.460Z","response_time":59,"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":["batch","bird","cmd","compiler","programming-language","scripting-language","windows"],"created_at":"2024-10-01T16:29:51.618Z","updated_at":"2025-10-09T03:16:34.225Z","avatar_url":"https://github.com/eliassjogreen.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./assets/bird_dark.svg\" height=\"250\" align=\"left\"\u003e\u003c/img\u003e\r\n\r\n# Bird\r\n![GitHub](https://img.shields.io/github/license/eliassjogreen/Bird.svg) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/eliassjogreen/Bird.svg)\r\n\u003e **Bird** = **B**atch **i**s **r**eally ba**d**  \r\n\u003e Not that a language written in it is any better \r\n\r\n*Bird* is a toy programming language written entirely in Microsoft's batch scripting language. It adds amazing features such as [functions](examples/Function.bird) and [importing libraries](examples/HelloWorld.bird) like any other programming language at the cost of stuff like arithmetic and if statements.\r\n\r\n## Features\r\n* Functions with parameters\r\n* Importing libraries\r\n* Compilation to batch\r\n\r\n## Examples\r\n### [HelloWorld.bird](examples/HelloWorld.bird):\r\n```\r\nuse Console\r\n\r\ndefine Main\r\n    Console.Println \"Hello World\"\r\nend\r\n\r\n# Prints 'Hello World'\r\n```\r\n### [Function.bird](examples/Function.bird):\r\n```\r\nuse Console String Math \"Library\"\r\n\r\ndefine Main $name\r\n    Console.Println String.Concat \"Hello \" $name\r\n    Console.Println TimesTwo \"16\"\r\n    Library.PrintHello\r\nend\r\n\r\ndefine TimesTwo $1\r\n    $out Math.Mul $1 \"2\"\r\n    return $out\r\nend\r\n\r\n# First prints 'Hello ' + your first command line parameter\r\n# Then prints '32'\r\n# And lastly prints 'Hello'\r\n```\r\n### [Math.bird](examples/Math.bird):\r\n```\r\nuse Console Math\r\n\r\ndefine Main\r\n    Console.Println Math.Add \"1\" \"2\"\r\n    Console.Println Math.Mul \"19\" \"5\"\r\n    Console.Println Math.Sub \"7\" \"3\"\r\n    Console.Println Math.Div \"10\" \"2\"\r\n    Console.Println Math.Mod \"20\" \"5\"\r\nend\r\n\r\n# Prints:\r\n# 3\r\n# 95\r\n# -3\r\n# 5\r\n# 0\r\n```\r\n### [Prompt.bird](examples/Prompt.bird):\r\n```\r\nuse Console String\r\n\r\ndefine Main $name\r\n    $name Console.Prompt \"What is your name: \"\r\n    Console.Println String.Concat \"Hello \" $name\r\nend\r\n\r\n# Prompts 'What is your name: ' then prints 'Hello \u003cname\u003e'\r\n```\r\n\r\n## Usage\r\nClone or download this repo and then enter the new folder\r\n```console\r\n$ git clone https://github.com/eliassjogreen/Bird.git\r\n$ cd .\\bird-master\\\r\n```\r\nThen compile the libraries in the `.\\lib\\` folder\r\n```console\r\n$ .\\bird.bat install\r\n```\r\nAnd you are ready to go! For example:\r\n```console\r\n$ .\\bird.bat run .\\examples\\HelloWorld.bird\r\nHello World\r\n```\r\nOr:\r\n```console\r\n$ .\\bird.bat compile .\\examples\\Function.bird .\\examples\\Function.bat\r\n$ .\\examples\\Function.bat Elias\r\nHello Elias\r\n32\r\n```\r\n\r\n## TODO\r\n- [x] Arithmetic\r\n- [x] Expand std (Added replacing libraries instead of expanding std (std is now removed))\r\n- [ ] Loops\r\n- [ ] If-statements\r\n\r\n\u003csub\u003e\u003csup\u003eBatch is pain. Batch is pain. Batch is pain.\u003c/sup\u003e\u003c/sub\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliassjogreen%2Fbird","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliassjogreen%2Fbird","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliassjogreen%2Fbird/lists"}