Kipt / BEdit

Issues and documentation for BEdit
6 stars 0 forks source link

Support for compound assignment and increment / decrement operators #22

Open Kipt opened 3 years ago

Kipt commented 3 years ago

Originally requested from HMN by mrmixer

Support for ++ -- -= += ... operator would be nice;

Kipt commented 3 years ago

Partially implemented for next version.

+=, -=, *= /= %=, &=, |=, ^=, <<= and >>= is implemented, but only if the assignment is as stand-alone. That is in format

var i = 0;
i += 13;

and not

var i = 1;
var k = (i += 3);

++ and -- is not yet implemented.

For supporting compound assignments inside an integer expression first short-circuiting must be implemented.

This can already be tested out using the command line repository, commit b212341.

Kipt commented 3 years ago

Partially implemented for version 0.2.1.