{"id":41821980,"url":"https://github.com/erik/gob","last_synced_at":"2026-01-25T07:46:10.646Z","repository":{"id":6277218,"uuid":"7511027","full_name":"erik/gob","owner":"erik","description":"A B compiler in Go. Or at least  the very beginnings of one.","archived":false,"fork":false,"pushed_at":"2014-07-21T01:03:39.000Z","size":2132,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T08:00:14.245Z","etag":null,"topics":["b","compiler"],"latest_commit_sha":null,"homepage":"","language":"Go","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/erik.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}},"created_at":"2013-01-08T23:01:45.000Z","updated_at":"2023-01-29T03:56:48.000Z","dependencies_parsed_at":"2022-09-08T03:52:37.474Z","dependency_job_id":null,"html_url":"https://github.com/erik/gob","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erik/gob","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erik%2Fgob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erik%2Fgob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erik%2Fgob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erik%2Fgob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erik","download_url":"https://codeload.github.com/erik/gob/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erik%2Fgob/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28748223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["b","compiler"],"created_at":"2026-01-25T07:46:10.587Z","updated_at":"2026-01-25T07:46:10.639Z","avatar_url":"https://github.com/erik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gob\n[![Build Status](https://travis-ci.org/erik/gob.png?branch=master)](https://travis-ci.org/erik/gob)\n\nGob is an implementation of the B language, written in Go.\n\nCurrently the project is in its infancy and is probably the most brittle\ncompiler ever written. Run `go test ./...` to check for sanity.\n\n`go build .` (or `go get github.com/erik/gob`) will give you an executable that\nparses B files given to it on the command line and generates C output. You\ncan't compile this quite yet, because the B standard library wrapper hasn't\nbeen written yet.\n\n`$ gob examples/snide.b`\n\nI aim to get a fully functional B-language compiler out of this\nproject, with compilation to native code through intermediate C, LLVM\nIR, or asm generation, though this is currently undecided. C will\nprobably come first, just due to it being quite similar to B and\nlikely the easiest code generator to write.\n\nI chose Go for this project for two reasons:\n\n1. Ken Thompson had a role in the creation of both Go and B.\n2. I had just finished marathoning Arrested Development.\n\n## Status\n\n* Front end (lex, parse, AST generation)\n  * Lexer complete\n  * Parser complete\n  * AST definitions complete\n  * Unit tests for parser and lexer are lacking, probably accept some incorrect\n    syntax constructions.\n* Middle end (semantic analysis, optimizations)\n  * Semantic analysis is limited, but working.\n  * No optimization performed yet.\n* Back end (code generator)\n  * C code generator is almost functional, needs some supporting library code\n    to be entirely working.\n\n## Links\n\n* http://cm.bell-labs.com/cm/cs/who/dmr/btut.html\n* http://cm.bell-labs.com/who/dmr/bref.html\n\n## License\n\nCopyright (c) 2013 Erik Price\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferik%2Fgob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferik%2Fgob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferik%2Fgob/lists"}