covscript

Make Programming Easier

https://github.com/covscript/covscript

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.6%) to scientific vocabulary

Keywords

cni compiler covscript cross-platform interpreter programming-language
Last synced: 4 months ago · JSON representation ·

Repository

Make Programming Easier

Basic Info
  • Host: GitHub
  • Owner: covscript
  • License: apache-2.0
  • Language: C++
  • Default Branch: master
  • Homepage: http://covscript.org.cn
  • Size: 5.56 MB
Statistics
  • Stars: 229
  • Watchers: 12
  • Forks: 24
  • Open Issues: 1
  • Releases: 62
Topics
cni compiler covscript cross-platform interpreter programming-language
Created almost 9 years ago · Last pushed 4 months ago
Metadata Files
Readme License Citation

README-zh.md

Covariant Script 编程语言解释器

欢迎使用Covariant Script编程语言!
Covariant Script是一种开源的跨平台编程语言
此项目为官方维护的Covariant Script解释器

切换语言

特点

  • 全平台可用,支持大多数主流操作系统
    • 使用 C++ 14 标准编写,支持版本较老的编译器
    • Apple macOS: Universal binary with x86_64 and arm64
    • Linux and Unix: x86, ARM, MIPS, LoongArch
    • Microsoft Windows: x86
  • 强大易用的扩展系统
    • C/C++ Native Interface(CNI) 系统:能够翻译 C/C++ 和 Covariant Script 之间的双向调用
    • Interpreter Bootstrap:在 C++ 项目中集成 Covariant Script 运行时环境的帮手
    • CNI 组成宏:将扩展系统与CNI系统有机结合,现已纳入语言标准
    • CFFI 支持: 直接调用使用 C 语言编写的动态库中的函数
  • 自研高效编译系统
    • 针对中文优化的 Unicode 支持
    • 无依赖、高效的编译器前端
    • 支持编译期优化
    • 可导出编译结果
  • 高性能运行时环境
    • 堆栈式非对称协程
    • 热点分析优化算法
    • 高效的内存管理系统
    • 引用计数垃圾回收器

文档

请访问 Covariant Script OSC README

Codespace

您可以在 GitHub Codespace 中免安装直接使用 CovScript:

Open in GitHub Codespaces

安装

运行

解释器

cs [选项...] <文件|STDIN> [参数...]
cs [选项...]

当将 文件 换成 STDIN 时,解释器会直接从标准输入流读取

选项

解释器

选项|助记符|功能 :---:|:---:|:--: --compile-only|-c|仅编译 --dump-ast|-d|导出高级语法树 --dependency|-r|导出模块依赖 --csym <文件>|-g <文件>|从文件中读取 cSYM 信息

交互式解释器(Repl)

选项|助记符|功能 :---:|:---:|:--: --silent|-s|关闭命令提示符 --args <...>|-a <...>|设置程序参数

注意,在选项 --args 或其助记符 -a 之后设置的每一项都将被视为参数

通用选项

选项|助记符|功能 :---:|:---:|:--: --no-optimize|-o|禁用优化器 --help|-h|显示帮助信息 --version|-v|显示版本信息 --wait-before-exit|-w|等待进程退出 --stack-resize <大小>|-S <大小>|重设运行时栈大小 --log-path <路径>|-l <路径> |设置日志输出路径 --import-path <路径>|-i <路径>|设置引入查找路径

默认栈大小为1000,当设置的栈大小大于默认值时,协程的栈大小会动态调整为设置大小的十分之一;当堆栈大小设置小于默认值时,协程的堆栈大小将保持在100

注意,若不设置日志输出路径,将直接输出至标准输出流

调试器

cs_dbg [选项...] <文件>

选项

选项|助记符|功能 :--:|:--:|:--: --help|-h|显示帮助信息 --version|-v|显示版本信息 --silent|-s|关闭命令提示符 --wait-before-exit|-w|等待进程退出 --csym <文件>|-g <文件>|从文件中读取 cSYM 信息 --stack-resize <大小>|-S <大小>|重设运行时栈大小 --log-path <路径>|-l <路径>|设置日志路径 --import-path <路径>|-i <路径>|设置引入查找路径

栈大小策略与解释器相同

若不设置日志路径,将直接输出至标准输出流

示例

仓库 covscript-example 中包含了数个使用 Covariant Script 编写的示例程序。

版权

Covariant Script 编程语言的作者是 @mikecovlee,基于 Apache 2.0 协议分发。
版权所有 © 2017-2025 李登淳(Michael Lee)
该软件已在中华人民共和国国家版权局注册(登记号:2020SR0408026),受中华人民共和国著作权法保护。

引用

如果 CovScript 为您的工作增添了一些便利,请引用该仓库。 bibtex @misc{CovScript, author = {Li, Dengchun}, title = {Covariant Script Programming Language}, year = {2017}, publisher = {GitHub}, howpublished = {\url{https://github.com/covscript/covscript}} }

感谢

四川大学, KDDE Lab (段磊教授), freeCodeCamp 成都社区

@imkiva, @ice1000, @MouriNaruto, Weicheng Shi

Owner

  • Name: Covariant Script Opensource Organization
  • Login: covscript
  • Kind: organization
  • Email: dev@unicov.cn
  • Location: China

Never cease the pace of seek

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use CovScript Interpreter, please cite it as below."
authors:
- family-names: "Li"
  given-names: "Dengchun"
  orcid: "https://orcid.org/0000-0001-6002-1661"
title: "CovScript Interpreter"
version: 3.4.3-patch2
doi: 10.5281/zenodo.10004375
date-released: 2024-01-08
url: "https://github.com/covscript/covscript"

GitHub Events

Total
  • Issues event: 2
  • Watch event: 7
  • Push event: 7
  • Pull request event: 1
  • Fork event: 1
Last Year
  • Issues event: 2
  • Watch event: 7
  • Push event: 7
  • Pull request event: 1
  • Fork event: 1

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 0
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • Curculigo (2)
  • ghost (1)
  • 1muhgcmg (1)
Pull Request Authors
  • mikecovlee (2)
Top Labels
Issue Labels
bug (1)
Pull Request Labels

Dependencies

.github/workflows/build.yml actions
  • actions/checkout v1 composite
  • actions/upload-artifact master composite
.github/workflows/codeql-analysis.yml actions
  • actions/checkout v2 composite
  • github/codeql-action/analyze v1 composite
  • github/codeql-action/autobuild v1 composite
  • github/codeql-action/init v1 composite