Welcome to the Covariant Script programming language!
Covariant Script is an open source, cross-platform programming language.
This project is an officially maintained Covariant Script interpreter.
Please visit Covariant Script Organization README
You can try CovScript in GitHub Codespace directly.
cs [options...] <FILE|STDIN> [arguments...]
cs [options...]
When replace FILE
with STDIN
, interpreter will directly reads inputs from standard input stream.
Option | Mnemonic | Function |
---|---|---|
--compile-only |
-c |
Only compile |
--dump-ast |
-d |
Export abstract syntax tree |
--dependency |
-r |
Export module dependency |
--csym <FILE> |
-g <FILE> |
Read cSYM from file |
Option | Mnemonic | Function |
---|---|---|
--silent |
-s |
Close the command prompt |
--args <...> |
-a <...> |
Set the covscript arguments |
Note that everything you set after option --args
or its mnemonic -a
will be regarded as arguments.
Option | Mnemonic | Function |
---|---|---|
--no-optimize |
-o |
Disable optimizer |
--help |
-h |
Show help infomation |
--version |
-v |
Show version infomation |
--wait-before-exit |
-w |
Wait before process exit |
--stack-resize <SIZE> |
-S <SIZE> |
Reset the size of runtime stack |
--log-path <PATH> |
-l <PATH> |
Set the log path |
--import-path <PATH> |
-i <PATH> |
Set the import path |
The default stack size is 1000. When the stack size is set larger than the default value, the stack size of the coroutine will be dynamically adjusted to one tenth of the set size; when the stack size is set smaller than the default value, the stack size of the coroutine will be will remain at 100.
Note that if you do not set the log path, it will be directly output to the standard output stream.
cs_dbg [options...] <FILE>
Option | Mnemonic | Function |
---|---|---|
--help |
-h |
Show help infomation |
--version |
-v |
Show version infomation |
--silent |
-s |
Close the command prompt |
--wait-before-exit |
-w |
Wait before process exit |
--csym <FILE> |
-g <FILE> |
Read cSYM from file |
--stack-resize <SIZE> |
-S <SIZE> |
Reset the size of runtime stack |
--log-path <PATH> |
-l <PATH> |
Set the log path |
--import-path <PATH> |
-i <PATH> |
Set the import path |
The stack size policy is the same as for the interpreter.
Note that if you do not set the log path, it will be printed to stdout.
The covscript-example repository contains several example programs written by Covariant Script.
The author of the Covariant Script Programming Language is @mikecovlee, licensed
under Apache 2.0
Copyright © 2017-2024 Michael Lee(李登淳)
This software is registered with the National Copyright Administration of the People's Republic of China(Registration
Number: 2020SR0408026) and is protected by the Copyright Law of the People's Republic of China.
Please cite the repo if you use CovScript.
@misc{CovScript,
author = {Li, Dengchun},
title = {Covariant Script Programming Language},
year = {2024},
publisher = {GitHub},
howpublished = {\url{https://github.com/covscript/covscript}}
}
Sichuan University, KDDE Lab (Prof. Lei Duan), freeCodeCamp Chengdu Community
@imkiva, @ice1000, @MouriNaruto, Weicheng Shi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。