* Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
*/
public class SerialTest {
public static void main(String[] args) throws Exception {
if( args[0].equals("write") ) {
ExpressionPool pool = new ExpressionPool();
pool.createAnyString();
pool.createChoice( pool.createData(StringType.theInstance), pool.createEpsilon() );
ObjectOutputStream oos = new ObjectOutputStream(System.out);
oos.writeObject(pool);
oos.close();
} else {
ObjectInputStream ois = new ObjectInputStream(System.in);
ExpressionPool pool = (ExpressionPool)ois.readObject();
System.out.println(pool);
}
}