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
)