01: // Copyright (c) 2004 Per M.A. Bothner.
02: // This is free software; for terms and warranty disclaimer see ./COPYING.
03:
04: package gnu.expr;
05:
06: import gnu.mapping.*;
07:
08: /** A language-specific expression. */
09:
10: public class LangExp extends Expression {
11: Object hook;
12:
13: public Object getLangValue() {
14: return hook;
15: }
16:
17: public void setLangValue(Object value) {
18: hook = value;
19: }
20:
21: public LangExp() {
22: }
23:
24: public LangExp(Object value) {
25: this .hook = value;
26: }
27:
28: protected boolean mustCompile() {
29: return false;
30: }
31:
32: public void print(OutPort out) {
33: out.print("(LangExp ???)");
34: }
35:
36: protected Expression walk(ExpWalker walker) {
37: return walker.walkLangExp(this );
38: }
39:
40: public void compile(Compilation comp, Target target) {
41: throw new RuntimeException("compile called on LangExp");
42: }
43: }
|