Package org.python.pydev.parser.PyParser

Examples of org.python.pydev.parser.PyParser.ParserInfo


    }

    protected Throwable parseILegalDoc(IDocument doc, boolean generateTree) {
        Tuple<SimpleNode, Throwable> objects;
        try {
            objects = PyParser.reparseDocument(new ParserInfo(doc, parser.getGrammarVersion(), generateTree));
        } catch (MisconfigurationException e) {
            throw new RuntimeException(e);
        }

        Throwable err = objects.o2;
View Full Code Here


     * @param additionalErrInfo can be used to add additional errors to the fail message if the doc is not parseable
     * @param parser the parser to be used to do the parsing.
     */
    protected static SimpleNode parseLegalDoc(IDocument doc, Object[] additionalErrInfo, int grammarVersion,
            boolean generateTree) {
        Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new ParserInfo(doc, grammarVersion,
                generateTree));

        Object err = objects.o2;
        if (err != null) {
            String s = "";
View Full Code Here

TOP

Related Classes of org.python.pydev.parser.PyParser.ParserInfo

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.