Easy C-like Programming Language
| doc | doc: improve documentation | |
| CONTRIBUTING.md | doc: add README, LICENSE, and CONTRIBUTING | |
| LICENSE | doc: add README, LICENSE, and CONTRIBUTING | |
| README.md | doc: add Overview | |
EC - Easy C-like Programming Language
ec [-v] [script [args]]
Overview
ec is an static, strong typed programming language and its interpreter. It loads and executes EC programs, either in script or in standard input. The args are available to script as a list of texts passed to main function.
Options:
| Option | Description |
|---|---|
-v |
Show version information |
Installation
Requirements:
- POSIX-compliant Make
- C compiler with ISO/IEC 9899:1990 (C89) support
- C standard library with IEEE Std 1003.1-2001 (POSIX.1-2001) support
Build from source:
$ git clone https://codeberg.org/woohyun/ec.git
$ cd ec
$ make
$ make test
# make install
Note: the default installation path is /usr/local/ directory
Example
This code prints "Hello, world!" on console:
void main() {
write(stdout, "Hello, world!");
}
Documentation
See following documents for EC's language specification:
License
ec by Woohyun Joh is released into the public domain under CC0 1.0 Universal.
You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.