Package org.antlr.works.grammar.engine

Examples of org.antlr.works.grammar.engine.GrammarEngineImpl


        consoleTab.makeCurrent();

        menu = new GrammarWindowMenu(this);
        toolbar = new GrammarWindowToolbar(this);       
        afterParserOp = new AfterParseOperations();
        grammarEngine = new GrammarEngineImpl(this);
        decisionDFAEngine = new DecisionDFAEngine(this);
        goToRule = new GoToRule(this, this, getTextPane());
        goToHistory = new GoToHistory();
        findAndReplace = new FindAndReplace(this);
                                                
View Full Code Here


    private void serializeSyntaxDiagrams() throws Exception {
        processSyntaxDiagram(new SerializePSDDelegate());
    }

    private void processSyntaxDiagram(ProcessSyntaxDiagramDelegate delegate) throws Exception {
        GrammarEngine engine = new GrammarEngineImpl(new EngineDelegate());
        GrammarSyntaxEngine syntaxEngine = engine.getSyntaxEngine();

        syntaxEngine.setDelegate(new SyntaxDelegate());
        syntaxEngine.processSyntax();

        engine.parserCompleted();
       
        SDGenerator gen = new SDGenerator(engine);

        delegate.beginProcess();
        for(String name : engine.getRuleNames()) {
            delegate.processRule(name, gen);
        }
        delegate.endProcess();
    }
View Full Code Here

TOP

Related Classes of org.antlr.works.grammar.engine.GrammarEngineImpl

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.