Mozilla/mozilla/js/js2/java/JSIdentifier.java
rogerl%netscape.com 68589204d4 New.
git-svn-id: svn://10.0.0.236/trunk@32627 18797224-902f-48f8-a5cc-f745e15eee43
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);
}
}