try {
tokenizer = grammar.createTokenizer(new FileReader(file));
if (quiet) {
analyzer = null;
} else {
analyzer = new TreePrinter(System.out);
}
parser = grammar.createParser(tokenizer, analyzer);
if (!quiet) {
System.out.println("Parse tree from " + file + ":");
}