{"id":29049971,"url":"https://github.com/irishbruse/blang","last_synced_at":"2026-04-24T12:07:39.325Z","repository":{"id":114905572,"uuid":"409752339","full_name":"IrishBruse/Blang","owner":"IrishBruse","description":"B compiler written in C#","archived":false,"fork":false,"pushed_at":"2025-11-16T19:10:19.000Z","size":960,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-16T20:21:58.526Z","etag":null,"topics":["aot-compilation","b","blang","compiler","dotnet","dotnet-10","dotnet-aot","qbe"],"latest_commit_sha":null,"homepage":"","language":"C#","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/IrishBruse.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-23T21:46:36.000Z","updated_at":"2025-11-16T19:10:24.000Z","dependencies_parsed_at":"2025-07-01T01:28:22.932Z","dependency_job_id":"7ee7816b-e843-4cfe-9e9d-979f35b3e717","html_url":"https://github.com/IrishBruse/Blang","commit_stats":null,"previous_names":["irishbruse/blang","irishbruse/iblang"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IrishBruse/Blang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IrishBruse%2FBlang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IrishBruse%2FBlang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IrishBruse%2FBlang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IrishBruse%2FBlang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IrishBruse","download_url":"https://codeload.github.com/IrishBruse/Blang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IrishBruse%2FBlang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32222547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["aot-compilation","b","blang","compiler","dotnet","dotnet-10","dotnet-aot","qbe"],"created_at":"2025-06-26T20:30:25.539Z","updated_at":"2026-04-24T12:07:39.319Z","avatar_url":"https://github.com/IrishBruse.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# B Compiler\n\nImplementing B in C# with qbe backend\n\n## Quickstart\n\nRun the HelloWorld example\n\n`❯ ./bc run Examples/HelloWorld.b`\n\n```\nHello, World\n```\n\n## Help\n\n`❯ ./bc --help`\n\n```\nDescription:\n  Compiler for the b programming lanaugage\n\nUsage:\n  bc \u003cfile\u003e [command] [options]\n\nArguments:\n  \u003cfile\u003e  Path to b file to build\n\nOptions:\n  --tokens        Print tokenizers tokens\n  --symbols       Print symbol table\n  --ast           Dump compiler ast information\n  -v, --verbose   Verbose output\n  -vv             Very Verbose output\n  -?, -h, --help  Show help and usage information\n  --version       Show version information\n\nCommands:\n  run \u003cfile\u003e   Run .b file\n  test \u003cfile\u003e  Test compiler output\n```\n\n## Testing\n\nRun all the compiler tests\n\n`❯ ./bc test`\n\n```shell\n✓ Tests/ok/comments.b (33ms)\n✓ Tests/ok/empty.b (15ms)\n✓ Tests/ok/helloworld.b (20ms)\n✓ Tests/ok/integer.b (18ms)\n✓ Tests/ok/pointers.b (18ms)\n✓ Tests/ok/Statement/auto.b (15ms)\n✓ Tests/ok/Statement/extrn.b (15ms)\n✓ Tests/ok/Statement/function.b (16ms)\n✓ Tests/ok/Statement/functionCall.b (16ms)\n✓ Tests/ok/Statement/if.b (20ms)\n✓ Tests/ok/Statement/ifelse.b (17ms)\n✓ Tests/ok/Statement/while.b (16ms)\n```\n\n\n## Currently Implemented\n\n-   [x] function definitions\n-   [x] extrn\n-   [x] function calls\n-   [x] auto\n-   [x] variable assignment\n-   [x] math `foo = (1 + 2 * 3)` foo = 7\n-   [x] Global variables\n-   [x] if\n-   [x] else\n-   [x] while\n-   [x] pointers \\* \u0026\n-   [x] Array index [i]\n-   [ ] switch\n\n## Targets\n\n-   qbe\n\n## Dev Setup\n\n-   Dotnet 8\n-   QBE executable either build from source or use the linux-x86_64 one in `misc/qbe`\n-   cd into the BLang folder in the repo and run\n    -   `dotnet run -- run '../Examples/HelloWorld.b'`\n\n## References\n\n-   [QBE Docs](https://c9x.me/compile/doc/il.html)\n-   [tsoding/b](https://github.com/tsoding/b)\n-   [kbman](https://www.nokia.com/bell-labs/about/dennis-m-ritchie/kbman.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firishbruse%2Fblang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firishbruse%2Fblang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firishbruse%2Fblang/lists"}