示例#1
0
        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;
        }
示例#2
0
        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;
        }