Exemplo n.º 1
0
        public void Save(ICoreWriter writer)
        {
            Assert.Implements(Head, typeof(ILispObject));
              Assert.Implements(Tail, typeof(ILispObject));

              var thisType = typeof(Cons);
              var ilGen = writer.GetILGenerator();
              ilGen.Emit(OpCodes.Newobj, thisType.GetConstructor(Type.EmptyTypes));
              ilGen.Emit(OpCodes.Dup);
              (Head as ILispObject).Save(writer);
              // pop Head
              ilGen.Emit(OpCodes.Dup);
              (Head as ILispObject).Save(writer);
              // pop Tail
        }
Exemplo n.º 2
0
 public void Save(ICoreWriter writer)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 public void Save(ICoreWriter writer)
 {
     var thisType = typeof(Symbol);
       var ilGen = writer.GetILGenerator();
       ilGen.Emit(OpCodes.Ldstr, this.Name);
       ilGen.Emit(OpCodes.Newobj, thisType.GetConstructor(new Type[] { typeof(String), }));
 }
Exemplo n.º 4
0
 public void Save(ICoreWriter writer)
 {
     //STUB!
 }