Package org.kigalisim.lang.operation
Class PowerOperation
java.lang.Object
org.kigalisim.lang.operation.PowerOperation
- All Implemented Interfaces:
Operation
Calculation that raises one number to the power of another.
-
Constructor Summary
ConstructorsConstructorDescriptionPowerOperation(Operation left, Operation right) Create a new PowerOperation. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(PushDownMachine machine) Execute the calculation and leave the result at the top of the stack.
-
Constructor Details
-
PowerOperation
Create a new PowerOperation.- Parameters:
left- The left operand of the power operation (base).right- The right operand of the power (power).
-
-
Method Details