Skip to content

Releases: XarCraftCoding/C--

Version 3.1.0

Version 3.1.0 Pre-release
Pre-release

Choose a tag to compare

@XarCraftCoding XarCraftCoding released this 11 May 06:14

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.
Update3.1

If you want to access the changelog, click here.

Version 3.0.0

Choose a tag to compare

@XarCraftCoding XarCraftCoding released this 02 Apr 17:16

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.
Grammar-v3.0.0

If you want to access the full changelog, click here

Version 2.2.0

Version 2.2.0 Pre-release
Pre-release

Choose a tag to compare

@XarCraftCoding XarCraftCoding released this 24 Jan 14:49

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.
Update2.2

If you want to access the changelog, click here.

Version 2.1.0

Choose a tag to compare

@XarCraftCoding XarCraftCoding released this 23 Jan 16:44

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.
grammar3.0

If you want to access the changelog, click here.

Version 2.0.0

Choose a tag to compare

@XarCraftCoding XarCraftCoding released this 23 Jan 10:35

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.
grammar2.0

If you want to access the changelog, click here.

Version 1.0.0

Choose a tag to compare

@XarCraftCoding XarCraftCoding released this 22 Jan 19:46

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.