New stuff - better handle on breaks etc, started try/catch

git-svn-id: svn://10.0.0.236/trunk@32129 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
1999-05-18 22:49:59 +00:00
parent 0f957021ce
commit 3c0a85e0de
7 changed files with 310 additions and 148 deletions

View File

@@ -1,5 +1,10 @@
class ConditionalNode extends ControlNode {
ConditionalNode(ExpressionNode aCondition)
{
super(aCondition);
}
ConditionalNode(ExpressionNode aCondition, ControlNode aTrueCode)
{
super(aCondition);
@@ -13,6 +18,12 @@ class ConditionalNode extends ControlNode {
setNext(aFalseCode);
}
void moveNextToTrue()
{
trueCode = next;
setNext(null);
}
ControlNode eval(Environment theEnv)
{
ControlNode n = super.eval(theEnv);