projects
/
m17n
/
m17n-lib-cs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[m17n/m17n-lib-cs.git]
/
plist.cs
diff --git
a/plist.cs
b/plist.cs
index
00c2b16
..
c7eb7c2
100644
(file)
--- a/
plist.cs
+++ b/
plist.cs
@@
-8,8
+8,8
@@
public class Test
{
public static void Main()
{
{
public static void Main()
{
- MSymbol sym1 = new MSymbol ("sym1");
- MSymbol sym2 = new MSymbol ("sym2");
+ MSymbol sym1 = MSymbol.Of ("sym1");
+ MSymbol sym2 = MSymbol.Of ("sym2");
MPlist plist = new MPlist ();
MText mt1 = new MText ("abc");
MText mt2 = new MText ("ABC");
MPlist plist = new MPlist ();
MText mt1 = new MText ("abc");
MText mt2 = new MText ("ABC");
@@
-22,21
+22,21
@@
public class Test
Console.WriteLine (p.Key + ":" + p.Val);
Console.WriteLine (plist.Clone ());
Console.WriteLine (p.Key + ":" + p.Val);
Console.WriteLine (plist.Clone ());
- M17N.M17N.debug = true;
+ M17n.debug = true;
using (FileStream stream = File.OpenRead ("temp.plist"))
{
using (FileStream stream = File.OpenRead ("temp.plist"))
{
- MStreamReader reader = new MStreamReader (stream);
- Console.WriteLine (new MPlist (reader));
+ Console.WriteLine (new MPlist (stream));
}
plist = new MPlist ();
}
plist = new MPlist ();
- plist.Push (new MSymbol ("abc"));
+ plist.Push (MSymbol.Of ("abc"));
plist.Push (new MText ("abc"));
plist.Push (new MPlist ());
plist.Push (123);
plist.Push (4.5);
Console.WriteLine (plist);
plist.Push (new MText ("abc"));
plist.Push (new MPlist ());
plist.Push (123);
plist.Push (4.5);
Console.WriteLine (plist);
+ Console.WriteLine ("plist[3] = " + plist[3]);
MSymbol tmp = MSymbol.nil;
if (tmp == null)
MSymbol tmp = MSymbol.nil;
if (tmp == null)