Latest changes

git-svn-id: svn://10.0.0.236/trunk@30781 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
1999-05-07 22:18:39 +00:00
parent 8f068486d8
commit 2f5eb038e6
6 changed files with 222 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
class AssignmentNode extends BinaryNode {
AssignmentNode(String aOp, ExpressionNode aLeft, ExpressionNode aRight)
{
super(aOp, aLeft, aRight);
}
void eval(Environment theEnv)
{
left.evalLHS(theEnv);
right.eval(theEnv);
double dValue = theEnv.theStack.pop().d;
String id = theEnv.theStack.pop().id;
theEnv.theGlobals.put(id, new Double(dValue));
}
}