Switching to JSValue throughout. Implementing operators per base type.
git-svn-id: svn://10.0.0.236/trunk@32415 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -13,7 +13,38 @@ class JSValue extends ExpressionNode {
|
||||
void eval(Environment theEnv)
|
||||
{
|
||||
throw new RuntimeException("Eval on JSValue");
|
||||
}
|
||||
|
||||
void unimplemented(String op)
|
||||
{
|
||||
throw new RuntimeException("unimplemented " + op + " called");
|
||||
}
|
||||
|
||||
void add(Environment theEnv) { unimplemented("add"); }
|
||||
void subtract(Environment theEnv) { unimplemented("subtract"); }
|
||||
void multiply(Environment theEnv) { unimplemented("multiply"); }
|
||||
void divide(Environment theEnv) { unimplemented("divide"); }
|
||||
void remainder(Environment theEnv) { unimplemented("remainder"); }
|
||||
|
||||
void and(Environment theEnv) { unimplemented("and"); }
|
||||
void or(Environment theEnv) { unimplemented("or"); }
|
||||
void xor(Environment theEnv) { unimplemented("xor"); }
|
||||
void shl(Environment theEnv) { unimplemented("shl"); }
|
||||
void shr(Environment theEnv) { unimplemented("shr"); }
|
||||
void ushl(Environment theEnv) { unimplemented("ushl"); }
|
||||
|
||||
void gt(Environment theEnv) { unimplemented("gt"); }
|
||||
void ge(Environment theEnv) { unimplemented("ge"); }
|
||||
void lt(Environment theEnv) { unimplemented("lt"); }
|
||||
void le(Environment theEnv) { unimplemented("le"); }
|
||||
void eq(Environment theEnv) { unimplemented("eq"); }
|
||||
void ne(Environment theEnv) { unimplemented("ne"); }
|
||||
|
||||
|
||||
JSDouble toJSDouble() { unimplemented("toJSDouble"); return null; }
|
||||
JSInteger toJSInteger() { unimplemented("toJSInteger"); return null; }
|
||||
JSString toJSString() { unimplemented("toJSString"); return null; }
|
||||
JSBoolean toJSBoolean() { unimplemented("toJSBoolean"); return null; }
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user