Repository navigation
Releases: XarCraftCoding/C--
Release list
Version 3.1.0
This version is a pre-release for version 4.0.0. 4.0.0 will add support for else and comments.
What's New?
- Added support for if. (1 means true, and 0 and any other number means false.) If you insert more than 255 or less than 0, the output value is
<inserted value> modded by 256. WHY ASSEMBLY???
Grammar:
if (...) {
...
}
- Added support for scopes.
Grammar:
{
...
}
Grammar
I took this screenshot from Visual Studio Code. GitHub does not support Math mode.

If you want to access the changelog, click here.
Version 3.0.0
This version is the complete version of pre-release version v2.2.0.
What's New
- Added multiplication, subtraction, division and parenthesis support.
- Added superiorities for them.
- It now automatically runs code when you compile it.
Bugs
- If you insert more than 255 or less than 0, the output value is
<inserted value> modded by 256.
Grammar
I took this screenshot from Visual Studio Code. GitHub does not support Math mode.

If you want to access the full changelog, click here
Version 2.2.0
This version a pre-release for version 3.0.0. 3.0.0 update will add multiplication, division, subtraction and their superiorities and auto running.
What's New?
- Added adding support.
Grammar:let x = 1 + 2 + 3
Grammar
I took this screenshot from Visual Studio Code. GitHub does not support Math mode.

If you want to access the changelog, click here.
Version 2.1.0
What's new
- Added variable support.
Grammar:let x = 20. - Optimized the code.
Other things are pretty much the same.
Grammar
You can find the grammar document in docs/grammar.md. I put a screenshot because GitHub shows an error when opening. I took this screenshot in Visual Studio Code.

If you want to access the changelog, click here.
Version 2.0.0
What's new
- Changed the return function. It is now exit.
- Made the program a lot faster.
Grammar
You can find the grammar document in docs/grammar.md. I put a screenshot because GitHub shows an error when opening. I took this screenshot in Visual Studio Code.

If you want to access the changelog, click here.
Version 1.0.0
Running
The usage is ./c-- <example.cmm> . Replace <example.cmm> with the name of your .cmm file.
There is a test file when you download the source code. To run that file, compile the code with CLion. Then type ./c-- ../test.cmm into your terminal in the build/ directory.
Syntax
- Return
return <number>. Replace the with a number between 0-255.