Package com.facebook.swift.parser.antlr

Examples of com.facebook.swift.parser.antlr.DocumentGenerator


    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) {
            throw new IllegalArgumentException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.facebook.swift.parser.antlr.DocumentGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.