{"id":20917555,"url":"https://github.com/impact-eintr/monkey","last_synced_at":"2026-04-01T17:02:43.177Z","repository":{"id":107515109,"uuid":"550052309","full_name":"impact-eintr/Monkey","owner":"impact-eintr","description":"用Go自制解释器/编译器","archived":false,"fork":false,"pushed_at":"2022-10-14T08:34:34.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-30T19:26:49.043Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/impact-eintr.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":"2022-10-12T06:10:16.000Z","updated_at":"2022-10-20T01:18:51.000Z","dependencies_parsed_at":"2023-04-07T20:30:31.750Z","dependency_job_id":null,"html_url":"https://github.com/impact-eintr/Monkey","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/impact-eintr/Monkey","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impact-eintr%2FMonkey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impact-eintr%2FMonkey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impact-eintr%2FMonkey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impact-eintr%2FMonkey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/impact-eintr","download_url":"https://codeload.github.com/impact-eintr/Monkey/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impact-eintr%2FMonkey/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31013674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:58:54.984Z","status":"ssl_error","status_checked_at":"2026-03-27T02:58:46.993Z","response_time":164,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-18T16:34:11.304Z","updated_at":"2026-03-27T03:04:09.300Z","avatar_url":"https://github.com/impact-eintr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monkey\n用Go自制解释器/编译器\n\n# 解释器\n\n## 词法分析\n\n**源代码** =\u003e **词法单元** =\u003e **抽象语法树**\n\n### 定义词法单元\n\n``` sh\nlet five = 5;\nlet ten = 10;\n\nlet add = fn(x, y) {\n    x + y;\n};\n\nlet result = add(five, ten);\n```\n\n``` go\ntype TokenType string\n\ntype Token struct {\n    Type TokenType\n    Literal string\n}\n```\n\n### 词法分析器\n\n词法分析器将源代码作为输入，并输出对应的词法单元。词法分析器会遍历输入的字符，然后逐个输出识别的词法单元。\n\n\n# 编译器\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpact-eintr%2Fmonkey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimpact-eintr%2Fmonkey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpact-eintr%2Fmonkey/lists"}