ECS is the next generation of Covariant Script Programming Language.
Please visit CovScript Official Website and follow the instruction.
cspkg install ecs_bootstrap --yesIf you are running officially released CovScript runtime version 3.4.1+, ecs is setup ready after this step.
git clone https://github.com/covscript/ecschmod +x ecsecs command is a compiler that will translate ECS to CovScript 3, but can use like an 'interpreter' (will compile your code before run automatically).
Usage:
ecs [options...] <FILE> [arguments...]
ecs [options...]
Interpreter Options:
-f Disable compile cache
-m Disable beautify
-c Check grammar only
-l Lint check (requires file argument)
-F Format source file in-place
-n Dry-run format to stdout (implies -F)
-g Generate cSYM info
-d Run debugger
-o <PATH> Set output path
-- <ARGS> Pass parameters to CovScript
Interpreter REPL Options:
-s Close the command prompt
-r <ARGS...> Set arguments for REPL
Common Options:
Option Function
-h Show help information
-v Show version information
-u <CHARSET> Set unicode charset
CHARSET = {"AUTO", "UTF8", "GBK"}
-i <PATH> Append import path
ECS includes a built-in linter and source formatter:
ecs -l myfile.ecs # Lint check (naming conventions, unreachable code, etc.)
ecs -F myfile.ecs # Format source file in-place
ecs -n myfile.ecs # Dry-run format (print formatted output to stdout)- The program translated by ECS Compiler will depend on package
ecs. - The behavior of Lambda Expression will be very different.
- Separated exception system. Please call
e = ecs.handle_exception(e)to solve compatible problem in CovScript 3 when catch exception from ECS Packages. - To support
newandgcnewoperator with arguments, please defineconstructfunction separately.