Files
sousa-gecko/js/js2/java/JSIdentifier.java
T
1999-05-25 21:50:03 +00:00

25 lines
460 B
Java

class JSIdentifier extends JSString {
JSIdentifier(String s)
{
super(s);
}
String print(String indent)
{
return indent + "JSIdentifier : " + s + "\n";
}
void eval(Environment theEnv)
{
theEnv.theStack.push(this);
theEnv.scope.getProp(theEnv);
}
void evalLHS(Environment theEnv)
{
theEnv.theStack.push(this);
theEnv.theStack.push(theEnv.scope);
}
}