{
public static Document parseThriftIdl(InputSupplier<? extends Reader> input)
throws IOException
{
Tree tree = parseTree(input);
TreeNodeStream stream = new BufferedTreeNodeStream(tree);
DocumentGenerator generator = new DocumentGenerator(stream);
try {
return generator.document().value;
}
catch (RecognitionException e) {