{"id":13591297,"url":"https://github.com/starkwang/the-super-tiny-compiler-cn","last_synced_at":"2025-04-08T14:33:12.732Z","repository":{"id":37390566,"uuid":"64569963","full_name":"starkwang/the-super-tiny-compiler-cn","owner":"starkwang","description":":snowman: 可能是最小的编译器","archived":false,"fork":true,"pushed_at":"2021-01-07T13:44:52.000Z","size":79,"stargazers_count":971,"open_issues_count":1,"forks_count":181,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-11-06T11:46:06.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jamiebuilds/the-super-tiny-compiler","license":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starkwang.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":"2016-07-31T00:34:50.000Z","updated_at":"2024-11-05T16:08:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/starkwang/the-super-tiny-compiler-cn","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/starkwang%2Fthe-super-tiny-compiler-cn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starkwang%2Fthe-super-tiny-compiler-cn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starkwang%2Fthe-super-tiny-compiler-cn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starkwang%2Fthe-super-tiny-compiler-cn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starkwang","download_url":"https://codeload.github.com/starkwang/the-super-tiny-compiler-cn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247861149,"owners_count":21008435,"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":[],"created_at":"2024-08-01T16:00:55.689Z","updated_at":"2025-04-08T14:33:07.719Z","avatar_url":"https://github.com/starkwang.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003ca href=\"super-tiny-compiler.js\"\u003e\u003cimg width=\"731\" alt=\"THE SUPER TINY COMPILER\" src=\"https://cloud.githubusercontent.com/assets/952783/14413766/134c4068-ff39-11e5-996e-9452973299c2.png\"/\u003e\u003c/a\u003e\n\n***Welcome to The Super Tiny Compiler!***\n\n这是一个超级简单的编译器的例子，包含了现代编译器的几个主要部分，用简单易读的 JavaScript 编写。\n\n把这个读完将会有助于你了解*大多数*编译器从前端到后端是如何工作的。\n\n### [想直接看代码？点这里](super-tiny-compiler-chinese.js)\n\n### 或者... [看看演讲](https://www.youtube.com/watch?v=Tar4WgAfMr4)\n\n---\n\n### 为啥我要关心这个？\n\n确实，大多数人在日常工作中没有必要了解编译器都是如何工作的。但是，编译器无处不在，你使用的很多\n工具的底层原理都是从编译器那儿来的。\n\n### 但是编译器太高大上了！\n\n额，确实。但这是我们（写编译器的人）的过错，我们把一些本应该很通俗易懂的事情弄得太可怕了，\n让很多人都认为编译器这种东西是可望而不可即的，甚至只有最书呆子的书呆子才能理解。\n\n### 好吧，所以我该从哪儿开始？\n\n太棒了！直接去看 [super-tiny-compiler-chinese.js](super-tiny-compiler-chinese.js) 这个文件吧！\n\n### Tests\n\n直接运行 `node test.js`\n\n---\n\n[![cc-by-4.0](https://licensebuttons.net/l/by/4.0/80x15.png)](http://creativecommons.org/licenses/by/4.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarkwang%2Fthe-super-tiny-compiler-cn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarkwang%2Fthe-super-tiny-compiler-cn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarkwang%2Fthe-super-tiny-compiler-cn/lists"}