public static bool Eq(LispObject el1, LispObject el2) { bool eq; if (el1 is Number) { eq = el2 is Number && el1.ToString() == el2.ToString(); } else { throw new NotImplementedException(); } return eq; }
public string Write(LispObject obj) { // todo1[ak] args string res; if (obj is Atom) { res = obj.ToString(); } else if (obj is Cons) { res = this.WriteCons((Cons)obj); } else { throw new ApplicationException(); // todo2[ak] } return res; }