Skip to content

C+- is a personal project trying to make a programming language.

License

Notifications You must be signed in to change notification settings

Arin-Grigoras/C-plus-minus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C+-

alt text

A personal project trying to be a programming language with close resemblence to C/C++ (probably gonna fail at that).

What I want the programming language to be

I want it to be:

  • An imperative programming language(obviously)
  • Statically typed
  • I want it to be able to be used in bigger projects but also small scripts
  • Have close syntax to C++ but with more features, but also easier to read.

But for now I want it to be able at least to be close to assembly so it can actually do stuff.

How to contribute

If you want to contribute the layout of the program is pretty simple. The include directory holds all of the header files. The lib directory holds all of the files for the standard libraries of the programming language. The src directory holds all the C files. The testing directory is where the actual .cpm file is located.

And now lets test if everything works fine. This should work on linux I don't know about windows though.

To test the program you must clone it so first you're gonna run:

git clone https://github.com/koreaneggroll/C-plus-minus.git
cd C-plus-minus


And now you'll have to run 2 very simple commands


make
./cpm compile ./testing/main.cpm ./testing/main.o

If the output is: 0 push 1 number 0 push 0 number 1 add 2 ext

Done...

Run ./testing/main.o to run the program

you're good

Using the programming language

If you want to use the "language" when it's ready you can by getting the vscode extension for syntax highlighting and more.

Technologies

For now it is being built with C.