Skip to content

iDestyKK/CN_Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CN_Script

A language designed to make C easier to program in.

About

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.

Features

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

Why CN_Script?

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).

What file extensions are available?

.cns is the default file extension for CN_Script.

How do I transpile CN_Script into C?

Synopsis

cns file

Example: Transpile main.cns into main.c:

cns main.cns > main.c

About

A subset of C made to make C coding easier.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published