Operators

class business_logic.models.BinaryOperator(*args, **kwargs)

Implements binary operations.

Supported operators are:

  • +
  • -
  • *
  • /
  • ^
  • %
  • &
  • |
  • ==
  • !=
  • >
  • >=
  • <
  • <=
  • in
class business_logic.models.UnaryOperator(*args, **kwargs)

Implements unary operations.

Supported operators are:

  • -
  • not
  • neg
  • abs
class business_logic.models.Assignment(*args, **kwargs)

Assignment value to variable

interpret(ctx, lhs, rhs)

Interpret assignment

Parameters:
Returns:

rhs value