-// Copyright 2002 Adam Megacz, see the COPYING file for licensing [GPL]
+// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
package org.xwt.js;
import org.xwt.util.*;
public static abstract class Function extends Obj {
public abstract Object _call(JS.Array args) throws JS.Exn;
public String getSourceName() throws JS.Exn { return "unknown"; }
+ public int getLine() throws JS.Exn { return -1; }
public final Object call(JS.Array args) throws JS.Exn { return _call(args); }
}
try {
Vector exprs = new Vector();
while(true) {
- ForthBlock ret = p.parseStatement(false);
+ ForthBlock ret = p.parseStatement();
if (ret == null) break;
exprs.addElement(ret);
}
else super.put(key, val == null ? NULL : val);
}
public Object[] keys() { throw new Error("you can't enumerate the properties of a Scope"); }
- public void declare(String s) { if (isTransparent()) getParentScope().declare(s); else super.put(s, NULL);}
+ public void declare(String s) {
+ if (isTransparent()) getParentScope().declare(s);
+ else super.put(s, NULL);
+ }
}