1 4 package gnu.expr; 5 import gnu.mapping.*; 6 7 8 9 public class LangExp extends Expression 10 { 11 Object hook; 12 13 public Object getLangValue () { return hook; } 14 public void setLangValue (Object value) { hook = value; } 15 16 public LangExp () { } 17 18 public LangExp (Object value) { this.hook = value; } 19 20 protected boolean mustCompile () { return false; } 21 22 public void print (OutPort out) 23 { 24 out.print("(LangExp ???)"); 25 } 26 27 protected Expression walk (ExpWalker walker) 28 { 29 return walker.walkLangExp(this); 30 } 31 32 public void compile (Compilation comp, Target target) 33 { 34 throw new RuntimeException ("compile called on LangExp"); 35 } 36 } 37 | Popular Tags |