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

Implement Augmented assignment operations #2

Closed simmsb closed 6 years ago

simmsb commented 6 years ago

Adds an implementation of combined assignment operations

resolves #1

>> let a = 4;
>> a += 3;
>> say a;
7
>> class What { What(x) { this.x = x; } }
>> let b = What(4);
>> say b.x;
4
>> b.x += 6;
>> say b.x;
10
>> b.x /= 2;
>> say b.x;
5
crazywolf132 commented 6 years ago

Good work!