Switch to new JSValue hierarchy.

Added logical/bitwise ops.


git-svn-id: svn://10.0.0.236/trunk@32350 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
1999-05-20 00:13:38 +00:00
parent 59c0460b7f
commit 13a12a7a0e
5 changed files with 41 additions and 61 deletions

View File

@@ -15,6 +15,15 @@ class ArithmeticNode extends BinaryNode {
else
if (op == "-")
theEnv.theStack.push(new StackValue(dL - dR));
else
if (op == "*")
theEnv.theStack.push(new StackValue(dL * dR));
else
if (op == "/")
theEnv.theStack.push(new StackValue(dL / dR));
else
if (op == "%")
theEnv.theStack.push(new StackValue(dL % dR));
else
System.out.println("missing arithmetic op " + op);
}