-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
priority:p2Medium priorityMedium priorityscope:compilertype:featureNew feature or requestNew feature or request
Milestone
Description
CLEO Plugin IntOperations brings in an easy way to perform common bitwise operations over integer values. However memorizing opcodes and keywords is not easy. So the compiler should be able to figure the opcode in a similar fashion CLEO arithmetic operations are supported.
Proposed Syntax:
| Operation | Opcode | Expression |
|---|---|---|
| AND | 0B10 | 0@ = 1@ & 2@ |
| OR | 0B11 | 0@ = 1@ | 2@ |
| XOR | 0B12 | 0@ = 1@ ^ 2@ |
| NOT | 0B13 | 0@ = ~1@ |
| MOD | 0B14 | 0@ = 1@ % 2@ |
| Shift Right | 0B15 | 0@ = 1@ >> 2@ |
| Shift Left | 0B16 | 0@ = 1@ << 2@ |
| AND (compound assignment) | 0B17 | 0@ &= 1@ |
| OR (compound assignment) | 0B18 | 0@ |= 1@ |
| XOR (compound assignment) | 0B19 | 0@ ^= 1@ |
| NOT (mutable) | 0B1A | ~0@ |
| MOD (compound assignment) | 0B1B | 0@ %= 1@ |
| Shift Right (compound assignment) | 0B1C | 0@ >>= 1@ |
| Shift Left (compound assignment) | 0B1D | 0@ <<= 1@ |
firedihm and MatiDragon-YT
Metadata
Metadata
Assignees
Labels
priority:p2Medium priorityMedium priorityscope:compilertype:featureNew feature or requestNew feature or request