The current repo belongs to Paused status, and some functions are restricted. For details, please refer to the description of repo status
2 Star 12 Fork 2

智锐科创计算机协会 / covscript
Paused

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Covariant Script Programming Language: The Interpreter


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.

Switch language

Features

  • Cross-platform, supporting most mainstream Operating Systems
    • Compatible with legacy compilers -- written in C++ 14
    • Linux and Unix: x86, ARM, MIPS, Loongson ISA
    • Microsoft Windows: x86
  • Powerful and bloat-free extension system
    • C/C++ Native Interface(CNI) System: translate invoking from both C/C++ and Covariant Script
    • Interpreter Bootstrap: A portable way to access the Covariant Script Runtime from C++
    • CNI Composer Macro: Combined the extension system and CNI system organically
  • Self-developed efficient compilation system
    • Dependency-free and efficient compiler front-end
    • Support compile-time optimization
    • Exportable compilation results
  • High-performance runtime environment
    • Hotspot optimization algorithm
    • Efficient memory management system
    • Reference count garbage collection system

Libraries

Standard Library

Platform Specified

Documentation

CovScript Wiki

Installation

Run

Basic command

cs [options...] <FILE> [arguments...]
cs [options...]

Options

Interpreter
Option Mnemonic Function
--compile-only -c Only compile
--dump-ast -d Export abstract syntax tree
--dependency -r Export module dependency
Interpreter REPL
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.

Common
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

Note that if you do not set the log path, it will be directly output to the standard output stream.

Debugger

cs_dbg [options...] <FILE>

Options

Option Mnemonic Function
--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

Note that if you do not set the log path, it will be printed to stdout.

Examples

The examples folder contains several example programs written by Covariant Script.

Copyright

The author of the Covariant Script Programming Language is @mikecovlee, licensed under Apache 2.0
Copyright © 2017-2021 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.

Thanks

Sichuan University , freeCodeCamp Chengdu Community
@imkiva, @ice1000 , @MouriNaruto, @Access-Rend, Weicheng Shi

Comments ( 2 )

Sign in for post a comment

About

仓库已迁移至 https://gitee.com/covscript spread retract
Cancel

Releases

No release

covscript

Contributors

All

Activities

load more
can not load any more
C++
1
https://gitee.com/covariant-institute/covscript.git
git@gitee.com:covariant-institute/covscript.git
covariant-institute
covscript
covscript
master

Search

102255 3a0e046c 1850385 102255 7aaa926c 1850385