{"id":15202739,"url":"https://github.com/wa-lang/ugo","last_synced_at":"2025-10-04T06:10:55.632Z","repository":{"id":48146024,"uuid":"427439852","full_name":"wa-lang/ugo","owner":"wa-lang","description":"µGo编程语言(从头开发一个迷你Go语言编译器)","archived":false,"fork":false,"pushed_at":"2022-09-25T08:06:33.000Z","size":236,"stargazers_count":52,"open_issues_count":1,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-19T17:42:43.984Z","etag":null,"topics":["aeeembly","compiler","go","golang","lexer","llvm","parser","ugo","wasm","webassembly"],"latest_commit_sha":null,"homepage":"https://wa-lang.org/ugo-compiler-book","language":"Go","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/wa-lang.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}},"created_at":"2021-11-12T17:15:45.000Z","updated_at":"2025-05-02T14:33:02.000Z","dependencies_parsed_at":"2022-09-07T20:22:42.367Z","dependency_job_id":null,"html_url":"https://github.com/wa-lang/ugo","commit_stats":null,"previous_names":["chai2010/ugo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wa-lang/ugo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wa-lang%2Fugo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wa-lang%2Fugo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wa-lang%2Fugo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wa-lang%2Fugo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wa-lang","download_url":"https://codeload.github.com/wa-lang/ugo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wa-lang%2Fugo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272723182,"owners_count":24982413,"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-08-29T02:00:10.610Z","response_time":87,"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":["aeeembly","compiler","go","golang","lexer","llvm","parser","ugo","wasm","webassembly"],"created_at":"2024-09-28T04:02:33.442Z","updated_at":"2025-10-04T06:10:50.583Z","avatar_url":"https://github.com/wa-lang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# µGo 编程语言\n\nµGo 是 Go 语言的真子集(不含标准库部分), 可以直接作为Go代码编译执行.\n\n- 安装 ugo: `go get github.com/wa-lang/ugo`.\n- 实现原理: https://github.com/wa-lang/ugo-compiler-book\n\n## 例子\n\n例子 ([_example/hello.ugo](_example/hello.ugo)):\n\n```go\npackage main\n\nfunc main() {\n\tfor n := 2; n \u003c= 30; n = n + 1 {\n\t\tvar isPrime int = 1\n\t\tfor i := 2; i*i \u003c= n; i = i + 1 {\n\t\t\tif x := n % i; x == 0 {\n\t\t\t\tisPrime = 0\n\t\t\t}\n\t\t}\n\t\tif isPrime != 0 {\n\t\t\tprintln(n)\n\t\t}\n\t}\n}\n```\n\n运行:\n\n```\n$ ugo run _examples/hello.ugo \n2\n3\n5\n7\n11\n13\n17\n19\n23\n29\n```\n\n## 版权\n\n个人学习目的可自由使用.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwa-lang%2Fugo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwa-lang%2Fugo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwa-lang%2Fugo/lists"}