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

This commit is contained in:
rogerl@netscape.com
1999-05-18 22:49:59 +00:00
parent dd82877c5c
commit 522fba0fa5
7 changed files with 310 additions and 148 deletions
+8 -3
View File
@@ -21,6 +21,11 @@ class ControlNode {
gList.addElement(this);
}
ExpressionNode getExpression()
{
return expr;
}
void setNext(ControlNode aNext)
{
next = aNext;
@@ -28,7 +33,7 @@ class ControlNode {
ControlNode eval(Environment theEnv)
{
expr.eval(theEnv);
if (expr != null) expr.eval(theEnv);
return next;
}
@@ -36,12 +41,12 @@ class ControlNode {
{
StringBuffer result = new StringBuffer("ControlNode ");
result.append(index);
result.append("\nexpr:\n");
result.append("\nexpr: ");
if (expr == null)
result.append("expr = null\n");
else
result.append(expr.print(""));
result.append("next:\n");
result.append("next: ");
if (next == null)
result.append("next = null\n");
else