{"id":21651590,"url":"https://github.com/v420v/ibu","last_synced_at":"2025-04-11T20:23:58.797Z","repository":{"id":183032665,"uuid":"664691705","full_name":"v420v/ibu","owner":"v420v","description":"🕊️ A programming language","archived":false,"fork":false,"pushed_at":"2025-03-23T08:34:19.000Z","size":338,"stargazers_count":19,"open_issues_count":10,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T16:22:10.963Z","etag":null,"topics":["assembly","compiler","holyc","ibu","language","programming-language","self-hosting"],"latest_commit_sha":null,"homepage":"","language":"Assembly","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/v420v.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":"2023-07-10T14:32:00.000Z","updated_at":"2025-03-23T08:34:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1717cfc-5ebe-45be-b111-2dbdfe74afc1","html_url":"https://github.com/v420v/ibu","commit_stats":null,"previous_names":["v420v/ibu"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v420v%2Fibu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v420v%2Fibu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v420v%2Fibu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v420v%2Fibu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v420v","download_url":"https://codeload.github.com/v420v/ibu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473797,"owners_count":21109776,"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":["assembly","compiler","holyc","ibu","language","programming-language","self-hosting"],"created_at":"2024-11-25T07:48:49.436Z","updated_at":"2025-04-11T20:23:58.788Z","avatar_url":"https://github.com/v420v.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://emoji2svg.deno.dev/api/🕊️\" alt=\"eyecatch\" height=\"100\"\u003e\n    \u003ch1\u003eThe Ibu programming language\u003c/h1\u003e\n\u003c/div\u003e\n\n[![CI](https://github.com/v420v/ibu/actions/workflows/ci.yml/badge.svg)](https://github.com/v420v/ibu/actions/workflows/ci.yml)\n\nA language designed for the enjoyment of programming.\n\n## Key Features of Ibu\n- No strict type checker\n- No C-like pointer arithmetic\n- No function-like macros\n- No variable shadowing\n- No `break`, `continue` stmt. Use `goto`\n- No libc dependency\n- No hidden control flow\n- No hidden memory allocations\n- Allows syntax like `13 \u003c= age \u003c 20`\n- Variable length args `func(...)` can be accessed with built-in variables `argc i64` and `argv *i64`\n- All values are extended to 64-bit when accessed\n- The compiler is written in itself\n- Default args don't have to be on the end (WIP)\n\n\u003e [!IMPORTANT]\n\u003e Supports x86-64 Linux only\n\n## Build the language\n```zsh\n$ git clone git@github.com:v420v/ibu.git\n$ cd ibu\n$ make init\n```\n\n## Build the language with docker\n```zsh\n$ git clone git@github.com:v420v/ibu.git\n$ cd ibu\n$ make up\n$ make ibu\n$ make init\n```\n\n| Command | Execution |\n|-----------|------------------------|\n| `make up` | `docker compose up -d` |\n| `make ibu` | `docker compose exec ibulang bash` |\n| `make down` | `docker compose down` |\n\n## Usage\n\n```\n$ ./ibuc \u003cfilename\u003e.ibu\n```\n\n## Compiler implementation\n| File | Content |\n|-----------|------------------------|\n| `src/ibu.ibu` | Entry point |\n| `src/tokenizer/tokenizer.ibu` | Lexical analyzer |\n| `src/preprocessor/preprocessor.ibu` | Preprocessor |\n| `src/parser/parser.ibu` | Parser |\n| `src/codegen/codegen.ibu` | Assembly code generator |\n| `src/linux-syscall/linux-syscall.ibu` | Linux system call |\n| `src/runtime.s` | Syscall function in assembly |\n| `src/util/util.ibu` | Other |\n\n### Contribution\ncontribution is welcome!\n\n### License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv420v%2Fibu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv420v%2Fibu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv420v%2Fibu/lists"}