A language designed to make C easier to program in.
C is my favourite programming language. But, it isn't as trivial to do some things in it compared to other languages. Therefore, I wrote CN_Script as an experiment on how I can improve on C myself.
Implemented
- Functions w/ Arguments
- Include other CNS files via
#import "file.cns"- Nested includes are possible.
- Also supports
#import <io>, which allows making C libraries to import.
- Inline C
- Generates valid GNU89 Standard C code which compiles with
gcc.
Planned
- Data Structure support via
#import <structures> - Dynamic typing support
It's more of a concept language at the moment, but when it is done, it will allow programmers to write programs that will transpile into C. What this means for you is that your code will be able to execute with the speed of native C code (depending on what compiler you use to compile the generated C code).
.cns is the default file extension for CN_Script.
Synopsis
cns fileExample: Transpile main.cns into main.c:
cns main.cns > main.c