public class Lit implements Node {
  protected Node parent;
  Object value;

  public void jjtOpen () {
  }
  public void jjtClose () {
  }
  public void jjtSetParent (Node n) {
    parent = n;
  }
  public Node jjtGetParent () {
    return parent;
  }
  public void jjtAddChild (Node n, int i) {
    throw new RuntimeException("add lit child "+i);
  }
  public Node jjtGetChild (int i) {
    throw new RuntimeException("lit child "+i);
  }
  public int jjtGetNumChildren () {
    return 0;
  }
  public Object sem () throws SemanticException {
    return value.getClass();
  }
  public Object run () {
    return value;
  }
  public static Object eq (Object a, Object b) {
    return new Boolean(a.equals(b));
  }
  public static Object ne (Object a, Object b) {
    return new Boolean(! a.equals(b));
  }
}


