3 using System.Collections.Generic;
9 public static void Main()
11 MSymbol sym1 = new MSymbol ("sym1");
12 MSymbol sym2 = new MSymbol ("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 ());
25 M17N.M17N.debug = true;
27 using (FileStream stream = File.OpenRead ("temp.plist"))
29 MStreamReader reader = new MStreamReader (stream);
30 Console.WriteLine (new MPlist (reader));
33 plist = new MPlist ();
34 plist.Push (new MSymbol ("abc"));
35 plist.Push (new MText ("abc"));
36 plist.Push (new MPlist ());
39 Console.WriteLine (plist);
41 MSymbol tmp = MSymbol.nil;
43 Console.WriteLine ("null");