view src/plparser/TestParser1.java @ 7:619472ca4742

Refactoring for multiple implementation of scanner
author one
date Wed, 01 Sep 2010 15:23:37 +0900
parents 563bcb96e4fa
children
line wrap: on
line source

package plparser;


public class TestParser1 {

	public static void main(String arg[]) {
		PropertyListParser<Property> p;
		PropertyListNodeFactory<Property> lf = new PropertyFactoryImpl(); 
		p = new PropertyListParser<Property>(lf);
		Property n;
		if (arg.length==0) {
			arg = new String[1];
			arg[0] = "data/alias_article.plist";
		}
		for(String file: arg) {
			n = p.parseFile(file);
			// if (n!=null) System.out.print(n); System.out.println(".");
			if (n!=null) n.pp(System.out,0,0);
			System.out.println(".");
		}
	}
}