1
1
Fork
You've already forked ec
0
Easy C-like Programming Language
2026年04月19日 11:52:03 +09:00
doc doc: improve documentation 2026年04月19日 11:52:03 +09:00
CONTRIBUTING.md doc: add README, LICENSE, and CONTRIBUTING 2026年04月18日 11:17:11 +09:00
LICENSE doc: add README, LICENSE, and CONTRIBUTING 2026年04月18日 11:17:11 +09:00
README.md doc: add Overview 2026年04月19日 09:58:37 +09:00

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:

  1. Overview
  2. Primitive Types
  3. Reference Types
  4. Variable
  5. Flow Control
  6. Function

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.