mani-language / Mani

Máni ... an awesome, super simple programming language!
https://mani-language.github.io/
Mozilla Public License 2.0
28 stars 7 forks source link

Implemented post increment and decrement operators. #6

Closed brokenprogrammer closed 6 years ago

brokenprogrammer commented 6 years ago

Added support for post increment and decrement operators. Resolves #4

>> let a = 4;
>> say a++;
5
>> let b = 10;
>> say b--;
9
>> class SomeClass { SomeClass(x) { this.x = x; } }
>> let q = SomeClass(100);
>> say q.x;
100
>> q.x = q.x--;
>> say q.x;
99