Catspeak Reference


enum CatspeakOperator

enum CatspeakOperator { 
  REMAINDER,
  MULTIPLY,
  DIVIDE,
  DIVIDE_INT,
  SUBTRACT,
  PLUS,
  EQUAL,
  NOT_EQUAL,
  GREATER,
  GREATER_EQUAL,
  LESS,
  LESS_EQUAL,
  NOT,
  BITWISE_NOT,
  SHIFT_RIGHT,
  SHIFT_LEFT,
  BITWISE_AND,
  BITWISE_XOR,
  BITWISE_OR,
  XOR,
  // 1 fields omitted
}
๐Ÿ”ฌ This is an experimental feature. It may change at any moment.

Represents the set of pure operators used by the Catspeak runtime and compile-time constant folding.

ยง REMAINDER

REMAINDER

The remainder % operator.

ยง MULTIPLY

MULTIPLY

The * operator.

ยง DIVIDE

DIVIDE

The / operator.

ยง DIVIDE_INT

DIVIDE_INT

The integer division // operator.

ยง SUBTRACT

SUBTRACT

The - operator.

ยง PLUS

PLUS

The + operator.

ยง EQUAL

EQUAL

The == operator.

ยง NOT_EQUAL

NOT_EQUAL

The != operator.

ยง GREATER

GREATER

The > operator.

ยง GREATER_EQUAL

GREATER_EQUAL

The >= operator.

ยง LESS

LESS

The < operator.

ยง LESS_EQUAL

LESS_EQUAL

The <= operator.

ยง NOT

NOT

The logical negation ! operator.

ยง BITWISE_NOT

BITWISE_NOT

The bitwise negation ~ operator.

ยง SHIFT_RIGHT

SHIFT_RIGHT

The bitwise right shift >> operator.

ยง SHIFT_LEFT

SHIFT_LEFT

The bitwise left shift << operator.

ยง BITWISE_AND

BITWISE_AND

The bitwise AND & operator.

ยง BITWISE_XOR

BITWISE_XOR

The bitwise XOR ^ operator.

ยง BITWISE_OR

BITWISE_OR

The bitwise OR | operator.

ยง XOR

XOR

The logical XOR operator.