{"id":24969303,"url":"https://github.com/yianandcode/pineapple-php","last_synced_at":"2025-04-11T04:40:32.310Z","repository":{"id":85968889,"uuid":"340110582","full_name":"YianAndCode/pineapple-php","owner":"YianAndCode","description":"pineapple lang 的 PHP 实现","archived":false,"fork":false,"pushed_at":"2021-11-04T16:19:03.000Z","size":26,"stargazers_count":24,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T02:43:47.706Z","etag":null,"topics":["pineapple"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/YianAndCode.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-18T16:32:07.000Z","updated_at":"2023-12-15T03:03:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c67c06f-74c1-4770-b027-16f808362c02","html_url":"https://github.com/YianAndCode/pineapple-php","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/YianAndCode%2Fpineapple-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YianAndCode%2Fpineapple-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YianAndCode%2Fpineapple-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YianAndCode%2Fpineapple-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YianAndCode","download_url":"https://codeload.github.com/YianAndCode/pineapple-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345274,"owners_count":21088241,"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":["pineapple"],"created_at":"2025-02-03T14:37:10.083Z","updated_at":"2025-04-11T04:40:32.301Z","avatar_url":"https://github.com/YianAndCode.png","language":"PHP","readme":"# PINEAPPLE\n\npineapple lang 是一个简单的编程语言 demo。它包含了个手写的递归下降解析器和一个简单的解释器。虽然该语言甚至不是图灵完备的。但 pineapple 的主要目的是让编译原理初学者有一个预热，简单了解一个编程语言是怎么构建的。\n\n**本项目是 pineapple lang 的 PHP 实现**\n\n## 运行\n```bash\ncomposer dump-autoload\n./bin/pineapple-php ./examples/hello-world.pineapple\n```\n\n## 小教程\n\n### GitHub\n - [write-a-programming-language-in-450-lines](https://github.com/karminski/write-a-programming-language-in-450-lines)\n\n### 知乎专栏\n - [牙医教你 450 行代码自制编程语言 - 1, 从 EBNF 开始](https://zhuanlan.zhihu.com/p/341405385)\n - [牙医教你 450 行代码自制编程语言 - 2, 两个魔法就可以实现永动机](https://zhuanlan.zhihu.com/p/341532964)\n - [牙医教你 450 行代码自制编程语言 - 3, 实现 Lexer 上篇](https://zhuanlan.zhihu.com/p/341840788)\n - [牙医教你 450 行代码自制编程语言 - 4, 实现 Lexer 下篇](https://zhuanlan.zhihu.com/p/342036670)\n - [牙医教你 450 行代码自制编程语言 - 5, 递归下降语法解析器](https://zhuanlan.zhihu.com/p/342333858)\n - [牙医教你 450 行代码自制编程语言 - 6, 后端](https://zhuanlan.zhihu.com/p/342457860)\n - [牙医教你 450 行代码自制编程语言 - 7, 后续该如何学习编译原理](https://zhuanlan.zhihu.com/p/342982862)\n\n## 贡献者\n - [karminski-牙医](https://github.com/karminski)\n - [Y!an](https://github.com/YianAndCode)\n\n## 开源协议\n - [MIT](LICENSE)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyianandcode%2Fpineapple-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyianandcode%2Fpineapple-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyianandcode%2Fpineapple-php/lists"}