3 using System.Collections.Generic;
9 public static void Main()
11 MSymbol sym1 = MSymbol.Of ("sym1");
12 MSymbol sym2 = MSymbol.Of ("sym2");
13 MPlist plist = new MPlist ();
14 MText mt1 = new MText ("abc");
15 MText mt2 = new MText ("ABC");
17 plist.Put (sym1, mt1);
18 plist.Put (sym2, mt2);
20 Console.WriteLine (plist);
21 foreach (MPlist p in plist)
22 Console.WriteLine (p.Key + ":" + p.Val);
23 Console.WriteLine (plist.Clone ());
27 using (FileStream stream = File.OpenRead ("temp.plist"))
29 Console.WriteLine (new MPlist (stream));
32 plist = new MPlist ();
33 plist.Push (MSymbol.Of ("abc"));
34 plist.Push (new MText ("abc"));
35 plist.Push (new MPlist ());
38 Console.WriteLine (plist);
40 MSymbol tmp = MSymbol.nil;
42 Console.WriteLine ("null");