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:
-notnegabs
- class business_logic.models.Assignment(*args, **kwargs)
Assignment value to variable
- interpret(ctx, lhs, rhs)
Interpret assignment
- Parameters:
ctx (
business_logic.models.Context) – execution contextlhs (
business_logic.models.Variable) – assignment variablerhs – right hand side value
- Returns:
rhs value