|
@@ -175,31 +175,31 @@ class CodeBox {
|
|
|
case "+": {
|
|
|
const x = this.stack.Pop();
|
|
|
const y = this.stack.Pop();
|
|
|
- this.stack.Push(x + y);
|
|
|
+ this.stack.Push(y + x);
|
|
|
break;
|
|
|
}
|
|
|
case "-": {
|
|
|
const x = this.stack.Pop();
|
|
|
const y = this.stack.Pop();
|
|
|
- this.stack.Push(x - y);
|
|
|
+ this.stack.Push(y - x);
|
|
|
break;
|
|
|
}
|
|
|
case "*": {
|
|
|
const x = this.stack.Pop();
|
|
|
const y = this.stack.Pop();
|
|
|
- this.stack.Push(x * y);
|
|
|
+ this.stack.Push(y * x);
|
|
|
break;
|
|
|
}
|
|
|
case ",": {
|
|
|
const x = this.stack.Pop();
|
|
|
const y = this.stack.Pop();
|
|
|
- this.stack.Push(x / y);
|
|
|
+ this.stack.Push(y / x);
|
|
|
break;
|
|
|
}
|
|
|
case "%": {
|
|
|
const x = this.stack.Pop();
|
|
|
const y = this.stack.Pop();
|
|
|
- this.stack.Push(x % y);
|
|
|
+ this.stack.Push(y % x);
|
|
|
break;
|
|
|
}
|
|
|
case "n":
|