Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 811 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 811 Bytes

The C♮ Programming Language

The C♮(Pronounced: C Natural) programming language is a modern C-like language with a minimal compiler and a C inspired syntax. C♮ compiles to native machine code, but it needs the help of a C compiler to do that.
Build
Clone this repository, and compile cnc.c into an executable called cnc, using a C compiler of your choice.
Hello World
Create a file called hello.cn and write:

void main() {
	printf("Hello World!\n");
}

To compile this file, run:

cnc gcc hello.cn

If everything is done correctly, you should see an executable in the same directory.
You can use another C compiler other than gcc if you want (such as clang)