Mercurial > hg > Members > kono > PLparser
comparison src/plparser/TestParser1.java @ 5:29b5497fc942
full test passed.
author | one |
---|---|
date | Sun, 29 Aug 2010 20:28:00 +0900 |
parents | |
children | 563bcb96e4fa |
comparison
equal
deleted
inserted
replaced
4:29c0866e3a84 | 5:29b5497fc942 |
---|---|
1 package plparser; | |
2 | |
3 | |
4 public class TestParser1 { | |
5 | |
6 public static void main(String arg[]) { | |
7 PropertyListParser<Property> p; | |
8 PropertyListNodeFactory<Property> lf = new PropertyFactoryImpl(); | |
9 p = new PropertyListParser<Property>(lf); | |
10 Property n; | |
11 if (arg.length==0) { | |
12 arg = new String[1]; | |
13 arg[0] = "data/alias_article.plist"; | |
14 } | |
15 for(String file: arg) { | |
16 n = p.parseFile(file); | |
17 if (n!=null) System.out.print(n); System.out.println("."); | |
18 } | |
19 } | |
20 } |