Package org.antlr.works.grammar.antlr

Examples of org.antlr.works.grammar.antlr.ANTLRGrammarEngine.analyze()


        for(int index = start; index < end; index++) {
            lineIndexes.add(window.getTextEditor().getLineIndexAtTextPosition(index));
        }

        ANTLRGrammarEngine antlrEngineGrammar = window.getGrammarEngine().getANTLRGrammarEngine();
        antlrEngineGrammar.analyze();
        discoveredLexerGrammar = antlrEngineGrammar.getLexerGrammar();
        discoveredParserGrammar = antlrEngineGrammar.getParserGrammar();

        decisionDFA.clear();
        usesSynPreds.clear();
View Full Code Here


    }

    @Override
    public String getDOTString() throws Exception {
        ANTLRGrammarEngine eg = window.getGrammarEngine().getANTLRGrammarEngine();
        eg.analyze();

        Grammar g = eg.getLexerGrammar();
        if(g == null) {
            throw new Exception("Cannot show tokens DFA because there is no lexer grammar");
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.