Reference
Operators
Generated from LANGUAGE.md at d971c06, 2026-10-15. Built from this repository's committed copy, not the live file.
Arithmetic Operators#
| Operator | Keywords |
|---|---|
| Addition | add, plus |
| Subtraction | subtract, minus |
| Multiplication | multiply, times |
| Division | divide |
| Modulo | modulo, mod, remainder |
Comparison Operators#
| Comparison | Syntax |
|---|---|
| Equal | is equal to, is |
| Not Equal | is not equal to, is not |
| Greater Than | is greater than |
| Less Than | is less than |
| Greater or Equal | is greater than or equal to |
| Less or Equal | is less than or equal to |
Logical Operators (table)#
| Operator | Keyword |
|---|---|
| And | and |
| Or | or |
| Not | not, isn't, aren't |
isn't and aren't are contractions, and each stands for two words: isn't is is not, aren't is are not. Write them exactly where the spelled-out pair belongs (If v1 isn't v2 then, is If v1 is not v2 then, ) and write a bare not everywhere no is/are belongs. These two are the only contractions in Vox: everywhere else an apostrophe is the possessive marker, a quoted name, or a character literal, and a word like don't or it's is not Vox (it's length is the possessive on a variable called it). See Names and strings.
Bitwise Operators#
| Operator | Keywords |
|---|---|
| Bitwise AND | bit-and |
| Bitwise OR | bit-or |
| Bitwise XOR | bit-xor |
| Shift Left | bit-shift-left |
| Shift Right | bit-shift-right |
Examples:
a number called lhs is 0b11110000.
a number called rhs is 0b10101010.
(Bitwise AND)
a number called result is lhs bit-and rhs.
(Bitwise OR)
Set result to lhs bit-or rhs.
(Bitwise XOR)
Set result to lhs bit-xor rhs.
(Bit shifting)
Set result to lhs bit-shift-left 2.
Set result to lhs bit-shift-right 4.
(Chained operations)
Set result to value bit-shift-right 8 bit-and 0xFF.