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

@@ -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