{"id":20649152,"url":"https://github.com/liulinboyi/sparrow-cmake","last_synced_at":"2026-06-01T04:01:29.052Z","repository":{"id":109598826,"uuid":"403083405","full_name":"liulinboyi/sparrow-cmake","owner":"liulinboyi","description":"自制编程语言 基于C语言 已发布 可使用","archived":false,"fork":false,"pushed_at":"2021-10-31T12:51:10.000Z","size":2506,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-01T04:25:38.923Z","etag":null,"topics":["homemade-programming-language"],"latest_commit_sha":null,"homepage":"","language":"C","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/liulinboyi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-04T14:54:01.000Z","updated_at":"2023-11-12T14:28:00.000Z","dependencies_parsed_at":"2023-04-25T05:46:46.987Z","dependency_job_id":null,"html_url":"https://github.com/liulinboyi/sparrow-cmake","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/liulinboyi/sparrow-cmake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liulinboyi%2Fsparrow-cmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liulinboyi%2Fsparrow-cmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liulinboyi%2Fsparrow-cmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liulinboyi%2Fsparrow-cmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liulinboyi","download_url":"https://codeload.github.com/liulinboyi/sparrow-cmake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liulinboyi%2Fsparrow-cmake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33759178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"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":["homemade-programming-language"],"created_at":"2024-11-16T17:12:56.714Z","updated_at":"2026-06-01T04:01:29.001Z","avatar_url":"https://github.com/liulinboyi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 交叉编辑Windows\n\n在build目录下执行\n64位\n```\ncmake -H\"../src\" -B\"./\" -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_TOOLCHAIN_FILE=windows.toolchain.cmake -DUSE_32BITS=0\nmake\n```\n32位\n```\ncmake -H\"../src\" -B\"./\" -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_TOOLCHAIN_FILE=windows.toolchain.cmake -DUSE_32BITS=1\n```\n\n# 编译linux\n\n在build目录下执行\n64位\n```\ncmake -H\"../src\" -B\"./\" -DCMAKE_BUILD_TYPE=MinSizeRel -DUSE_32BITS=0\nmake\n```\n32位\n```\ncmake -H\"../src\" -B\"./\" -DCMAKE_BUILD_TYPE=MinSizeRel -DUSE_32BITS=1\n```\n\n# [发行 Release](https://github.com/liulinboyi/sparrow-cmake/releases/latest)\n\n\n# 尝试添加单步调试\n\n参考[翻译：用Visual Studio Code编写你自己的调试器和语言扩展](https://www.yuque.com/docs/share/e5e33947-2e09-4de0-b43c-71f23769b246?#)尝试做单步调试，失败了，C语言用的还是不顺手。\n\n具体思路我看了下，大概就是使用socket在vscode和REPL之间进行通信。在服务端，将调试的文件加载，然后分成一行一行，根据客户端(vscode)的调试指令，送上REPL运行，然后返回结果，说起来容易，但是用C语言做起来难呀。\n\n# Mock debug\n\n使用cscs-debuger\n\n[cscs-debugger](https://github.com/vassilych/cscs-debugger)\n\n[debug-demo](./debug-demo)\n\n# 资料\n[英文文章原地址](https://www.codemag.com/article/1809051/Writing-Your-Own-Debugger-and-Language-Extensions-with-Visual-Studio-Code)\n\n[cscs C#](https://github.com/vassilych/cscs)\n\n[cscs-debugger TypeScript](https://github.com/vassilych/cscs-debugger)\n\n规范：\n- 复合数据结构一律大写\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliulinboyi%2Fsparrow-cmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliulinboyi%2Fsparrow-cmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliulinboyi%2Fsparrow-cmake/lists"}