public static void main(String[] args) throws java.io.IOException, InvalidFormatException {
if (args.length == 0) {
System.err.println("Usage ParserEventStream -[tag|chunk|build|check|fun] head_rules [dictionary] < parses");
System.exit(1);
}
ParserEventTypeEnum etype = null;
boolean fun = false;
int ai = 0;
while (ai < args.length && args[ai].startsWith("-")) {
if (args[ai].equals("-build")) {
etype = ParserEventTypeEnum.BUILD;