{"id":13608986,"url":"https://github.com/covscript/covscript","last_synced_at":"2026-02-09T09:06:23.203Z","repository":{"id":51269514,"uuid":"79646991","full_name":"covscript/covscript","owner":"covscript","description":"Make Programming Easier","archived":false,"fork":false,"pushed_at":"2025-12-30T03:04:38.000Z","size":6034,"stargazers_count":233,"open_issues_count":0,"forks_count":24,"subscribers_count":12,"default_branch":"master","last_synced_at":"2026-01-28T00:43:16.054Z","etag":null,"topics":["cni","compiler","covscript","cross-platform","interpreter","programming-language"],"latest_commit_sha":null,"homepage":"http://covscript.org.cn","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/covscript.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":"CONTRIBUTING-zh.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-01-21T13:21:47.000Z","updated_at":"2026-01-18T19:56:17.000Z","dependencies_parsed_at":"2023-10-15T23:26:40.810Z","dependency_job_id":"d0b2b999-26a0-4546-b5d3-b460c287b727","html_url":"https://github.com/covscript/covscript","commit_stats":null,"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"purl":"pkg:github/covscript/covscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/covscript%2Fcovscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/covscript%2Fcovscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/covscript%2Fcovscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/covscript%2Fcovscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/covscript","download_url":"https://codeload.github.com/covscript/covscript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/covscript%2Fcovscript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29260426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T04:11:57.159Z","status":"ssl_error","status_checked_at":"2026-02-09T04:11:56.117Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["cni","compiler","covscript","cross-platform","interpreter","programming-language"],"created_at":"2024-08-01T19:01:31.556Z","updated_at":"2026-02-09T09:06:23.197Z","avatar_url":"https://github.com/covscript.png","language":"C++","readme":"![](https://github.com/covscript/covscript/raw/master/docs/covariant_script_wide.png)\n\n# Covariant Script 编程语言解释器 #\n\n![Build \u0026 Test](https://github.com/covscript/covscript/actions/workflows/build.yml/badge.svg)\n![CodeQL Advanced](https://github.com/covscript/covscript/actions/workflows/codeql-analysis.yml/badge.svg)\n[![](https://img.shields.io/github/stars/covscript/covscript?logo=GitHub)](https://github.com/covscript/covscript/stargazers)\n[![](https://img.shields.io/github/languages/top/covscript/covscript)](http://www.cplusplus.com/)\n[![](https://img.shields.io/github/license/covscript/covscript)](http://www.apache.org/licenses/LICENSE-2.0)\n[![](https://img.shields.io/github/v/release/covscript/covscript)](https://github.com/covscript/covscript/releases/latest)\n[![](https://zenodo.org/badge/79646991.svg)](https://zenodo.org/doi/10.5281/zenodo.10004374)\n\n**欢迎使用Covariant Script编程语言!**  \n**Covariant Script**是一种开源的跨平台编程语言  \n此项目为官方维护的Covariant Script解释器\n\n**[赞助此项目](SPONSORING-zh.md)** - 支持开发，共建社区未来\n\n## 切换语言 ##\n\n- [简体中文](./README-zh.md)\n- [English](./README.md)\n\n## 特点 ##\n\n+ 全平台可用，支持大多数主流操作系统\n    + Apple macOS: 通用二进制，同时支持 x86_64 (Intel) 和 ARM64 (Apple Silicon)\n    + Linux 和类 Unix: x86, ARM, MIPS, LoongArch\n    + Microsoft Windows: x86, ARM\n    + [New!] Google Android: x86, ARM (在 [Termux](https://github.com/termux/termux-app) 环境中可运行完整环境)\n+ 强大易用的扩展系统\n    + C/C++ Native Interface(CNI) 系统：能够翻译 C/C++ 和 Covariant Script 之间的双向调用\n    + Interpreter Bootstrap：在 C++ 项目中集成 Covariant Script 运行时环境的帮手\n    + CNI 组成宏：将扩展系统与CNI系统有机结合，现已纳入语言标准\n    + CFFI 支持: 直接调用使用 C 语言编写的动态库中的函数\n+ 自研高效编译系统\n    + 针对中文优化的 Unicode 支持\n    + 无依赖、高效的编译器前端\n    + 支持编译期优化\n    + 可导出编译结果\n+ 高性能运行时环境\n    + 堆栈式非对称协程\n    + 热点分析优化算法\n    + 高效的内存管理系统\n    + 引用计数垃圾回收器\n+ 全面支持国产信创环境\n    + 处理器：龙芯（MIPS/LoongArch）、鲲鹏/飞腾（ARM）、海光/兆芯（x86）\n    + 操作系统：支持大多数 Linux 衍生系统，在 UOS、openEuler 中经过测试\n    + 加密算法：支持[主流的国密 SM2、SM3、SM4 算法](https://github.com/covscript/covscript-gmssl)\n\n## 文档 ##\n\n请访问 [Covariant Script OSC README](https://github.com/covscript/README)\n\n## Codespace ##\n\n您可以在 GitHub Codespace 中免安装直接使用 CovScript：\n\n[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/covscript/codespace?quickstart=1)\n\n\n## 安装 ##\n\n+ **[建议]** 从 [covscript.org.cn](http://covscript.org.cn) 下载安装包\n+ 在 [Latest Release](https://github.com/covscript/covscript/releases/latest) 里下载预编译的二进制文件\n+ 使用 CMake 工具链直接编译源代码\n\n## 运行 ##\n\n### 解释器 ###\n\n`cs [选项...] \u003c文件|STDIN\u003e [参数...]`  \n`cs [选项...]`\n\n当将 `文件` 换成 `STDIN` 时，解释器会直接从标准输入流读取\n\n#### 选项 ####\n\n##### 解释器 #####\n\n选项|助记符|功能\n:---:|:---:|:--:\n`--compile-only`|`-c`|仅编译\n`--dump-ast`|`-d`|导出高级语法树\n`--dependency`|`-r`|导出模块依赖\n`--csym \u003c文件\u003e`|`-g \u003c文件\u003e`|从文件中读取 cSYM 信息\n\n##### 交互式解释器(Repl) #####\n\n选项|助记符|功能\n:---:|:---:|:--:\n`--silent`|`-s`|关闭命令提示符\n`--args \u003c...\u003e`|`-a \u003c...\u003e`|设置程序参数\n\n**注意，在选项 `--args` 或其助记符 `-a` 之后设置的每一项都将被视为参数**\n\n##### 通用选项 #####\n\n选项|助记符|功能\n:---:|:---:|:--:\n`--no-optimize`|`-o`|禁用优化器\n`--help`|`-h`|显示帮助信息\n`--version`|`-v`|显示版本信息\n`--wait-before-exit`|`-w`|等待进程退出\n`--stack-resize \u003c大小\u003e`|`-S \u003c大小\u003e`|重设运行时栈大小\n`--log-path \u003c路径\u003e`|`-l \u003c路径\u003e` |设置日志输出路径\n`--import-path \u003c路径\u003e`|`-i \u003c路径\u003e`|设置引入查找路径\n\n默认栈大小为**64**。这只是初始预留大小，栈会根据需要自动增长，其上限取决于系统对栈的限制。当设置的栈大小为**1000**或更大时，协程的栈大小会动态调整为设置大小的十分之一；当设置的栈大小小于**1000**时，协程的栈大小将保持在**64**\n\n**注意，若不设置日志输出路径，将直接输出至标准输出流**\n\n### 调试器 ###\n\n`cs_dbg [选项...] \u003c文件\u003e`\n\n#### 选项 ####\n\n选项|助记符|功能\n:--:|:--:|:--:\n`--help`|`-h`|显示帮助信息\n`--version`|`-v`|显示版本信息\n`--silent`|`-s`|关闭命令提示符\n`--wait-before-exit`|`-w`|等待进程退出\n`--csym \u003c文件\u003e`|`-g \u003c文件\u003e`|从文件中读取 cSYM 信息\n`--stack-resize \u003c大小\u003e`|`-S \u003c大小\u003e`|重设运行时栈大小\n`--log-path \u003c路径\u003e`|`-l \u003c路径\u003e`|设置日志路径\n`--import-path \u003c路径\u003e`|`-i \u003c路径\u003e`|设置引入查找路径\n\n栈大小策略与解释器相同\n\n**若不设置日志路径，将直接输出至标准输出流**\n\n## 示例 ##\n\n仓库 [covscript-example](https://github.com/covscript/covscript-example) 中包含了数个使用 Covariant Script 编写的示例程序。\n\n## 版权 ##\n\n**Covariant Script 编程语言的作者是 [@mikecovlee](https://github.com/mikecovlee/)，基于 Apache 2.0 协议分发。**  \n**版权所有 © 2017-2026 李登淳(Michael Lee)**  \n*该软件已在中华人民共和国国家版权局注册（登记号：2020SR0408026），受中华人民共和国著作权法保护。*\n\n### 贡献者福利\n\n加入我们的贡献者行列，你会得到：\n- 你的名字/GitHub 账号永远被保留在项目历史中\n- 代码贡献通过 Git 自动署名\n- 重要贡献者有机会在版本发布说明中被提及\n- 你保留对贡献代码的著作权（Apache 2.0 协议）\n- **活跃贡献者有机会从赞助资金中获得分红**（按年度根据贡献度分配）\n\n想看看谁已经为项目做出了贡献？来逛逛我们的[贡献者页面](CONTRIBUTORS-zh.md)吧！详细的赞助和分红说明，请查看 [赞助页面](SPONSORING-zh.md)。\n\n## 相关项目 ##\n\n为了更好的 CovScript 体验，我们推荐以下官方项目：\n\n- **[官方手册](https://github.com/covscript/handbook)** - 完整的入门指南、教程和最佳实践文档\n- **[VSCode 扩展](https://github.com/covscript/covscript-vscode)** - 官方 VSCode 扩展，提供语法高亮、代码补全和调试支持\n- **[包管理器 (cspkg)](https://github.com/covscript/cspkg)** - 官方包管理系统，便于依赖管理和包分发\n- **[示例项目](https://github.com/covscript/covscript-example)** - 精选示例程序和常见用法\n\n## 开发工具 ##\n\n### IDE 和编辑器支持\n- **VSCode 扩展** - 推荐使用，支持完整的语言功能\n- **包管理器** - 使用 `cspkg` 命令行工具管理依赖\n- **官方手册** - 包含完整文档和学习资源\n\n### 社区交流\n- **[GitHub Discussions](https://github.com/covscript/covscript/discussions)** - 讨论和提问\n- **[GitHub Issues](https://github.com/covscript/covscript/issues)** - 报告 Bug 和建议功能\n- **微信群** - 发邮件至 [mikecovlee@163.com](mailto:mikecovlee@163.com) 加入社区\n\n## 引用 ##\n\n如果 CovScript 为您的工作增添了一些便利，请引用该仓库。\n```bibtex\n@misc{CovScript,\n  author = {Li, Dengchun},\n  title = {Covariant Script Programming Language},\n  year = {2017},\n  publisher = {GitHub},\n  howpublished = {\\url{https://github.com/covscript/covscript}}\n}\n```\n\n## 感谢 ##\n\n[四川大学](http://scu.edu.cn/), KDDE Lab (段磊教授), freeCodeCamp 成都社区\n\n[@imkiva](https://github.com/imkiva/), [@ice1000](https://github.com/ice1000/),\n[@MouriNaruto](https://github.com/MouriNaruto), Weicheng Shi\n","funding_links":[],"categories":["Uncategorized","C++"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcovscript%2Fcovscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcovscript%2Fcovscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcovscript%2Fcovscript/lists"}