implementation for various operators. git-svn-id: svn://10.0.0.236/trunk@32626 18797224-902f-48f8-a5cc-f745e15eee43
18 lines
388 B
Java
18 lines
388 B
Java
|
|
import java.util.Hashtable;
|
|
|
|
class Environment {
|
|
|
|
JSStack theStack = new JSStack();
|
|
JSObject scope = new JSObject("globals");
|
|
|
|
String print()
|
|
{
|
|
StringBuffer result = new StringBuffer("Globals contents :\n");
|
|
result.append(scope.toString());
|
|
result.append("\nStack Top = " + theStack.size());
|
|
return result.toString();
|
|
}
|
|
|
|
|
|
} |