charly-lang / charly

🐈 The Charly Programming Language | Written by @KCreate
https://charly-lang.github.io/charly/
MIT License
199 stars 10 forks source link

AND assignment for bitwise operators #165

Open KCreate opened 7 years ago

KCreate commented 7 years ago

Implement the following AND assignment operators:

&=   // AND assignment
|=   // OR assignment
^=   // XOR assignment
<<=  // left-shift assignment
>>=  // right-shift assignment
ghost commented 6 years ago

Any examples of how to implement this in the compiler?

KCreate commented 6 years ago

Just like any other operator. In a bytecode-VM it's just another opcode.