{"id":23498229,"url":"https://github.com/sonota88/ruccola","last_synced_at":"2025-04-15T16:15:39.118Z","repository":{"id":53876021,"uuid":"344979356","full_name":"sonota88/ruccola","owner":"sonota88","description":"A self-hosting toy compiler written in Ruby","archived":false,"fork":false,"pushed_at":"2024-01-05T23:22:49.000Z","size":899,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T16:15:25.681Z","etag":null,"topics":["compiler","programming-language","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/sonota88.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}},"created_at":"2021-03-06T01:39:51.000Z","updated_at":"2024-06-11T06:43:09.000Z","dependencies_parsed_at":"2024-01-06T01:04:06.669Z","dependency_job_id":null,"html_url":"https://github.com/sonota88/ruccola","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonota88%2Fruccola","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonota88%2Fruccola/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonota88%2Fruccola/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonota88%2Fruccola/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonota88","download_url":"https://codeload.github.com/sonota88/ruccola/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249105471,"owners_count":21213535,"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":["compiler","programming-language","ruby"],"created_at":"2024-12-25T05:29:41.238Z","updated_at":"2025-04-15T16:15:39.098Z","avatar_url":"https://github.com/sonota88.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is my hobby project to learn compiler implementation.\n\n素朴な自作言語Ruccolaのコンパイラをセルフホストした  \nhttps://qiita.com/sonota88/items/1e683276541cf1b87b76\n\nSee also: [selfhost/README.md](selfhost/README.md)\n\n\n# Example\n\n[examples/fibonacci.rcl](examples/fibonacci.rcl)\n\n```ruby\n#include ../selfhost/lib/std.rcl\n\ndef fib(n)\n  case\n  when (n \u003c 0)\n    _panic();\n  when (n \u003c 3)\n    return n;\n  else\n    return fib(__sub(n, 2)) + fib(__sub(n, 1));\n  end\nend\n\ndef main()\n  var n = 0;\n\n  while (n \u003c 21)\n    print_i(n);\n    putchar(C_SPC());\n    print_i(fib(n));\n    putchar(C_LF());\n\n    n = n + 1;\n  end\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonota88%2Fruccola","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonota88%2Fruccola","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonota88%2Fruccola/lists"}